[02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:48]accept exits with 8 [03:03:48]New connection [03:03:48]New thread 3067276644 created [03:03:48]Thread 3067133284 joined [03:03:48]Waiting for new connection... [03:03:48] Sock 8.Parse request [03:03:48]Sock 8.Check first char [03:03:48]Sock 8.First char is OK [03:03:48]request: POST /json_proto HTTP/1.0 [03:03:48]Method: POST [03:03:48]URL: /json_proto [03:03:48]Method is POST - this is cgi request [03:03:48]url: /json_proto [03:03:48]query_string will be loaded in cgi processing [03:03:48]execute_cgi json_proto POST (null) [03:03:48]execute_cgi path=json_proto method=POST [03:03:48]POST find Content-Length [03:03:48]Host: 172.17.60.69:8080 [03:03:48]Content-Length: 1979 [03:03:48]Content-Type: application/json [03:03:48] [03:03:48]POST finish read [03:03:48]Found Content-Length = 1979 [03:03:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73623", "tax_sys" : 0, "items" : [ { "code": "4700001060152", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,5\u043B", "price" : 660.00, "quantity" : 1.000, "sum" : 660.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": "7622201450564", "name": "\u0428\u043E\u043A Alpen Gold \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 90\u0433 (\u043D\u043E\u0432\u044B\u0439)", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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" : 14.000, "sum" : 98.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 }]} ,{ "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1336.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:03:48]execute_script... [03:03: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)73623", "tax_sys" : 0, "items" : [ { "code": "4700001060152", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,5\u043B", "price" : 660.00, "quantity" : 1.000, "sum" : 660.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": "7622201450564", "name": "\u0428\u043E\u043A Alpen Gold \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 90\u0433 (\u043D\u043E\u0432\u044B\u0439)", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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" : 14.000, "sum" : 98.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 }]} ,{ "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1336.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:03:48]POST & json_proto [03:03:48]process_json_proto [03:03:48]json parsed OK: [03:03:48]protocol is kg_v1.0 [03:03:48]action value=close_receipt [03:03:48]process_action close_receipt [03:03:48]cmd_close_receipt [03:03:48]MH_GetDate [03:03:48]Write to MH i2c: F0 00 00 F5 0B EF [03:03:48]Write i2c OK [03:03:48]MH_I2C_Read... [03:03:48]Read from MH i2c: F0 [03:03:48]MH_I2C_Read... [03:03:48]Read from MH i2c: F0 09 00 [03:03:48]MH_I2C_Read... [03:03:48]Read from MH i2c: F0 09 00 F5 0B 00 95 D5 5F 66 D2 83 5F 66 41 [03:03:48]GetLastDocTimeStamp 1717555847 [03:03:48]current date 1717556629 [03:03:48]FM_GetShiftState [03:03:48]SAM_PROTO_GetShiftState [03:03:48]wFMCommunicate request_size=4 [03:03:48]MH_SAM_APDU [03:03:48]CAPDU: 80 13 01 00 [03:03:48]Write to MH i2c: E2 08 00 F6 0B 80 13 01 00 00 00 00 00 7E [03:03:48]Write i2c OK [03:03:48]MH_I2C_Read... [03:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:48]Read from MH i2c: E2 [03:03:48]MH_I2C_Read... [03:03:48]Read from MH i2c: E2 0E 00 [03:03:48]MH_I2C_Read... [03:03:48]Read from MH i2c: E2 0E 00 F6 0B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 BF [03:03:48]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [03:03:48]wFMCommunicate OK [03:03:48]SAM_PROTO_GetShiftState done [03:03:48]FM_GetShiftState done [03:03:48]opened in 1717545925 [03:03:48]opened+sec_in_day 1717632325 [03:03:48]quantity*price = 66000 [03:03:48]sum+1 = 66001 [03:03:48]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000439 Напиток Кока-Кола 1,5л 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 7622201450564 Шок Alpen Gold молочный 90г (новый) 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 14.000 * 7.00 = 98.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091621 Сигареты ESSE Exchange W 1.000 * 138.00 = 138.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1336.00 НСП 1% : 11.82 НДС 12% : 141.88 Наличными: 1336.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 3 05.06.2024 03:03 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64083 ФПД: 183694571941524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T030349&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64083&fm=183694571941524&tin=02508201610067®Number=0000000000092737&sum=133600 0 [03:03:49]StoreToDocumentArchive [03:03:49]shift 375 fd 64083 [03:03:49]save to /storage/0375/doc_00064083 [03:03:49]save last doc name /storage/0375/doc_00064083 to /storage/kkm_last_doc_name [03:03:49]save OK [03:03:49]Clear old archive folders... [03:03:49]ProcessDocumentItem done err = 0, tmpTLVsize=831 [03:03:49]tlvbuf is 00FC8300 [03:03:49]SAM_PROTO_ClearQueue [03:03:49]wFMCommunicate request_size=4 [03:03:49]MH_SAM_APDU [03:03:49]CAPDU: 80 09 00 00 [03:03:49]Write to MH i2c: E2 08 00 03 0C 80 09 00 00 00 00 00 00 81 [03:03:49]Write i2c OK [03:03:49]MH_I2C_Read... [03:03:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:03:49]Read from MH i2c: E2 [03:03:49]MH_I2C_Read... [03:03:49]Read from MH i2c: E2 03 00 [03:03:49]MH_I2C_Read... [03:03:49]Read from MH i2c: E2 03 00 03 0C 00 90 00 83 [03:03:49]RAPDU: 90 00 [03:03:49]wFMCommunicate OK [03:03:49]SAM_PROTO_ClearQueue done [03:03:49]KKMCreateOFDPacket [03:03:49]OFDProtocolAddRootSTLVToBuf [03:03:49]FM_MakeSignedData [03:03:49]FM_MakeSignedData [03:03:49]SAM_PROTO_SignData [03:03:49]wFMCommunicate request_size=4 [03:03:49]MH_SAM_APDU [03:03:49]CAPDU: 80 0D 01 02 [03:03:49]Write to MH i2c: E2 08 00 04 0C 80 0D 01 02 00 00 00 00 89 [03:03:49]Write i2c OK [03:03:49]MH_I2C_Read... [03:03:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:03:49]Read from MH i2c: E2 [03:03:49]MH_I2C_Read... [03:03:49]Read from MH i2c: E2 03 00 [03:03:49]MH_I2C_Read... [03:03:49]Read from MH i2c: E2 03 00 04 0C 00 90 00 84 [03:03:49]RAPDU: 90 00 [03:03:49]wFMCommunicate OK [03:03:49]wFMCommunicate request_size=255 [03:03:49]MH_SAM_APDU [03:03:49]CAPDU: 80 0D 02 02 FA 03 00 3F 03 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 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 78 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 35 36 34 06 04 34 00 D0 A8 D0 [03:03:50]Write to MH i2c: E2 02 01 05 0C 80 0D 02 02 FA 00 03 00 3F 03 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 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 78 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 35 36 34 06 04 34 00 D0 A8 D0 00 00 58 [03:03:50]Write i2c OK [03:03:50]MH_I2C_Read... [03:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:50]Read from MH i2c: E2 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: E2 03 00 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: E2 03 00 05 0C 00 90 00 85 [03:03:50]RAPDU: 90 00 [03:03:50]wFMCommunicate OK [03:03:50]wFMCommunicate request_size=255 [03:03:50]MH_SAM_APDU [03:03:50]CAPDU: 80 0D 02 02 FA BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 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 B0 36 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 48 26 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 [03:03:50]Write to MH i2c: E2 02 01 06 0C 80 0D 02 02 FA 00 BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 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 B0 36 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 48 26 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 00 00 CD [03:03:50]Write i2c OK [03:03:50]MH_I2C_Read... [03:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:50]Read from MH i2c: E2 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: E2 03 00 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: E2 03 00 06 0C 00 90 00 86 [03:03:50]RAPDU: 90 00 [03:03:50]wFMCommunicate OK [03:03:50]wFMCommunicate request_size=255 [03:03:50]MH_SAM_APDU [03:03:50]CAPDU: 80 0D 02 02 FA 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 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 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 E0 09 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 37 00 00 00 00 07 04 06 00 E0 09 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 [03:03:50]Write to MH i2c: E2 02 01 07 0C 80 0D 02 02 FA 00 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 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 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 E0 09 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 37 00 00 00 00 07 04 06 00 E0 09 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 00 00 C7 [03:03:50]Write i2c OK [03:03:50]MH_I2C_Read... [03:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:50]Read from MH i2c: E2 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: E2 03 00 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: E2 03 00 07 0C 00 90 00 87 [03:03:50]RAPDU: 90 00 [03:03:50]wFMCommunicate OK [03:03:50]wFMCommunicate request_size=90 [03:03:50]MH_SAM_APDU [03:03:50]CAPDU: 80 0D 02 02 55 04 00 03 00 00 00 F4 03 04 00 95 D5 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 53 FA 00 00 35 04 06 00 A7 11 B9 B5 2E 94 [03:03:50]Write to MH i2c: E2 5D 00 08 0C 80 0D 02 02 55 00 04 00 03 00 00 00 F4 03 04 00 95 D5 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 53 FA 00 00 35 04 06 00 A7 11 B9 B5 2E 94 00 00 C3 [03:03:50]Write i2c OK [03:03:50]MH_I2C_Read... [03:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:50]Read from MH i2c: E2 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: E2 03 00 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: E2 03 00 08 0C 00 90 00 88 [03:03:50]RAPDU: 90 00 [03:03:50]wFMCommunicate OK [03:03:50]wFMCommunicate request_size=4 [03:03:50]MH_SAM_APDU [03:03:50]CAPDU: 80 0D 03 02 [03:03:50]Write to MH i2c: E2 08 00 09 0C 80 0D 03 02 00 00 00 00 90 [03:03:50]Write i2c OK [03:03:50]MH_I2C_Read... [03:03:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:03:51]Read from MH i2c: E2 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 0B 00 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 0B 00 09 0C 00 03 40 FE 1A 8C 4D 98 44 90 00 A1 [03:03:51]RAPDU: 03 40 FE 1A 8C 4D 98 44 90 00 [03:03:51]wFMCommunicate OK [03:03:51]SAM_PROTO_SignData done [03:03:51]FM_MakeSignedData done [03:03:51]CreateOFDProtocolMessage [03:03:51]wFMCommunicate request_size=4 [03:03:51]MH_SAM_APDU [03:03:51]CAPDU: 80 11 00 00 [03:03:51]Write to MH i2c: E2 08 00 0A 0C 80 11 00 00 00 00 00 00 90 [03:03:51]Write i2c OK [03:03:51]MH_I2C_Read... [03:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:51]Read from MH i2c: E2 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 17 00 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 17 00 0A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E2 [03:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:03:51]wFMCommunicate OK [03:03:51]CreateOFDProtocolMessage done [03:03:51]OFDSenderStorePacket 64083 [03:03:51]StoreOFDPacket docnum=64083 [03:03:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 53 03 00 00 57 55 4B 03 1A 19 5A 03 01 00 03 00 3F 03 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 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 78 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 35 36 34 06 04 34 00 D0 A8 D0 BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 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 B0 36 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 48 26 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 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 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 E0 09 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 37 00 00 00 00 07 04 06 00 E0 09 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 95 D5 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 53 FA 00 00 35 04 06 00 A7 11 B9 B5 2E 94 03 40 FE 1A 8C 4D 98 44 [03:03:51]CheckFolder [03:03:51]dirname=/storage/ofd_packets [03:03:51]CheckFolder done [03:03:51]ProducePacketName [03:03:51]name=ofd_packets/00064083 [03:03:51]NVStorageSaveData ofd_packets/00064083 [03:03:51]File name is /storage/ofd_packets/00064083 [03:03:51]Write 881 bytes [03:03:51]NVStorageSaveData done [03:03:51]OFDSenderStorePacket done [03:03:51]KKMCreateOFDPacket done [03:03:51]NVStorageSaveData kkm_last_timestamp [03:03:51]File name is /storage/kkm_last_timestamp [03:03:51]Write 4 bytes [03:03:51]NVStorageSaveData done [03:03:51]ExternCall_PrintAddStr [03:03:51]wPrintStart [03:03:51]Write to MH i2c: 01 00 00 0B 0C 17 [03:03:51]Write i2c OK [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: 01 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: 01 07 00 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: 01 07 00 0B 0C 00 00 00 00 00 FF 0F 2C [03:03:51]RasterBufferAndPrint [03:03:51]line Счет N : (3)73623 [03:03:51]line ИНН: 02508201610067 [03:03:51]line Контрольно-Кассовый Чек [03:03:51]line ПРОДАЖА [03:03:51]line Товар: 4700001060152 [03:03:51]line Коньяк Бишкек 0,5л [03:03:51]line 1.000 * 660.00 [03:03:51]line = 660.00 [03:03:51]line НДС 12% НСП 1% [03:03:51]line > о реализуемом товаре [03:03:51]line Товар: 5449000000439 [03:03:51]line Напиток Кока-Кола 1,5л [03:03:51]line 1.000 * 155.00 [03:03:51]line = 155.00 [03:03:51]line НДС 12% НСП 1% [03:03:51]line > о реализуемом товаре [03:03:51]line Товар: 7622201450564 [03:03:51]line Шок Alpen Gold молочный 90г (новый) [03:03:51]line 1.000 * 145.00 [03:03:51]line = 145.00 [03:03:51]line НДС 12% НСП 1% [03:03:51]line > о реализуемом товаре [03:03:51]line Товар: 2000053020015 [03:03:51]line Бумажные стаканы 250мл 1шт [03:03:51]line 14.000 * 7.00 [03:03:51]line = 98.00 [03:03:51]line НДС 12% НСП 1% [03:03:51]line > о реализуемом товаре [03:03:51]line Товар: 48747059 [03:03:51]line Сигареты Winston Legend Blue [03:03:51]line 1.000 * 140.00 [03:03:51]line = 140.00 [03:03:51]line НДС 12% НСП 1% [03:03:51]line > о реализуемом товаре [03:03:51]line Товар: 4640030091621 [03:03:51]line Сигареты ESSE Exchange W [03:03:51]line 1.000 * 138.00 [03:03:51]line = 138.00 [03:03:51]line НДС 12% НСП 1% [03:03:51]line > о реализуемом товаре [03:03:51]line ИТОГО: 1336.00 [03:03:51]line НСП 1% : 11.82 [03:03:51]line НДС 12% : 141.88 [03:03:51]line Наличными: 1336.00 [03:03:51]line Безнал.: 0.00 [03:03:51]line Место: АЗС № 117 "Партнер Нефть" [03:03:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [03:03:51]line СНО: Общий режим [03:03:51]line Чек 3 05.06.2024 03:03 [03:03:51]line Смена: 375 ФФД: 1.0 [03:03:51]line ЗНМ: 0300000031 [03:03:51]line РНМ: 0000000000092737 [03:03:51]line Версия ККМ: 001 [03:03:51]line ФМ: 0000000000875074 [03:03:51]line ФД: 64083 [03:03:51]line ФПД: 183694571941524 [03:03:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T030349&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64083&fm=183694571941524&tin=02508201610067®Number=0000000000092737&sum=133600 [03:03:51]OFD Sender: Processing packet 64083 [packets to send 14, broken 13] [03:03:51]ProducePacketName [03:03:51]name=ofd_packets/00064083 [03:03:51]OFD Sender: To server: pG, [03:03:51]CommunicateWithHost lk.salyk.kg:30040 [03:03:51]ConnectInit lk.salyk.kg [03:03:51]line 0 [03:03:51]written 0, free lines is 4095 [03:03:51]Connected sock=10 [03:03:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 53 03 00 00 57 55 4B 03 1A 19 5A 03 01 00 03 00 3F 03 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 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 78 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 35 36 34 06 04 34 00 D0 A8 D0 BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 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 B0 36 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 48 26 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 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 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 E0 09 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 37 00 00 00 00 07 04 06 00 E0 09 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 95 D5 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 53 FA 00 00 35 04 06 00 A7 11 B9 B5 2E 94 03 40 FE 1A 8C 4D 98 44 [03:03:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 90 0F 47 00 E3 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 53 FA 00 00 F4 03 04 00 A3 81 5F 66 B6 04 01 00 00 73 87 84 AC 15 F5 3A 9B [03:03:51]CommunicateWithHost err = 0 [03:03:51]CheckOFDResponse [03:03:51]1017 (14) - 77093643461234 [03:03:51]1041 (16) - 0000000000875074 [03:03:51]1040 (4) - 64083 [03:03:51]1012 (4) - 04.06.2024 21:05 [03:03:51]1206 (1) - 0 [03:03:51]OFD Sender: Remove packet 64083 [03:03:51]ProducePacketName [03:03:51]name=ofd_packets/00064083 [03:03:51]NVStorageDeleteData [03:03:52]Write to MH i2c: 01 00 00 54 0C 60 [03:03:52]Write i2c OK [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: 01 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: 01 07 00 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: 01 07 00 54 0C 00 00 00 00 00 17 0B 89 [03:03:52]RasterBufferAndPrint [03:03:52]line [03:03:52]line [03:03:52]line [03:03:52]line [03:03:52]line [03:03:52]written 0, free lines is 2850 [03:03:52]MH_Cut [03:03:52]Write to MH i2c: D1 01 00 5B 0C 01 39 [03:03:52]Write i2c OK [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: D1 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: D1 01 00 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: D1 01 00 5B 0C 00 38 [03:03:52]Write to MH i2c: 01 00 00 5C 0C 68 [03:03:52]Write i2c OK [03:03:52]MH_I2C_Read... [03:03:52]OFD Sender: No OFD packet to send [03:03:53]*** Cut start [03:03:53]*** Partial cut [03:03:53]*** CUTSNS_PIN = 1 [03:03:53]*** CUTSNS_PIN = 0 [03:03:53]*** Brake cut motor [03:03:54]Read from MH i2c: 01 [03:03:54]MH_I2C_Read... [03:03:54]*** Stop cut motor [03:03:54]*** Cut end [03:03:54]Read from MH i2c: 01 07 00 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: 01 07 00 5C 0C 00 00 00 00 00 FF 0F 7D [03:03:54]process_action close_receipt done [03:03:54]requested_data is exist [03:03:54]produce_requested_data [03:03:54]requested_item fm.sn is exist - process it [03:03:54]wFMCommunicate request_size=4 [03:03:54]MH_SAM_APDU [03:03:54]CAPDU: 80 11 00 00 [03:03:54]Write to MH i2c: E2 08 00 5D 0C 80 11 00 00 00 00 00 00 E3 [03:03:54]Write i2c OK [03:03:54]MH_I2C_Read... [03:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:54]Read from MH i2c: E2 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 17 00 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 17 00 5D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 35 [03:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:03:54]wFMCommunicate OK [03:03:54]requested_item fd.num is exist - process it [03:03:54]SAM_PROTO_GetFieldsCounters [03:03:54]wFMCommunicate request_size=4 [03:03:54]MH_SAM_APDU [03:03:54]CAPDU: 80 13 00 00 [03:03:54]Write to MH i2c: E2 08 00 5E 0C 80 13 00 00 00 00 00 00 E6 [03:03:54]Write i2c OK [03:03:54]MH_I2C_Read... [03:03:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:03:54]Read from MH i2c: E2 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 62 00 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 62 00 5E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 53 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [03:03:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 53 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:03:54]wFMCommunicate OK [03:03:54]SAM_PROTO_GetFieldsCounters done [03:03:54]requested_item shift.num is exist - process it [03:03:54]requested_item shift.opened is exist - process it [03:03:54]req_shift_opened [03:03:54]FM_GetShiftState [03:03:54]SAM_PROTO_GetShiftState [03:03:54]wFMCommunicate request_size=4 [03:03:54]MH_SAM_APDU [03:03:54]CAPDU: 80 13 01 00 [03:03:54]Write to MH i2c: E2 08 00 5F 0C 80 13 01 00 00 00 00 00 E8 [03:03:54]Write i2c OK [03:03:54]MH_I2C_Read... [03:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:54]Read from MH i2c: E2 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 0E 00 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 0E 00 5F 0C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 29 [03:03:54]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [03:03:54]wFMCommunicate OK [03:03:54]SAM_PROTO_GetShiftState done [03:03:54]FM_GetShiftState done [03:03:54]req_shift_opened done [03:03:54]requested_item shift.open_date is exist - process it [03:03:54]req_shift_open_date [03:03:54]req_shift_open_date done [03:03:54]produce_requested_data done [03:03:54]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64083,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [03:03:54]process_action_free close_receipt [03:03:54]json_value_free [03:03:54]json_value_free done [03:03:54]process_json_proto returns [03:03:54]Send response to host [03:03:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64083,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [03:03:54]free response buf [03:03:54]execute_script done [03:03:54]execute_script returns [03:03:54]free content buf [03:03:54]Sock 8.Close socket [03:03:54]Sock 8.Thread stoped [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:16]accept exits with 9 [03:05:16]New connection [03:05:16]New thread 3067133284 created [03:05:16]Thread 3067276644 joined [03:05:16]Waiting for new connection... [03:05:16] Sock 9.Parse request [03:05:16]Sock 9.Check first char [03:05:16]Sock 9.First char is OK [03:05:16]request: POST /json_proto HTTP/1.0 [03:05:16]Method: POST [03:05:16]URL: /json_proto [03:05:16]Method is POST - this is cgi request [03:05:16]url: /json_proto [03:05:16]query_string will be loaded in cgi processing [03:05:16]execute_cgi json_proto POST (null) [03:05:16]execute_cgi path=json_proto method=POST [03:05:16]POST find Content-Length [03:05:16]Host: 172.17.60.69:8080 [03:05:16]Content-Length: 732 [03:05:16]Content-Type: application/json [03:05:16] [03:05:16]POST finish read [03:05:16]Found Content-Length = 732 [03:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73624", "tax_sys" : 0, "items" : [ { "code": "7622201448707", "name": "\u0428\u043E\u043A AG \u043C\u043E\u043B \u0444\u0443\u043D\u0434\u0443\u043A \u0438\u0437\u044E\u043C \u0444\u043B\u043E\u0443-\u043F\u0430\u043A 90\u0433 (\u043D\u043E\u0432", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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" ] } } [03:05:16]execute_script... [03:05:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73624", "tax_sys" : 0, "items" : [ { "code": "7622201448707", "name": "\u0428\u043E\u043A AG \u043C\u043E\u043B \u0444\u0443\u043D\u0434\u0443\u043A \u0438\u0437\u044E\u043C \u0444\u043B\u043E\u0443-\u043F\u0430\u043A 90\u0433 (\u043D\u043E\u0432", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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" ] } } [03:05:16]POST & json_proto [03:05:16]process_json_proto [03:05:16]json parsed OK: [03:05:16]protocol is kg_v1.0 [03:05:16]action value=close_receipt [03:05:16]process_action close_receipt [03:05:16]cmd_close_receipt [03:05:16]MH_GetDate [03:05:16]Write to MH i2c: F0 00 00 60 0C 5B [03:05:16]Write i2c OK [03:05:16]MH_I2C_Read... [03:05:16]Read from MH i2c: F0 [03:05:16]MH_I2C_Read... [03:05:16]Read from MH i2c: F0 09 00 [03:05:16]MH_I2C_Read... [03:05:16]Read from MH i2c: F0 09 00 60 0C 00 EE D5 5F 66 D2 83 5F 66 06 [03:05:16]GetLastDocTimeStamp 1717556629 [03:05:16]current date 1717556718 [03:05:16]FM_GetShiftState [03:05:16]SAM_PROTO_GetShiftState [03:05:16]wFMCommunicate request_size=4 [03:05:16]MH_SAM_APDU [03:05:16]CAPDU: 80 13 01 00 [03:05:16]Write to MH i2c: E2 08 00 61 0C 80 13 01 00 00 00 00 00 EA [03:05:16]Write i2c OK [03:05:16]MH_I2C_Read... [03:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:05:16]Read from MH i2c: E2 [03:05:16]MH_I2C_Read... [03:05:16]Read from MH i2c: E2 0E 00 [03:05:16]MH_I2C_Read... [03:05:16]Read from MH i2c: E2 0E 00 61 0C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 2B [03:05:16]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [03:05:16]wFMCommunicate OK [03:05:16]SAM_PROTO_GetShiftState done [03:05:16]FM_GetShiftState done [03:05:16]opened in 1717545925 [03:05:16]opened+sec_in_day 1717632325 [03:05:16]quantity*price = 14500 [03:05:16]sum+1 = 14501 [03:05:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 4 05.06.2024 03:05 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64084 ФПД: 235487522653314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T030518&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64084&fm=235487522653314&tin=02508201610067®Number=0000000000092737&sum=14500 0 [03:05:18]StoreToDocumentArchive [03:05:18]shift 375 fd 64084 [03:05:18]save to /storage/0375/doc_00064084 [03:05:18]save last doc name /storage/0375/doc_00064084 to /storage/kkm_last_doc_name [03:05:18]save OK [03:05:18]Clear old archive folders... [03:05:18]ProcessDocumentItem done err = 0, tmpTLVsize=309 [03:05:18]tlvbuf is 00F98220 [03:05:18]SAM_PROTO_ClearQueue [03:05:18]wFMCommunicate request_size=4 [03:05:18]MH_SAM_APDU [03:05:18]CAPDU: 80 09 00 00 [03:05:18]Write to MH i2c: E2 08 00 6E 0C 80 09 00 00 00 00 00 00 EC [03:05:18]Write i2c OK [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 [03:05:18]MH_I2C_Read... [03:05:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:05:18]Read from MH i2c: E2 03 00 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 03 00 6E 0C 00 90 00 EE [03:05:18]RAPDU: 90 00 [03:05:18]wFMCommunicate OK [03:05:18]SAM_PROTO_ClearQueue done [03:05:18]KKMCreateOFDPacket [03:05:18]OFDProtocolAddRootSTLVToBuf [03:05:18]FM_MakeSignedData [03:05:18]FM_MakeSignedData [03:05:18]SAM_PROTO_SignData [03:05:18]wFMCommunicate request_size=4 [03:05:18]MH_SAM_APDU [03:05:18]CAPDU: 80 0D 01 02 [03:05:18]Write to MH i2c: E2 08 00 6F 0C 80 0D 01 02 00 00 00 00 F4 [03:05:18]Write i2c OK [03:05:18]MH_I2C_Read... [03:05:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:05:18]Read from MH i2c: E2 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 03 00 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 03 00 6F 0C 00 90 00 EF [03:05:18]RAPDU: 90 00 [03:05:18]wFMCommunicate OK [03:05:18]wFMCommunicate request_size=255 [03:05:18]MH_SAM_APDU [03:05:18]CAPDU: 80 0D 02 02 FA 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 37 36 32 32 32 30 31 34 34 38 37 30 37 06 04 43 00 D0 A8 D0 BE D0 BA 20 41 47 20 D0 BC D0 BE D0 BB 20 D1 84 D1 83 D0 BD D0 B4 D1 83 D0 BA 20 D0 B8 D0 B7 D1 8E D0 BC 20 D1 84 D0 BB D0 BE D1 83 2D D0 BF D0 B0 D0 BA 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 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 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 04 00 00 00 F4 03 04 00 EE D5 5F 66 0E 04 04 00 77 01 00 00 [03:05:18]Write to MH i2c: E2 02 01 70 0C 80 0D 02 02 FA 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 37 36 32 32 32 30 31 34 34 38 37 30 37 06 04 43 00 D0 A8 D0 BE D0 BA 20 41 47 20 D0 BC D0 BE D0 BB 20 D1 84 D1 83 D0 BD D0 B4 D1 83 D0 BA 20 D0 B8 D0 B7 D1 8E D0 BC 20 D1 84 D0 BB D0 BE D1 83 2D D0 BF D0 B0 D0 BA 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 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 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 04 00 00 00 F4 03 04 00 EE D5 5F 66 0E 04 04 00 77 01 00 00 00 00 9D [03:05:18]Write i2c OK [03:05:18]MH_I2C_Read... [03:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:05:18]Read from MH i2c: E2 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 03 00 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 03 00 70 0C 00 90 00 F0 [03:05:18]RAPDU: 90 00 [03:05:18]wFMCommunicate OK [03:05:18]wFMCommunicate request_size=68 [03:05:18]MH_SAM_APDU [03:05:18]CAPDU: 80 0D 02 02 3F B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 54 FA 00 00 35 04 06 00 D6 2C B6 23 04 82 [03:05:18]Write to MH i2c: E2 47 00 71 0C 80 0D 02 02 3F 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 54 FA 00 00 35 04 06 00 D6 2C B6 23 04 82 00 00 BB [03:05:18]Write i2c OK [03:05:18]MH_I2C_Read... [03:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:05:18]Read from MH i2c: E2 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 03 00 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 03 00 71 0C 00 90 00 F1 [03:05:18]RAPDU: 90 00 [03:05:18]wFMCommunicate OK [03:05:18]wFMCommunicate request_size=4 [03:05:18]MH_SAM_APDU [03:05:18]CAPDU: 80 0D 03 02 [03:05:18]Write to MH i2c: E2 08 00 72 0C 80 0D 03 02 00 00 00 00 F9 [03:05:18]Write i2c OK [03:05:18]MH_I2C_Read... [03:05:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:05:18]Read from MH i2c: E2 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 0B 00 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 0B 00 72 0C 00 55 F9 86 C7 AB 6B 87 3A 90 00 6C [03:05:18]RAPDU: 55 F9 86 C7 AB 6B 87 3A 90 00 [03:05:18]wFMCommunicate OK [03:05:18]SAM_PROTO_SignData done [03:05:18]FM_MakeSignedData done [03:05:18]CreateOFDProtocolMessage [03:05:18]wFMCommunicate request_size=4 [03:05:18]MH_SAM_APDU [03:05:18]CAPDU: 80 11 00 00 [03:05:18]Write to MH i2c: E2 08 00 73 0C 80 11 00 00 00 00 00 00 F9 [03:05:18]Write i2c OK [03:05:18]MH_I2C_Read... [03:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:05:18]Read from MH i2c: E2 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 17 00 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 17 00 73 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4B [03:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:05:18]wFMCommunicate OK [03:05:18]CreateOFDProtocolMessage done [03:05:18]OFDSenderStorePacket 64084 [03:05:18]StoreOFDPacket docnum=64084 [03:05:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 49 01 00 00 6C 2F 41 01 A1 9B 5A 03 01 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 37 36 32 32 32 30 31 34 34 38 37 30 37 06 04 43 00 D0 A8 D0 BE D0 BA 20 41 47 20 D0 BC D0 BE D0 BB 20 D1 84 D1 83 D0 BD D0 B4 D1 83 D0 BA 20 D0 B8 D0 B7 D1 8E D0 BC 20 D1 84 D0 BB D0 BE D1 83 2D D0 BF D0 B0 D0 BA 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 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 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 04 00 00 00 F4 03 04 00 EE D5 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 54 FA 00 00 35 04 06 00 D6 2C B6 23 04 82 55 F9 86 C7 AB 6B 87 3A [03:05:18]CheckFolder [03:05:18]dirname=/storage/ofd_packets [03:05:18]CheckFolder done [03:05:18]ProducePacketName [03:05:18]name=ofd_packets/00064084 [03:05:18]NVStorageSaveData ofd_packets/00064084 [03:05:18]File name is /storage/ofd_packets/00064084 [03:05:18]Write 359 bytes [03:05:18]NVStorageSaveData done [03:05:18]OFDSenderStorePacket done [03:05:18]KKMCreateOFDPacket done [03:05:18]NVStorageSaveData kkm_last_timestamp [03:05:18]File name is /storage/kkm_last_timestamp [03:05:18]Write 4 bytes [03:05:18]NVStorageSaveData done [03:05:18]ExternCall_PrintAddStr [03:05:18]wPrintStart [03:05:18]Write to MH i2c: 01 00 00 74 0C 80 [03:05:18]Write i2c OK [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: 01 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: 01 07 00 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: 01 07 00 74 0C 00 00 00 00 00 FF 0F 95 [03:05:18]RasterBufferAndPrint [03:05:18]line Счет N : (3)73624 [03:05:18]line ИНН: 02508201610067 [03:05:18]line Контрольно-Кассовый Чек [03:05:18]line ПРОДАЖА [03:05:18]line Товар: 7622201448707 [03:05:18]line Шок AG мол фундук изюм флоу-пак 90г (нов [03:05:18]line 1.000 * 145.00 [03:05:18]line = 145.00 [03:05:18]line НДС 12% НСП 1% [03:05:18]line > о реализуемом товаре [03:05:18]line ИТОГО: 145.00 [03:05:18]line НСП 1% : 1.28 [03:05:18]line НДС 12% : 15.40 [03:05:18]line Наличными: 145.00 [03:05:18]line Безнал.: 0.00 [03:05:18]line Место: АЗС № 117 "Партнер Нефть" [03:05:18]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [03:05:18]line СНО: Общий режим [03:05:18]line Чек 4 05.06.2024 03:05 [03:05:18]line Смена: 375 ФФД: 1.0 [03:05:18]line ЗНМ: 0300000031 [03:05:18]line РНМ: 0000000000092737 [03:05:18]line Версия ККМ: 001 [03:05:18]line ФМ: 0000000000875074 [03:05:18]line ФД: 64084 [03:05:18]line ФПД: 235487522653314 [03:05:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T030518&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64084&fm=235487522653314&tin=02508201610067®Number=0000000000092737&sum=14500 [03:05:19]line 0 [03:05:19]OFD Sender: Processing packet 64084 [packets to send 14, broken 13] [03:05:19]ProducePacketName [03:05:19]name=ofd_packets/00064084 [03:05:19]OFD Sender: To server: pG, [03:05:19]CommunicateWithHost lk.salyk.kg:30040 [03:05:19]ConnectInit lk.salyk.kg [03:05:19]written 0, free lines is 4095 [03:05:19]Connected sock=10 [03:05:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 49 01 00 00 6C 2F 41 01 A1 9B 5A 03 01 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 37 36 32 32 32 30 31 34 34 38 37 30 37 06 04 43 00 D0 A8 D0 BE D0 BA 20 41 47 20 D0 BC D0 BE D0 BB 20 D1 84 D1 83 D0 BD D0 B4 D1 83 D0 BA 20 D0 B8 D0 B7 D1 8E D0 BC 20 D1 84 D0 BB D0 BE D1 83 2D D0 BF D0 B0 D0 BA 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 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 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 04 00 00 00 F4 03 04 00 EE D5 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 54 FA 00 00 35 04 06 00 D6 2C B6 23 04 82 55 F9 86 C7 AB 6B 87 3A [03:05:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 64 31 47 00 DF 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 54 FA 00 00 F4 03 04 00 FB 81 5F 66 B6 04 01 00 00 4C 7C 2A 85 6B 06 FB FB [03:05:19]CommunicateWithHost err = 0 [03:05:19]CheckOFDResponse [03:05:19]1017 (14) - 77093643461234 [03:05:19]1041 (16) - 0000000000875074 [03:05:19]1040 (4) - 64084 [03:05:19]1012 (4) - 04.06.2024 21:07 [03:05:19]1206 (1) - 0 [03:05:19]OFD Sender: Remove packet 64084 [03:05:19]ProducePacketName [03:05:19]name=ofd_packets/00064084 [03:05:19]NVStorageDeleteData [03:05:19]Write to MH i2c: 01 00 00 9D 0C A9 [03:05:19]Write i2c OK [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: 01 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: 01 07 00 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: 01 07 00 9D 0C 00 00 00 00 00 FD 0C B9 [03:05:19]RasterBufferAndPrint [03:05:19]line [03:05:19]line [03:05:19]line [03:05:19]line [03:05:19]line [03:05:19]written 0, free lines is 3332 [03:05:19]MH_Cut [03:05:19]Write to MH i2c: D1 01 00 A4 0C 01 82 [03:05:19]Write i2c OK [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: D1 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: D1 01 00 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: D1 01 00 A4 0C 00 81 [03:05:19]Write to MH i2c: 01 00 00 A5 0C B1 [03:05:19]Write i2c OK [03:05:19]MH_I2C_Read... [03:05:19]OFD Sender: No OFD packet to send [03:05:20]*** Cut start [03:05:20]*** Partial cut [03:05:20]*** CUTSNS_PIN = 1 [03:05:20]*** CUTSNS_PIN = 0 [03:05:20]*** Brake cut motor [03:05:20]Read from MH i2c: 01 [03:05:20]MH_I2C_Read... [03:05:20]*** Stop cut motor [03:05:20]*** Cut end [03:05:20]Read from MH i2c: 01 07 00 [03:05:20]MH_I2C_Read... [03:05:20]Read from MH i2c: 01 07 00 A5 0C 00 00 00 00 00 FF 0F C6 [03:05:20]process_action close_receipt done [03:05:20]requested_data is exist [03:05:20]produce_requested_data [03:05:20]requested_item fm.sn is exist - process it [03:05:20]wFMCommunicate request_size=4 [03:05:20]MH_SAM_APDU [03:05:20]CAPDU: 80 11 00 00 [03:05:20]Write to MH i2c: E2 08 00 A6 0C 80 11 00 00 00 00 00 00 2C [03:05:20]Write i2c OK [03:05:20]MH_I2C_Read... [03:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:05:20]Read from MH i2c: E2 [03:05:20]MH_I2C_Read... [03:05:20]Read from MH i2c: E2 17 00 [03:05:20]MH_I2C_Read... [03:05:20]Read from MH i2c: E2 17 00 A6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7E [03:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:05:20]wFMCommunicate OK [03:05:20]requested_item fd.num is exist - process it [03:05:20]SAM_PROTO_GetFieldsCounters [03:05:20]wFMCommunicate request_size=4 [03:05:20]MH_SAM_APDU [03:05:20]CAPDU: 80 13 00 00 [03:05:20]Write to MH i2c: E2 08 00 A7 0C 80 13 00 00 00 00 00 00 2F [03:05:20]Write i2c OK [03:05:20]MH_I2C_Read... [03:05:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:05:21]Read from MH i2c: E2 [03:05:21]MH_I2C_Read... [03:05:21]Read from MH i2c: E2 62 00 [03:05:21]MH_I2C_Read... [03:05:21]Read from MH i2c: E2 62 00 A7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 54 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [03:05:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 54 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:05:21]wFMCommunicate OK [03:05:21]SAM_PROTO_GetFieldsCounters done [03:05:21]requested_item shift.num is exist - process it [03:05:21]requested_item shift.opened is exist - process it [03:05:21]req_shift_opened [03:05:21]FM_GetShiftState [03:05:21]SAM_PROTO_GetShiftState [03:05:21]wFMCommunicate request_size=4 [03:05:21]MH_SAM_APDU [03:05:21]CAPDU: 80 13 01 00 [03:05:21]Write to MH i2c: E2 08 00 A8 0C 80 13 01 00 00 00 00 00 31 [03:05:21]Write i2c OK [03:05:21]MH_I2C_Read... [03:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:05:21]Read from MH i2c: E2 [03:05:21]MH_I2C_Read... [03:05:21]Read from MH i2c: E2 0E 00 [03:05:21]MH_I2C_Read... [03:05:21]Read from MH i2c: E2 0E 00 A8 0C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 72 [03:05:21]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [03:05:21]wFMCommunicate OK [03:05:21]SAM_PROTO_GetShiftState done [03:05:21]FM_GetShiftState done [03:05:21]req_shift_opened done [03:05:21]requested_item shift.open_date is exist - process it [03:05:21]req_shift_open_date [03:05:21]req_shift_open_date done [03:05:21]produce_requested_data done [03:05:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64084,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [03:05:21]process_action_free close_receipt [03:05:21]json_value_free [03:05:21]json_value_free done [03:05:21]process_json_proto returns [03:05:21]Send response to host [03:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64084,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [03:05:21]free response buf [03:05:21]execute_script done [03:05:21]execute_script returns [03:05:21]free content buf [03:05:21]Sock 9.Close socket [03:05:21]Sock 9.Thread stoped [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]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:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:49]accept exits with 8 [03:50:49]New connection [03:50:49]New thread 3067276644 created [03:50:49]Thread 3067133284 joined [03:50:49]Waiting for new connection... [03:50:49] Sock 8.Parse request [03:50:49]Sock 8.Check first char [03:50:49]Sock 8.First char is OK [03:50:49]request: POST /json_proto HTTP/1.0 [03:50:49]Method: POST [03:50:49]URL: /json_proto [03:50:49]Method is POST - this is cgi request [03:50:49]url: /json_proto [03:50:49]query_string will be loaded in cgi processing [03:50:49]execute_cgi json_proto POST (null) [03:50:49]execute_cgi path=json_proto method=POST [03:50:49]POST find Content-Length [03:50:49]Host: 172.17.60.69:8080 [03:50:49]Content-Length: 991 [03:50:49]Content-Type: application/json [03:50:49] [03:50:49]POST finish read [03:50:49]Found Content-Length = 991 [03:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73625", "tax_sys" : 0, "items" : [ { "code": "2000151200113", "name": "\u0410\u041A\u0426\u0418\u042F \u0421\u043B\u043E\u0439\u043A\u0430 \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E 110\u0433", "price" : 53.00, "quantity" : 2.000, "sum" : 106.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 226.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:50:49]execute_script... [03:50:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73625", "tax_sys" : 0, "items" : [ { "code": "2000151200113", "name": "\u0410\u041A\u0426\u0418\u042F \u0421\u043B\u043E\u0439\u043A\u0430 \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E 110\u0433", "price" : 53.00, "quantity" : 2.000, "sum" : 106.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 226.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:50:49]POST & json_proto [03:50:49]process_json_proto [03:50:49]json parsed OK: [03:50:49]protocol is kg_v1.0 [03:50:49]action value=close_receipt [03:50:49]process_action close_receipt [03:50:49]cmd_close_receipt [03:50:49]MH_GetDate [03:50:49]Write to MH i2c: F0 00 00 A9 0C A4 [03:50:49]Write i2c OK [03:50:49]MH_I2C_Read... [03:50:49]Read from MH i2c: F0 [03:50:49]MH_I2C_Read... [03:50:49]Read from MH i2c: F0 09 00 [03:50:49]MH_I2C_Read... [03:50:49]Read from MH i2c: F0 09 00 A9 0C 00 9A E0 5F 66 D2 83 5F 66 06 [03:50:49]GetLastDocTimeStamp 1717556718 [03:50:49]current date 1717559450 [03:50:49]FM_GetShiftState [03:50:49]SAM_PROTO_GetShiftState [03:50:49]wFMCommunicate request_size=4 [03:50:49]MH_SAM_APDU [03:50:49]CAPDU: 80 13 01 00 [03:50:49]Write to MH i2c: E2 08 00 AA 0C 80 13 01 00 00 00 00 00 33 [03:50:49]Write i2c OK [03:50:49]MH_I2C_Read... [03:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:50:49]Read from MH i2c: E2 [03:50:49]MH_I2C_Read... [03:50:49]Read from MH i2c: E2 0E 00 [03:50:49]MH_I2C_Read... [03:50:49]Read from MH i2c: E2 0E 00 AA 0C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 74 [03:50:49]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [03:50:49]wFMCommunicate OK [03:50:49]SAM_PROTO_GetShiftState done [03:50:49]FM_GetShiftState done [03:50:49]opened in 1717545925 [03:50:49]opened+sec_in_day 1717632325 [03:50:49]quantity*price = 10600 [03:50:49]sum+1 = 10601 [03:50:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032780025 Сосиска в тесте DC 110г 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 226.00 НСП 1% : 2.00 НДС 12% : 24.00 Наличными: 226.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 5 05.06.2024 03:50 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64085 ФПД: 223604927739324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T035050&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64085&fm=223604927739324&tin=02508201610067®Number=0000000000092737&sum=22600 0 [03:50:50]StoreToDocumentArchive [03:50:50]shift 375 fd 64085 [03:50:50]save to /storage/0375/doc_00064085 [03:50:50]save last doc name /storage/0375/doc_00064085 to /storage/kkm_last_doc_name [03:50:50]save OK [03:50:50]Clear old archive folders... [03:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=412 [03:50:50]tlvbuf is 00F97DF0 [03:50:50]SAM_PROTO_ClearQueue [03:50:50]wFMCommunicate request_size=4 [03:50:50]MH_SAM_APDU [03:50:50]CAPDU: 80 09 00 00 [03:50:50]Write to MH i2c: E2 08 00 B7 0C 80 09 00 00 00 00 00 00 35 [03:50:50]Write i2c OK [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 [03:50:50]MH_I2C_Read... [03:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:50:50]Read from MH i2c: E2 03 00 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 B7 0C 00 90 00 37 [03:50:50]RAPDU: 90 00 [03:50:50]wFMCommunicate OK [03:50:50]SAM_PROTO_ClearQueue done [03:50:50]KKMCreateOFDPacket [03:50:50]OFDProtocolAddRootSTLVToBuf [03:50:50]FM_MakeSignedData [03:50:50]FM_MakeSignedData [03:50:50]SAM_PROTO_SignData [03:50:50]wFMCommunicate request_size=4 [03:50:50]MH_SAM_APDU [03:50:50]CAPDU: 80 0D 01 02 [03:50:50]Write to MH i2c: E2 08 00 B8 0C 80 0D 01 02 00 00 00 00 3D [03:50:50]Write i2c OK [03:50:50]MH_I2C_Read... [03:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:50:50]Read from MH i2c: E2 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 B8 0C 00 90 00 38 [03:50:50]RAPDU: 90 00 [03:50:50]wFMCommunicate OK [03:50:50]wFMCommunicate request_size=255 [03:50:50]MH_SAM_APDU [03:50:50]CAPDU: 80 0D 02 02 FA 03 00 9C 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 32 30 30 30 31 35 31 32 30 30 31 31 33 06 04 3D 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 68 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 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 [03:50:50]Write to MH i2c: E2 02 01 B9 0C 80 0D 02 02 FA 00 03 00 9C 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 32 30 30 30 31 35 31 32 30 30 31 31 33 06 04 3D 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 68 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 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 00 1F [03:50:50]Write i2c OK [03:50:50]MH_I2C_Read... [03:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:50:50]Read from MH i2c: E2 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 B9 0C 00 90 00 39 [03:50:50]RAPDU: 90 00 [03:50:50]wFMCommunicate OK [03:50:50]wFMCommunicate request_size=171 [03:50:50]MH_SAM_APDU [03:50:50]CAPDU: 80 0D 02 02 A6 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9A E0 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 55 FA 00 00 35 04 06 00 CB 5E 14 49 B5 BC [03:50:50]Write to MH i2c: E2 AE 00 BA 0C 80 0D 02 02 A6 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9A E0 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 55 FA 00 00 35 04 06 00 CB 5E 14 49 B5 BC 00 00 44 [03:50:50]Write i2c OK [03:50:50]MH_I2C_Read... [03:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:50:50]Read from MH i2c: E2 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 BA 0C 00 90 00 3A [03:50:50]RAPDU: 90 00 [03:50:50]wFMCommunicate OK [03:50:50]wFMCommunicate request_size=4 [03:50:50]MH_SAM_APDU [03:50:50]CAPDU: 80 0D 03 02 [03:50:50]Write to MH i2c: E2 08 00 BB 0C 80 0D 03 02 00 00 00 00 42 [03:50:50]Write i2c OK [03:50:50]MH_I2C_Read... [03:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:50:50]Read from MH i2c: E2 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 0B 00 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 0B 00 BB 0C 00 8E 67 3F 80 62 9F FD DA 90 00 CF [03:50:50]RAPDU: 8E 67 3F 80 62 9F FD DA 90 00 [03:50:50]wFMCommunicate OK [03:50:50]SAM_PROTO_SignData done [03:50:50]FM_MakeSignedData done [03:50:50]CreateOFDProtocolMessage [03:50:50]wFMCommunicate request_size=4 [03:50:50]MH_SAM_APDU [03:50:50]CAPDU: 80 11 00 00 [03:50:50]Write to MH i2c: E2 08 00 BC 0C 80 11 00 00 00 00 00 00 42 [03:50:50]Write i2c OK [03:50:50]MH_I2C_Read... [03:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:50:51]Read from MH i2c: E2 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: E2 17 00 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: E2 17 00 BC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 94 [03:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:50:51]wFMCommunicate OK [03:50:51]CreateOFDProtocolMessage done [03:50:51]OFDSenderStorePacket 64085 [03:50:51]StoreOFDPacket docnum=64085 [03:50:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 B0 01 00 00 D3 DD A8 01 C8 86 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 32 30 30 30 31 35 31 32 30 30 31 31 33 06 04 3D 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 68 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 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 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9A E0 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 55 FA 00 00 35 04 06 00 CB 5E 14 49 B5 BC 8E 67 3F 80 62 9F FD DA [03:50:51]CheckFolder [03:50:51]dirname=/storage/ofd_packets [03:50:51]CheckFolder done [03:50:51]ProducePacketName [03:50:51]name=ofd_packets/00064085 [03:50:51]NVStorageSaveData ofd_packets/00064085 [03:50:51]File name is /storage/ofd_packets/00064085 [03:50:51]Write 462 bytes [03:50:51]NVStorageSaveData done [03:50:51]OFDSenderStorePacket done [03:50:51]KKMCreateOFDPacket done [03:50:51]NVStorageSaveData kkm_last_timestamp [03:50:51]File name is /storage/kkm_last_timestamp [03:50:51]Write 4 bytes [03:50:51]NVStorageSaveData done [03:50:51]ExternCall_PrintAddStr [03:50:51]wPrintStart [03:50:51]Write to MH i2c: 01 00 00 BD 0C C9 [03:50:51]Write i2c OK [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: 01 [03:50:51]MH_I2C_Read... [03:50:51]OFD Sender: Processing packet 64085 [packets to send 14, broken 13] [03:50:51]ProducePacketName [03:50:51]name=ofd_packets/00064085 [03:50:51]OFD Sender: To server: pG, [03:50:51]CommunicateWithHost lk.salyk.kg:30040 [03:50:51]ConnectInit lk.salyk.kg [03:50:51]Read from MH i2c: 01 07 00 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: 01 07 00 BD 0C 00 00 00 00 00 FF 0F DE [03:50:51]RasterBufferAndPrint [03:50:51]line Счет N : (3)73625 [03:50:51]line ИНН: 02508201610067 [03:50:51]line Контрольно-Кассовый Чек [03:50:51]line ПРОДАЖА [03:50:51]line Товар: 2000151200113 [03:50:51]line АКЦИЯ Слойка треугольная мясо 110г [03:50:51]line 2.000 * 53.00 [03:50:51]line = 106.00 [03:50:51]line НДС 12% НСП 1% [03:50:51]line > о реализуемом товаре [03:50:51]line Товар: 2000032780025 [03:50:51]line Сосиска в тесте DC 110г [03:50:51]line 2.000 * 60.00 [03:50:51]line = 120.00 [03:50:51]line НДС 12% НСП 1% [03:50:51]line > о реализуемом товаре [03:50:51]line ИТОГО: 226.00 [03:50:51]line НСП 1% : 2.00 [03:50:51]line НДС 12% : 24.00 [03:50:51]line Наличными: 226.00 [03:50:51]line Безнал.: 0.00 [03:50:51]line Место: АЗС № 117 "Партнер Нефть" [03:50:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [03:50:51]line СНО: Общий режим [03:50:51]line Чек 5 05.06.2024 03:50 [03:50:51]line Смена: 375 ФФД: 1.0 [03:50:51]line ЗНМ: 0300000031 [03:50:51]line РНМ: 0000000000092737 [03:50:51]line Версия ККМ: 001 [03:50:51]line ФМ: 0000000000875074 [03:50:51]line ФД: 64085 [03:50:51]line ФПД: 223604927739324 [03:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T035050&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64085&fm=223604927739324&tin=02508201610067®Number=0000000000092737&sum=22600 [03:50:51]line 0 [03:50:51]written 0, free lines is 4095 [03:50:51]Connected sock=10 [03:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 B0 01 00 00 D3 DD A8 01 C8 86 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 32 30 30 30 31 35 31 32 30 30 31 31 33 06 04 3D 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 68 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 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 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9A E0 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 55 FA 00 00 35 04 06 00 CB 5E 14 49 B5 BC 8E 67 3F 80 62 9F FD DA [03:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 FB A1 47 00 76 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 55 FA 00 00 F4 03 04 00 A7 8C 5F 66 B6 04 01 00 00 28 AB 9A 10 44 72 86 EA [03:50:51]CommunicateWithHost err = 0 [03:50:51]CheckOFDResponse [03:50:51]1017 (14) - 77093643461234 [03:50:51]1041 (16) - 0000000000875074 [03:50:51]1040 (4) - 64085 [03:50:51]1012 (4) - 04.06.2024 21:52 [03:50:51]1206 (1) - 0 [03:50:51]OFD Sender: Remove packet 64085 [03:50:51]ProducePacketName [03:50:51]name=ofd_packets/00064085 [03:50:51]NVStorageDeleteData [03:50:51]Write to MH i2c: 01 00 00 EC 0C F8 [03:50:51]Write i2c OK [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: 01 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: 01 07 00 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: 01 07 00 EC 0C 00 00 00 00 00 80 0C 8B [03:50:51]RasterBufferAndPrint [03:50:51]line [03:50:51]line [03:50:51]line [03:50:51]line [03:50:51]line [03:50:51]written 0, free lines is 3208 [03:50:51]MH_Cut [03:50:51]Write to MH i2c: D1 01 00 F3 0C 01 D1 [03:50:51]Write i2c OK [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: D1 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: D1 01 00 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: D1 01 00 F3 0C 00 D0 [03:50:51]Write to MH i2c: 01 00 00 F4 0C 00 [03:50:51]Write i2c OK [03:50:51]MH_I2C_Read... [03:50:52]OFD Sender: No OFD packet to send [03:50:52]*** Cut start [03:50:52]*** Partial cut [03:50:52]*** CUTSNS_PIN = 1 [03:50:52]*** CUTSNS_PIN = 0 [03:50:53]*** Brake cut motor [03:50:53]Read from MH i2c: 01 [03:50:53]MH_I2C_Read... [03:50:53]*** Stop cut motor [03:50:53]*** Cut end [03:50:53]Read from MH i2c: 01 07 00 [03:50:53]MH_I2C_Read... [03:50:53]Read from MH i2c: 01 07 00 F4 0C 00 00 00 00 00 FF 0F 15 [03:50:53]process_action close_receipt done [03:50:53]requested_data is exist [03:50:53]produce_requested_data [03:50:53]requested_item fm.sn is exist - process it [03:50:53]wFMCommunicate request_size=4 [03:50:53]MH_SAM_APDU [03:50:53]CAPDU: 80 11 00 00 [03:50:53]Write to MH i2c: E2 08 00 F5 0C 80 11 00 00 00 00 00 00 7B [03:50:53]Write i2c OK [03:50:53]MH_I2C_Read... [03:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:50:53]Read from MH i2c: E2 [03:50:53]MH_I2C_Read... [03:50:53]Read from MH i2c: E2 17 00 [03:50:53]MH_I2C_Read... [03:50:53]Read from MH i2c: E2 17 00 F5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CD [03:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:50:53]wFMCommunicate OK [03:50:53]requested_item fd.num is exist - process it [03:50:53]SAM_PROTO_GetFieldsCounters [03:50:53]wFMCommunicate request_size=4 [03:50:53]MH_SAM_APDU [03:50:53]CAPDU: 80 13 00 00 [03:50:53]Write to MH i2c: E2 08 00 F6 0C 80 13 00 00 00 00 00 00 7E [03:50:53]Write i2c OK [03:50:53]MH_I2C_Read... [03:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:50:53]Read from MH i2c: E2 [03:50:53]MH_I2C_Read... [03:50:53]Read from MH i2c: E2 62 00 [03:50:53]MH_I2C_Read... [03:50:53]Read from MH i2c: E2 62 00 F6 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 55 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [03:50:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 55 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:50:53]wFMCommunicate OK [03:50:53]SAM_PROTO_GetFieldsCounters done [03:50:53]requested_item shift.num is exist - process it [03:50:53]requested_item shift.opened is exist - process it [03:50:53]req_shift_opened [03:50:53]FM_GetShiftState [03:50:53]SAM_PROTO_GetShiftState [03:50:53]wFMCommunicate request_size=4 [03:50:53]MH_SAM_APDU [03:50:53]CAPDU: 80 13 01 00 [03:50:53]Write to MH i2c: E2 08 00 F7 0C 80 13 01 00 00 00 00 00 80 [03:50:53]Write i2c OK [03:50:53]MH_I2C_Read... [03:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:50:53]Read from MH i2c: E2 [03:50:53]MH_I2C_Read... [03:50:53]Read from MH i2c: E2 0E 00 [03:50:53]MH_I2C_Read... [03:50:53]Read from MH i2c: E2 0E 00 F7 0C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 C1 [03:50:53]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [03:50:53]wFMCommunicate OK [03:50:53]SAM_PROTO_GetShiftState done [03:50:53]FM_GetShiftState done [03:50:53]req_shift_opened done [03:50:53]requested_item shift.open_date is exist - process it [03:50:53]req_shift_open_date [03:50:53]req_shift_open_date done [03:50:53]produce_requested_data done [03:50:53]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64085,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [03:50:53]process_action_free close_receipt [03:50:53]json_value_free [03:50:53]json_value_free done [03:50:53]process_json_proto returns [03:50:53]Send response to host [03:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64085,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [03:50:53]free response buf [03:50:53]execute_script done [03:50:53]execute_script returns [03:50:53]free content buf [03:50:53]Sock 8.Close socket [03:50:53]Sock 8.Thread stoped [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:19]accept exits with 9 [03:51:19]New connection [03:51:19]New thread 3067133284 created [03:51:19]Thread 3067276644 joined [03:51:19]Waiting for new connection... [03:51:19] Sock 9.Parse request [03:51:19]Sock 9.Check first char [03:51:19]Sock 9.First char is OK [03:51:19]request: POST /json_proto HTTP/1.0 [03:51:19]Method: POST [03:51:19]URL: /json_proto [03:51:19]Method is POST - this is cgi request [03:51:19]url: /json_proto [03:51:19]query_string will be loaded in cgi processing [03:51:19]execute_cgi json_proto POST (null) [03:51:19]execute_cgi path=json_proto method=POST [03:51:19]POST find Content-Length [03:51:19]Host: 172.17.60.69:8080 [03:51:19]Content-Length: 823 [03:51:19]Content-Type: application/json [03:51:19] [03:51:19]POST finish read [03:51:19]Found Content-Length = 823 [03:51:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73626", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:51:19]execute_script... [03:51: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)73626", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:51:19]POST & json_proto [03:51:19]process_json_proto [03:51:19]json parsed OK: [03:51:19]protocol is kg_v1.0 [03:51:19]action value=close_receipt [03:51:19]process_action close_receipt [03:51:19]cmd_close_receipt [03:51:19]MH_GetDate [03:51:19]Write to MH i2c: F0 00 00 F8 0C F3 [03:51:19]Write i2c OK [03:51:19]MH_I2C_Read... [03:51:19]Read from MH i2c: F0 [03:51:19]MH_I2C_Read... [03:51:19]Read from MH i2c: F0 09 00 [03:51:19]MH_I2C_Read... [03:51:19]Read from MH i2c: F0 09 00 F8 0C 00 B8 E0 5F 66 D2 83 5F 66 73 [03:51:19]GetLastDocTimeStamp 1717559450 [03:51:19]current date 1717559480 [03:51:19]FM_GetShiftState [03:51:19]SAM_PROTO_GetShiftState [03:51:19]wFMCommunicate request_size=4 [03:51:19]MH_SAM_APDU [03:51:19]CAPDU: 80 13 01 00 [03:51:19]Write to MH i2c: E2 08 00 F9 0C 80 13 01 00 00 00 00 00 82 [03:51:19]Write i2c OK [03:51:19]MH_I2C_Read... [03:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:51:19]Read from MH i2c: E2 [03:51:19]MH_I2C_Read... [03:51:19]Read from MH i2c: E2 0E 00 [03:51:19]MH_I2C_Read... [03:51:19]Read from MH i2c: E2 0E 00 F9 0C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 C3 [03:51:19]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [03:51:19]wFMCommunicate OK [03:51:19]SAM_PROTO_GetShiftState done [03:51:19]FM_GetShiftState done [03:51:19]opened in 1717545925 [03:51:19]opened+sec_in_day 1717632325 [03:51:19]quantity*price = 13000 [03:51:19]sum+1 = 13001 [03:51:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 6 05.06.2024 03:51 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64086 ФПД: 277953451730399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T035120&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64086&fm=277953451730399&tin=02508201610067®Number=0000000000092737&sum=13000 0 [03:51:20]StoreToDocumentArchive [03:51:20]shift 375 fd 64086 [03:51:20]save to /storage/0375/doc_00064086 [03:51:20]save last doc name /storage/0375/doc_00064086 to /storage/kkm_last_doc_name [03:51:20]save OK [03:51:20]Clear old archive folders... [03:51:20]ProcessDocumentItem done err = 0, tmpTLVsize=275 [03:51:20]tlvbuf is 01090570 [03:51:20]SAM_PROTO_ClearQueue [03:51:20]wFMCommunicate request_size=4 [03:51:20]MH_SAM_APDU [03:51:20]CAPDU: 80 09 00 00 [03:51:20]Write to MH i2c: E2 08 00 06 0D 80 09 00 00 00 00 00 00 85 [03:51:20]Write i2c OK [03:51:20]MH_I2C_Read... [03:51:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:51:20]Read from MH i2c: E2 [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: E2 03 00 [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: E2 03 00 06 0D 00 90 00 87 [03:51:20]RAPDU: 90 00 [03:51:20]wFMCommunicate OK [03:51:20]SAM_PROTO_ClearQueue done [03:51:20]KKMCreateOFDPacket [03:51:20]OFDProtocolAddRootSTLVToBuf [03:51:20]FM_MakeSignedData [03:51:20]FM_MakeSignedData [03:51:20]SAM_PROTO_SignData [03:51:20]wFMCommunicate request_size=4 [03:51:20]MH_SAM_APDU [03:51:20]CAPDU: 80 0D 01 02 [03:51:20]Write to MH i2c: E2 08 00 07 0D 80 0D 01 02 00 00 00 00 8D [03:51:20]Write i2c OK [03:51:20]MH_I2C_Read... [03:51:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:51:20]Read from MH i2c: E2 [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: E2 03 00 [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: E2 03 00 07 0D 00 90 00 88 [03:51:20]RAPDU: 90 00 [03:51:20]wFMCommunicate OK [03:51:20]wFMCommunicate request_size=255 [03:51:20]MH_SAM_APDU [03:51:20]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 B8 E0 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 [03:51:20]Write to MH i2c: E2 02 01 08 0D 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 B8 E0 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 00 00 35 [03:51:20]Write i2c OK [03:51:20]MH_I2C_Read... [03:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:51:20]Read from MH i2c: E2 [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: E2 03 00 [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: E2 03 00 08 0D 00 90 00 89 [03:51:20]RAPDU: 90 00 [03:51:20]wFMCommunicate OK [03:51:20]wFMCommunicate request_size=34 [03:51:20]MH_SAM_APDU [03:51:20]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 56 FA 00 00 35 04 06 00 FC CC 14 C1 25 DF [03:51:20]Write to MH i2c: E2 25 00 09 0D 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 56 FA 00 00 35 04 06 00 FC CC 14 C1 25 DF 00 00 41 [03:51:20]Write i2c OK [03:51:20]MH_I2C_Read... [03:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:51:20]Read from MH i2c: E2 [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: E2 03 00 [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: E2 03 00 09 0D 00 90 00 8A [03:51:20]RAPDU: 90 00 [03:51:20]wFMCommunicate OK [03:51:20]wFMCommunicate request_size=4 [03:51:20]MH_SAM_APDU [03:51:20]CAPDU: 80 0D 03 02 [03:51:20]Write to MH i2c: E2 08 00 0A 0D 80 0D 03 02 00 00 00 00 92 [03:51:20]Write i2c OK [03:51:20]MH_I2C_Read... [03:51:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:51:20]Read from MH i2c: E2 [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: E2 0B 00 [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: E2 0B 00 0A 0D 00 1B D6 39 BA 28 33 01 14 90 00 E7 [03:51:20]RAPDU: 1B D6 39 BA 28 33 01 14 90 00 [03:51:20]wFMCommunicate OK [03:51:20]SAM_PROTO_SignData done [03:51:20]FM_MakeSignedData done [03:51:20]CreateOFDProtocolMessage [03:51:20]wFMCommunicate request_size=4 [03:51:20]MH_SAM_APDU [03:51:20]CAPDU: 80 11 00 00 [03:51:20]Write to MH i2c: E2 08 00 0B 0D 80 11 00 00 00 00 00 00 92 [03:51:20]Write i2c OK [03:51:20]MH_I2C_Read... [03:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:51:20]Read from MH i2c: E2 [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: E2 17 00 [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: E2 17 00 0B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E4 [03:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:51:20]wFMCommunicate OK [03:51:20]CreateOFDProtocolMessage done [03:51:20]OFDSenderStorePacket 64086 [03:51:20]StoreOFDPacket docnum=64086 [03:51:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 27 01 00 00 B6 D9 1F 01 53 34 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 B8 E0 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 56 FA 00 00 35 04 06 00 FC CC 14 C1 25 DF 1B D6 39 BA 28 33 01 14 [03:51:20]CheckFolder [03:51:20]dirname=/storage/ofd_packets [03:51:20]CheckFolder done [03:51:20]ProducePacketName [03:51:20]name=ofd_packets/00064086 [03:51:20]NVStorageSaveData ofd_packets/00064086 [03:51:20]File name is /storage/ofd_packets/00064086 [03:51:20]Write 325 bytes [03:51:20]NVStorageSaveData done [03:51:20]OFDSenderStorePacket done [03:51:20]KKMCreateOFDPacket done [03:51:20]NVStorageSaveData kkm_last_timestamp [03:51:20]File name is /storage/kkm_last_timestamp [03:51:20]Write 4 bytes [03:51:20]NVStorageSaveData done [03:51:20]ExternCall_PrintAddStr [03:51:20]wPrintStart [03:51:20]Write to MH i2c: 01 00 00 0C 0D 19 [03:51:20]OFD Sender: Processing packet 64086 [packets to send 14, broken 13] [03:51:20]ProducePacketName [03:51:20]name=ofd_packets/00064086 [03:51:20]OFD Sender: To server: pG, [03:51:20]CommunicateWithHost lk.salyk.kg:30040 [03:51:20]ConnectInit lk.salyk.kg [03:51:20]Write i2c OK [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: 01 [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: 01 07 00 [03:51:20]MH_I2C_Read... [03:51:20]Read from MH i2c: 01 07 00 0C 0D 00 00 00 00 00 FF 0F 2E [03:51:20]RasterBufferAndPrint [03:51:20]line Счет N : (3)73626 [03:51:20]line ИНН: 02508201610067 [03:51:20]line Контрольно-Кассовый Чек [03:51:20]line ПРОДАЖА [03:51:20]line Товар: 48741415 [03:51:20]line Сигареты LD Super Slims Violet [03:51:20]line 1.000 * 130.00 [03:51:20]line = 130.00 [03:51:20]line НДС 12% НСП 1% [03:51:20]line > о реализуемом товаре [03:51:20]line ИТОГО: 130.00 [03:51:20]line НСП 1% : 1.15 [03:51:20]line НДС 12% : 13.80 [03:51:20]line Наличными: 0.00 [03:51:20]line Безнал.: 130.00 [03:51:20]line Место: АЗС № 117 "Партнер Нефть" [03:51:20]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [03:51:20]line СНО: Общий режим [03:51:20]line Чек 6 05.06.2024 03:51 [03:51:20]line Смена: 375 ФФД: 1.0 [03:51:20]line ЗНМ: 0300000031 [03:51:20]line РНМ: 0000000000092737 [03:51:20]line Версия ККМ: 001 [03:51:20]line Платежная система: АКБ Кыргызстан [03:51:20]line ФМ: 0000000000875074 [03:51:20]line ФД: 64086 [03:51:20]line ФПД: 277953451730399 [03:51:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T035120&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64086&fm=277953451730399&tin=02508201610067®Number=0000000000092737&sum=13000 [03:51:21]Connected sock=10 [03:51:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 27 01 00 00 B6 D9 1F 01 53 34 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 B8 E0 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 56 FA 00 00 35 04 06 00 FC CC 14 C1 25 DF 1B D6 39 BA 28 33 01 14 [03:51:21]line 0 [03:51:21]written 0, free lines is 4095 [03:51:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 B0 68 47 00 4C A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 56 FA 00 00 F4 03 04 00 C5 8C 5F 66 B6 04 01 00 00 2C BD EB 31 5C F0 1E 71 [03:51:21]CommunicateWithHost err = 0 [03:51:21]CheckOFDResponse [03:51:21]1017 (14) - 77093643461234 [03:51:21]1041 (16) - 0000000000875074 [03:51:21]1040 (4) - 64086 [03:51:21]1012 (4) - 04.06.2024 21:53 [03:51:21]1206 (1) - 0 [03:51:21]OFD Sender: Remove packet 64086 [03:51:21]ProducePacketName [03:51:21]name=ofd_packets/00064086 [03:51:21]NVStorageDeleteData [03:51:21]Write to MH i2c: 01 00 00 37 0D 44 [03:51:21]Write i2c OK [03:51:21]MH_I2C_Read... [03:51:21]Read from MH i2c: 01 [03:51:21]MH_I2C_Read... [03:51:21]Read from MH i2c: 01 07 00 [03:51:21]MH_I2C_Read... [03:51:21]Read from MH i2c: 01 07 00 37 0D 00 00 00 00 00 C9 0C 20 [03:51:21]RasterBufferAndPrint [03:51:21]line [03:51:21]line [03:51:21]line [03:51:21]line [03:51:21]line [03:51:21]written 0, free lines is 3280 [03:51:21]MH_Cut [03:51:21]Write to MH i2c: D1 01 00 3E 0D 01 1D [03:51:21]Write i2c OK [03:51:21]MH_I2C_Read... [03:51:21]Read from MH i2c: D1 [03:51:21]MH_I2C_Read... [03:51:21]Read from MH i2c: D1 01 00 [03:51:21]MH_I2C_Read... [03:51:21]Read from MH i2c: D1 01 00 3E 0D 00 1C [03:51:21]Write to MH i2c: 01 00 00 3F 0D 4C [03:51:21]Write i2c OK [03:51:21]MH_I2C_Read... [03:51:21]OFD Sender: No OFD packet to send [03:51:22]*** Cut start [03:51:22]*** Partial cut [03:51:22]*** CUTSNS_PIN = 1 [03:51:22]*** CUTSNS_PIN = 0 [03:51:22]*** Brake cut motor [03:51:23]Read from MH i2c: 01 [03:51:23]MH_I2C_Read... [03:51:23]*** Stop cut motor [03:51:23]*** Cut end [03:51:23]Read from MH i2c: 01 07 00 [03:51:23]MH_I2C_Read... [03:51:23]Read from MH i2c: 01 07 00 3F 0D 00 00 00 00 00 FF 0F 61 [03:51:23]process_action close_receipt done [03:51:23]requested_data is exist [03:51:23]produce_requested_data [03:51:23]requested_item fm.sn is exist - process it [03:51:23]wFMCommunicate request_size=4 [03:51:23]MH_SAM_APDU [03:51:23]CAPDU: 80 11 00 00 [03:51:23]Write to MH i2c: E2 08 00 40 0D 80 11 00 00 00 00 00 00 C7 [03:51:23]Write i2c OK [03:51:23]MH_I2C_Read... [03:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:51:23]Read from MH i2c: E2 [03:51:23]MH_I2C_Read... [03:51:23]Read from MH i2c: E2 17 00 [03:51:23]MH_I2C_Read... [03:51:23]Read from MH i2c: E2 17 00 40 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 19 [03:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:51:23]wFMCommunicate OK [03:51:23]requested_item fd.num is exist - process it [03:51:23]SAM_PROTO_GetFieldsCounters [03:51:23]wFMCommunicate request_size=4 [03:51:23]MH_SAM_APDU [03:51:23]CAPDU: 80 13 00 00 [03:51:23]Write to MH i2c: E2 08 00 41 0D 80 13 00 00 00 00 00 00 CA [03:51:23]Write i2c OK [03:51:23]MH_I2C_Read... [03:51:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:51:23]Read from MH i2c: E2 [03:51:23]MH_I2C_Read... [03:51:23]Read from MH i2c: E2 62 00 [03:51:23]MH_I2C_Read... [03:51:23]Read from MH i2c: E2 62 00 41 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 56 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [03:51:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 56 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:51:23]wFMCommunicate OK [03:51:23]SAM_PROTO_GetFieldsCounters done [03:51:23]requested_item shift.num is exist - process it [03:51:23]requested_item shift.opened is exist - process it [03:51:23]req_shift_opened [03:51:23]FM_GetShiftState [03:51:23]SAM_PROTO_GetShiftState [03:51:23]wFMCommunicate request_size=4 [03:51:23]MH_SAM_APDU [03:51:23]CAPDU: 80 13 01 00 [03:51:23]Write to MH i2c: E2 08 00 42 0D 80 13 01 00 00 00 00 00 CC [03:51:23]Write i2c OK [03:51:23]MH_I2C_Read... [03:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:51:23]Read from MH i2c: E2 [03:51:23]MH_I2C_Read... [03:51:23]Read from MH i2c: E2 0E 00 [03:51:23]MH_I2C_Read... [03:51:23]Read from MH i2c: E2 0E 00 42 0D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 0D [03:51:23]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [03:51:23]wFMCommunicate OK [03:51:23]SAM_PROTO_GetShiftState done [03:51:23]FM_GetShiftState done [03:51:23]req_shift_opened done [03:51:23]requested_item shift.open_date is exist - process it [03:51:23]req_shift_open_date [03:51:23]req_shift_open_date done [03:51:23]produce_requested_data done [03:51:23]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64086,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [03:51:23]process_action_free close_receipt [03:51:23]json_value_free [03:51:23]json_value_free done [03:51:23]process_json_proto returns [03:51:23]Send response to host [03:51:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64086,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [03:51:23]free response buf [03:51:23]execute_script done [03:51:23]execute_script returns [03:51:23]free content buf [03:51:23]Sock 9.Close socket [03:51:23]Sock 9.Thread stoped [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:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:04]accept exits with 8 [04:43:04]New connection [04:43:04]New thread 3067276644 created [04:43:04]Thread 3067133284 joined [04:43:04]Waiting for new connection... [04:43:04] Sock 8.Parse request [04:43:04]Sock 8.Check first char [04:43:04]Sock 8.First char is OK [04:43:04]request: POST /json_proto HTTP/1.0 [04:43:04]Method: POST [04:43:04]URL: /json_proto [04:43:04]Method is POST - this is cgi request [04:43:04]url: /json_proto [04:43:04]query_string will be loaded in cgi processing [04:43:04]execute_cgi json_proto POST (null) [04:43:04]execute_cgi path=json_proto method=POST [04:43:04]POST find Content-Length [04:43:04]Host: 172.17.60.69:8080 [04:43:04]Content-Length: 938 [04:43:04]Content-Type: application/json [04:43:04] [04:43:04]POST finish read [04:43:04]Found Content-Length = 938 [04:43:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73627", "tax_sys" : 0, "items" : [ { "code": "2000151200112", "name": "\u0410\u041A\u0426\u0418\u042F \u0421\u043B\u043E\u0439\u043A\u0430 \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 53.00, "quantity" : 3.000, "sum" : 159.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:43:04]execute_script... [04:43: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)73627", "tax_sys" : 0, "items" : [ { "code": "2000151200112", "name": "\u0410\u041A\u0426\u0418\u042F \u0421\u043B\u043E\u0439\u043A\u0430 \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 53.00, "quantity" : 3.000, "sum" : 159.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:43:04]POST & json_proto [04:43:04]process_json_proto [04:43:04]json parsed OK: [04:43:04]protocol is kg_v1.0 [04:43:04]action value=close_receipt [04:43:04]process_action close_receipt [04:43:04]cmd_close_receipt [04:43:04]MH_GetDate [04:43:04]Write to MH i2c: F0 00 00 43 0D 3F [04:43:04]Write i2c OK [04:43:04]MH_I2C_Read... [04:43:04]Read from MH i2c: F0 [04:43:04]MH_I2C_Read... [04:43:04]Read from MH i2c: F0 09 00 [04:43:04]MH_I2C_Read... [04:43:04]Read from MH i2c: F0 09 00 43 0D 00 DA EC 5F 66 D2 83 5F 66 ED [04:43:04]GetLastDocTimeStamp 1717559480 [04:43:04]current date 1717562586 [04:43:04]FM_GetShiftState [04:43:04]SAM_PROTO_GetShiftState [04:43:04]wFMCommunicate request_size=4 [04:43:04]MH_SAM_APDU [04:43:04]CAPDU: 80 13 01 00 [04:43:04]Write to MH i2c: E2 08 00 44 0D 80 13 01 00 00 00 00 00 CE [04:43:04]Write i2c OK [04:43:04]MH_I2C_Read... [04:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:05]Read from MH i2c: E2 [04:43:05]MH_I2C_Read... [04:43:05]Read from MH i2c: E2 0E 00 [04:43:05]MH_I2C_Read... [04:43:05]Read from MH i2c: E2 0E 00 44 0D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 0F [04:43:05]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [04:43:05]wFMCommunicate OK [04:43:05]SAM_PROTO_GetShiftState done [04:43:05]FM_GetShiftState done [04:43:05]opened in 1717545925 [04:43:05]opened+sec_in_day 1717632325 [04:43:05]quantity*price = 15900 [04:43:05]sum+1 = 15901 [04:43:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 7 05.06.2024 04:43 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64087 ФПД: 36717114464787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T044306&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64087&fm=36717114464787&tin=02508201610067®Number=0000000000092737&sum=15900 0 [04:43:06]StoreToDocumentArchive [04:43:06]shift 375 fd 64087 [04:43:06]save to /storage/0375/doc_00064087 [04:43:06]save last doc name /storage/0375/doc_00064087 to /storage/kkm_last_doc_name [04:43:06]save OK [04:43:06]Clear old archive folders... [04:43:06]ProcessDocumentItem done err = 0, tmpTLVsize=307 [04:43:06]tlvbuf is 00FB2A30 [04:43:06]SAM_PROTO_ClearQueue [04:43:06]wFMCommunicate request_size=4 [04:43:06]MH_SAM_APDU [04:43:06]CAPDU: 80 09 00 00 [04:43:06]Write to MH i2c: E2 08 00 51 0D 80 09 00 00 00 00 00 00 D0 [04:43:06]Write i2c OK [04:43:06]MH_I2C_Read... [04:43:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:43:06]Read from MH i2c: E2 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: E2 03 00 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: E2 03 00 51 0D 00 90 00 D2 [04:43:06]RAPDU: 90 00 [04:43:06]wFMCommunicate OK [04:43:06]SAM_PROTO_ClearQueue done [04:43:06]KKMCreateOFDPacket [04:43:06]OFDProtocolAddRootSTLVToBuf [04:43:06]FM_MakeSignedData [04:43:06]FM_MakeSignedData [04:43:06]SAM_PROTO_SignData [04:43:06]wFMCommunicate request_size=4 [04:43:06]MH_SAM_APDU [04:43:06]CAPDU: 80 0D 01 02 [04:43:06]Write to MH i2c: E2 08 00 52 0D 80 0D 01 02 00 00 00 00 D8 [04:43:06]Write i2c OK [04:43:06]MH_I2C_Read... [04:43:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:43:06]Read from MH i2c: E2 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: E2 03 00 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: E2 03 00 52 0D 00 90 00 D3 [04:43:06]RAPDU: 90 00 [04:43:06]wFMCommunicate OK [04:43:06]wFMCommunicate request_size=255 [04:43:06]MH_SAM_APDU [04:43:06]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 31 35 31 32 30 30 31 31 32 06 04 41 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 DA EC 5F 66 0E 04 04 00 77 01 00 00 B9 04 [04:43:06]Write to MH i2c: E2 02 01 53 0D 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 31 35 31 32 30 30 31 31 32 06 04 41 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 DA EC 5F 66 0E 04 04 00 77 01 00 00 B9 04 00 00 DC [04:43:06]Write i2c OK [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: E2 [04:43:06]MH_I2C_Read... [04:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:06]Read from MH i2c: E2 03 00 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: E2 03 00 53 0D 00 90 00 D4 [04:43:06]RAPDU: 90 00 [04:43:06]wFMCommunicate OK [04:43:06]wFMCommunicate request_size=66 [04:43:06]MH_SAM_APDU [04:43:06]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 57 FA 00 00 35 04 06 00 21 64 DE 90 9A 13 [04:43:06]Write to MH i2c: E2 45 00 54 0D 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 57 FA 00 00 35 04 06 00 21 64 DE 90 9A 13 00 00 20 [04:43:06]Write i2c OK [04:43:06]MH_I2C_Read... [04:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:06]Read from MH i2c: E2 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: E2 03 00 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: E2 03 00 54 0D 00 90 00 D5 [04:43:06]RAPDU: 90 00 [04:43:06]wFMCommunicate OK [04:43:06]wFMCommunicate request_size=4 [04:43:06]MH_SAM_APDU [04:43:06]CAPDU: 80 0D 03 02 [04:43:06]Write to MH i2c: E2 08 00 55 0D 80 0D 03 02 00 00 00 00 DD [04:43:06]Write i2c OK [04:43:06]MH_I2C_Read... [04:43:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:43:06]Read from MH i2c: E2 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: E2 0B 00 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: E2 0B 00 55 0D 00 42 D0 00 0E B2 11 34 AB 90 00 A0 [04:43:06]RAPDU: 42 D0 00 0E B2 11 34 AB 90 00 [04:43:06]wFMCommunicate OK [04:43:06]SAM_PROTO_SignData done [04:43:06]FM_MakeSignedData done [04:43:06]CreateOFDProtocolMessage [04:43:06]wFMCommunicate request_size=4 [04:43:06]MH_SAM_APDU [04:43:06]CAPDU: 80 11 00 00 [04:43:06]Write to MH i2c: E2 08 00 56 0D 80 11 00 00 00 00 00 00 DD [04:43:06]Write i2c OK [04:43:06]MH_I2C_Read... [04:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:06]Read from MH i2c: E2 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: E2 17 00 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: E2 17 00 56 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 2F [04:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [04:43:06]wFMCommunicate OK [04:43:06]CreateOFDProtocolMessage done [04:43:06]OFDSenderStorePacket 64087 [04:43:06]StoreOFDPacket docnum=64087 [04:43:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 47 01 00 00 D5 F8 3F 01 EE D2 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 31 35 31 32 30 30 31 31 32 06 04 41 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 DA EC 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 57 FA 00 00 35 04 06 00 21 64 DE 90 9A 13 42 D0 00 0E B2 11 34 AB [04:43:06]CheckFolder [04:43:06]dirname=/storage/ofd_packets [04:43:06]CheckFolder done [04:43:06]ProducePacketName [04:43:06]name=ofd_packets/00064087 [04:43:06]NVStorageSaveData ofd_packets/00064087 [04:43:06]File name is /storage/ofd_packets/00064087 [04:43:06]Write 357 bytes [04:43:06]NVStorageSaveData done [04:43:06]OFDSenderStorePacket done [04:43:06]KKMCreateOFDPacket done [04:43:06]NVStorageSaveData kkm_last_timestamp [04:43:06]File name is /storage/kkm_last_timestamp [04:43:06]Write 4 bytes [04:43:06]NVStorageSaveData done [04:43:06]ExternCall_PrintAddStr [04:43:06]wPrintStart [04:43:06]Write to MH i2c: 01 00 00 57 0D 64 [04:43:06]Write i2c OK [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: 01 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: 01 07 00 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: 01 07 00 57 0D 00 00 00 00 00 FF 0F 79 [04:43:06]RasterBufferAndPrint [04:43:06]line Счет N : (3)73627 [04:43:06]line ИНН: 02508201610067 [04:43:06]line Контрольно-Кассовый Чек [04:43:06]line ПРОДАЖА [04:43:06]line Товар: 2000151200112 [04:43:06]line АКЦИЯ Слойка треугольная курица 110г [04:43:06]line 3.000 * 53.00 [04:43:06]line = 159.00 [04:43:06]line НДС 12% НСП 1% [04:43:06]line > о реализуемом товаре [04:43:06]line ИТОГО: 159.00 [04:43:06]line НСП 1% : 1.41 [04:43:06]line НДС 12% : 16.88 [04:43:06]line Наличными: 0.00 [04:43:06]line Безнал.: 159.00 [04:43:06]line Место: АЗС № 117 "Партнер Нефть" [04:43:07]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [04:43:07]line СНО: Общий режим [04:43:07]line Чек 7 05.06.2024 04:43 [04:43:07]line Смена: 375 ФФД: 1.0 [04:43:07]line ЗНМ: 0300000031 [04:43:07]line РНМ: 0000000000092737 [04:43:07]line Версия ККМ: 001 [04:43:07]line Платежная система: АКБ Кыргызстан [04:43:07]line ФМ: 0000000000875074 [04:43:07]line ФД: 64087 [04:43:07]line ФПД: 36717114464787 [04:43:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T044306&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64087&fm=36717114464787&tin=02508201610067®Number=0000000000092737&sum=15900 [04:43:07]line 0 [04:43:07]OFD Sender: Processing packet 64087 [packets to send 14, broken 13] [04:43:07]ProducePacketName [04:43:07]name=ofd_packets/00064087 [04:43:07]OFD Sender: To server: pG, [04:43:07]CommunicateWithHost lk.salyk.kg:30040 [04:43:07]ConnectInit lk.salyk.kg [04:43:07]written 0, free lines is 4095 [04:43:07]Connected sock=10 [04:43:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 47 01 00 00 D5 F8 3F 01 EE D2 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 31 35 31 32 30 30 31 31 32 06 04 41 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 DA EC 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 57 FA 00 00 35 04 06 00 21 64 DE 90 9A 13 42 D0 00 0E B2 11 34 AB [04:43:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C9 33 47 00 6F EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 57 FA 00 00 F4 03 04 00 E7 98 5F 66 B6 04 01 00 00 E3 8C AB FE 3C 91 4C EB [04:43:07]CommunicateWithHost err = 0 [04:43:07]CheckOFDResponse [04:43:07]1017 (14) - 77093643461234 [04:43:07]1041 (16) - 0000000000875074 [04:43:07]1040 (4) - 64087 [04:43:07]1012 (4) - 04.06.2024 22:44 [04:43:07]1206 (1) - 0 [04:43:07]OFD Sender: Remove packet 64087 [04:43:07]ProducePacketName [04:43:07]name=ofd_packets/00064087 [04:43:07]NVStorageDeleteData [04:43:07]Write to MH i2c: 01 00 00 82 0D 8F [04:43:07]Write i2c OK [04:43:07]MH_I2C_Read... [04:43:07]Read from MH i2c: 01 [04:43:07]MH_I2C_Read... [04:43:07]Read from MH i2c: 01 07 00 [04:43:07]MH_I2C_Read... [04:43:07]Read from MH i2c: 01 07 00 82 0D 00 00 00 00 00 C3 0C 65 [04:43:07]RasterBufferAndPrint [04:43:07]line [04:43:07]line [04:43:07]line [04:43:07]line [04:43:07]line [04:43:07]written 0, free lines is 3273 [04:43:07]MH_Cut [04:43:07]Write to MH i2c: D1 01 00 89 0D 01 68 [04:43:07]Write i2c OK [04:43:07]MH_I2C_Read... [04:43:07]Read from MH i2c: D1 [04:43:07]MH_I2C_Read... [04:43:07]Read from MH i2c: D1 01 00 [04:43:07]MH_I2C_Read... [04:43:07]Read from MH i2c: D1 01 00 89 0D 00 67 [04:43:07]Write to MH i2c: 01 00 00 8A 0D 97 [04:43:07]Write i2c OK [04:43:07]MH_I2C_Read... [04:43:07]OFD Sender: No OFD packet to send [04:43:08]*** Cut start [04:43:08]*** Partial cut [04:43:08]*** CUTSNS_PIN = 1 [04:43:08]*** CUTSNS_PIN = 0 [04:43:08]*** Brake cut motor [04:43:08]Read from MH i2c: 01 [04:43:08]MH_I2C_Read... [04:43:08]*** Stop cut motor [04:43:08]*** Cut end [04:43:08]Read from MH i2c: 01 07 00 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: 01 07 00 8A 0D 00 00 00 00 00 FF 0F AC [04:43:08]process_action close_receipt done [04:43:08]requested_data is exist [04:43:08]produce_requested_data [04:43:08]requested_item fm.sn is exist - process it [04:43:08]wFMCommunicate request_size=4 [04:43:08]MH_SAM_APDU [04:43:08]CAPDU: 80 11 00 00 [04:43:08]Write to MH i2c: E2 08 00 8B 0D 80 11 00 00 00 00 00 00 12 [04:43:08]Write i2c OK [04:43:08]MH_I2C_Read... [04:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:09]Read from MH i2c: E2 [04:43:09]MH_I2C_Read... [04:43:09]Read from MH i2c: E2 17 00 [04:43:09]MH_I2C_Read... [04:43:09]Read from MH i2c: E2 17 00 8B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 64 [04:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [04:43:09]wFMCommunicate OK [04:43:09]requested_item fd.num is exist - process it [04:43:09]SAM_PROTO_GetFieldsCounters [04:43:09]wFMCommunicate request_size=4 [04:43:09]MH_SAM_APDU [04:43:09]CAPDU: 80 13 00 00 [04:43:09]Write to MH i2c: E2 08 00 8C 0D 80 13 00 00 00 00 00 00 15 [04:43:09]Write i2c OK [04:43:09]MH_I2C_Read... [04:43:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:43:09]Read from MH i2c: E2 [04:43:09]MH_I2C_Read... [04:43:09]Read from MH i2c: E2 62 00 [04:43:09]MH_I2C_Read... [04:43:09]Read from MH i2c: E2 62 00 8C 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 57 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [04:43:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 57 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:43:09]wFMCommunicate OK [04:43:09]SAM_PROTO_GetFieldsCounters done [04:43:09]requested_item shift.num is exist - process it [04:43:09]requested_item shift.opened is exist - process it [04:43:09]req_shift_opened [04:43:09]FM_GetShiftState [04:43:09]SAM_PROTO_GetShiftState [04:43:09]wFMCommunicate request_size=4 [04:43:09]MH_SAM_APDU [04:43:09]CAPDU: 80 13 01 00 [04:43:09]Write to MH i2c: E2 08 00 8D 0D 80 13 01 00 00 00 00 00 17 [04:43:09]Write i2c OK [04:43:09]MH_I2C_Read... [04:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:09]Read from MH i2c: E2 [04:43:09]MH_I2C_Read... [04:43:09]Read from MH i2c: E2 0E 00 [04:43:09]MH_I2C_Read... [04:43:09]Read from MH i2c: E2 0E 00 8D 0D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 58 [04:43:09]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [04:43:09]wFMCommunicate OK [04:43:09]SAM_PROTO_GetShiftState done [04:43:09]FM_GetShiftState done [04:43:09]req_shift_opened done [04:43:09]requested_item shift.open_date is exist - process it [04:43:09]req_shift_open_date [04:43:09]req_shift_open_date done [04:43:09]produce_requested_data done [04:43:09]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64087,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [04:43:09]process_action_free close_receipt [04:43:09]json_value_free [04:43:09]json_value_free done [04:43:09]process_json_proto returns [04:43:09]Send response to host [04:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64087,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [04:43:09]free response buf [04:43:09]execute_script done [04:43:09]execute_script returns [04:43:09]free content buf [04:43:09]Sock 8.Close socket [04:43:09]Sock 8.Thread stoped [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:54]accept exits with 9 [04:45:54]New connection [04:45:54]New thread 3067133284 created [04:45:54]Thread 3067276644 joined [04:45:54]Waiting for new connection... [04:45:54] Sock 9.Parse request [04:45:54]Sock 9.Check first char [04:45:54]Sock 9.First char is OK [04:45:54]request: POST /json_proto HTTP/1.0 [04:45:54]Method: POST [04:45:54]URL: /json_proto [04:45:54]Method is POST - this is cgi request [04:45:54]url: /json_proto [04:45:54]query_string will be loaded in cgi processing [04:45:54]execute_cgi json_proto POST (null) [04:45:54]execute_cgi path=json_proto method=POST [04:45:54]POST find Content-Length [04:45:54]Host: 172.17.60.69:8080 [04:45:54]Content-Length: 651 [04:45:54]Content-Type: application/json [04:45:54] [04:45:54]POST finish read [04:45:54]Found Content-Length = 651 [04:45:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73628", "tax_sys" : 0, "items" : [ { "code": "9002490206550", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:45:54]execute_script... [04:45:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73628", "tax_sys" : 0, "items" : [ { "code": "9002490206550", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:45:54]POST & json_proto [04:45:54]process_json_proto [04:45:54]json parsed OK: [04:45:54]protocol is kg_v1.0 [04:45:54]action value=close_receipt [04:45:54]process_action close_receipt [04:45:54]cmd_close_receipt [04:45:54]MH_GetDate [04:45:54]Write to MH i2c: F0 00 00 8E 0D 8A [04:45:54]Write i2c OK [04:45:54]MH_I2C_Read... [04:45:54]Read from MH i2c: F0 [04:45:54]MH_I2C_Read... [04:45:54]Read from MH i2c: F0 09 00 [04:45:54]MH_I2C_Read... [04:45:54]Read from MH i2c: F0 09 00 8E 0D 00 83 ED 5F 66 D2 83 5F 66 E2 [04:45:54]GetLastDocTimeStamp 1717562586 [04:45:54]current date 1717562755 [04:45:54]FM_GetShiftState [04:45:54]SAM_PROTO_GetShiftState [04:45:54]wFMCommunicate request_size=4 [04:45:54]MH_SAM_APDU [04:45:54]CAPDU: 80 13 01 00 [04:45:54]Write to MH i2c: E2 08 00 8F 0D 80 13 01 00 00 00 00 00 19 [04:45:54]Write i2c OK [04:45:54]MH_I2C_Read... [04:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:45:54]Read from MH i2c: E2 [04:45:54]MH_I2C_Read... [04:45:54]Read from MH i2c: E2 0E 00 [04:45:54]MH_I2C_Read... [04:45:54]Read from MH i2c: E2 0E 00 8F 0D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 5A [04:45:54]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [04:45:54]wFMCommunicate OK [04:45:54]SAM_PROTO_GetShiftState done [04:45:54]FM_GetShiftState done [04:45:54]opened in 1717545925 [04:45:54]opened+sec_in_day 1717632325 [04:45:54]quantity*price = 26500 [04:45:54]sum+1 = 26501 [04:45:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.34 НДС 12% : 28.14 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 8 05.06.2024 04:45 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64088 ФПД: 241146127425930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T044555&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64088&fm=241146127425930&tin=02508201610067®Number=0000000000092737&sum=26500 0 [04:45:55]StoreToDocumentArchive [04:45:55]shift 375 fd 64088 [04:45:55]save to /storage/0375/doc_00064088 [04:45:55]save last doc name /storage/0375/doc_00064088 to /storage/kkm_last_doc_name [04:45:55]save OK [04:45:55]Clear old archive folders... [04:45:55]ProcessDocumentItem done err = 0, tmpTLVsize=284 [04:45:55]tlvbuf is 01105D20 [04:45:55]SAM_PROTO_ClearQueue [04:45:55]wFMCommunicate request_size=4 [04:45:55]MH_SAM_APDU [04:45:55]CAPDU: 80 09 00 00 [04:45:55]Write to MH i2c: E2 08 00 9C 0D 80 09 00 00 00 00 00 00 1B [04:45:55]Write i2c OK [04:45:55]MH_I2C_Read... [04:45:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:45:55]Read from MH i2c: E2 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 03 00 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 03 00 9C 0D 00 90 00 1D [04:45:55]RAPDU: 90 00 [04:45:55]wFMCommunicate OK [04:45:55]SAM_PROTO_ClearQueue done [04:45:55]KKMCreateOFDPacket [04:45:55]OFDProtocolAddRootSTLVToBuf [04:45:55]FM_MakeSignedData [04:45:55]FM_MakeSignedData [04:45:55]SAM_PROTO_SignData [04:45:55]wFMCommunicate request_size=4 [04:45:55]MH_SAM_APDU [04:45:55]CAPDU: 80 0D 01 02 [04:45:55]Write to MH i2c: E2 08 00 9D 0D 80 0D 01 02 00 00 00 00 23 [04:45:55]Write i2c OK [04:45:55]MH_I2C_Read... [04:45:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:45:55]Read from MH i2c: E2 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 03 00 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 03 00 9D 0D 00 90 00 1E [04:45:55]RAPDU: 90 00 [04:45:55]wFMCommunicate OK [04:45:55]wFMCommunicate request_size=255 [04:45:55]MH_SAM_APDU [04:45:55]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 83 ED 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 [04:45:55]Write to MH i2c: E2 02 01 9E 0D 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 83 ED 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 00 00 02 [04:45:55]Write i2c OK [04:45:55]MH_I2C_Read... [04:45:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:45:55]Read from MH i2c: E2 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 03 00 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 03 00 9E 0D 00 90 00 1F [04:45:55]RAPDU: 90 00 [04:45:55]wFMCommunicate OK [04:45:55]wFMCommunicate request_size=43 [04:45:55]MH_SAM_APDU [04:45:55]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 58 FA 00 00 35 04 06 00 DB 52 35 43 A1 8A [04:45:55]Write to MH i2c: E2 2E 00 9F 0D 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 58 FA 00 00 35 04 06 00 DB 52 35 43 A1 8A 00 00 2F [04:45:55]Write i2c OK [04:45:55]MH_I2C_Read... [04:45:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:45:55]Read from MH i2c: E2 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 03 00 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 03 00 9F 0D 00 90 00 20 [04:45:55]RAPDU: 90 00 [04:45:55]wFMCommunicate OK [04:45:55]wFMCommunicate request_size=4 [04:45:55]MH_SAM_APDU [04:45:55]CAPDU: 80 0D 03 02 [04:45:55]Write to MH i2c: E2 08 00 A0 0D 80 0D 03 02 00 00 00 00 28 [04:45:55]Write i2c OK [04:45:55]MH_I2C_Read... [04:45:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:45:55]Read from MH i2c: E2 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 0B 00 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 0B 00 A0 0D 00 48 C3 EB B0 BD D0 D7 31 90 00 64 [04:45:55]RAPDU: 48 C3 EB B0 BD D0 D7 31 90 00 [04:45:55]wFMCommunicate OK [04:45:55]SAM_PROTO_SignData done [04:45:55]FM_MakeSignedData done [04:45:55]CreateOFDProtocolMessage [04:45:55]wFMCommunicate request_size=4 [04:45:55]MH_SAM_APDU [04:45:55]CAPDU: 80 11 00 00 [04:45:55]Write to MH i2c: E2 08 00 A1 0D 80 11 00 00 00 00 00 00 28 [04:45:55]Write i2c OK [04:45:55]MH_I2C_Read... [04:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:45:55]Read from MH i2c: E2 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 17 00 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 17 00 A1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7A [04:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [04:45:55]wFMCommunicate OK [04:45:55]CreateOFDProtocolMessage done [04:45:55]OFDSenderStorePacket 64088 [04:45:55]StoreOFDPacket docnum=64088 [04:45:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 DB 8B 28 01 0B 66 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 83 ED 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 58 FA 00 00 35 04 06 00 DB 52 35 43 A1 8A 48 C3 EB B0 BD D0 D7 31 [04:45:55]CheckFolder [04:45:55]dirname=/storage/ofd_packets [04:45:55]CheckFolder done [04:45:55]ProducePacketName [04:45:55]name=ofd_packets/00064088 [04:45:55]NVStorageSaveData ofd_packets/00064088 [04:45:55]File name is /storage/ofd_packets/00064088 [04:45:55]Write 334 bytes [04:45:55]NVStorageSaveData done [04:45:55]OFDSenderStorePacket done [04:45:55]KKMCreateOFDPacket done [04:45:55]NVStorageSaveData kkm_last_timestamp [04:45:55]File name is /storage/kkm_last_timestamp [04:45:55]Write 4 bytes [04:45:55]NVStorageSaveData done [04:45:55]ExternCall_PrintAddStr [04:45:55]wPrintStart [04:45:55]Write to MH i2c: 01 00 00 A2 0D AF [04:45:55]Write i2c OK [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: 01 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: 01 07 00 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: 01 07 00 A2 0D 00 00 00 00 00 FF 0F C4 [04:45:55]RasterBufferAndPrint [04:45:55]line Счет N : (3)73628 [04:45:55]line ИНН: 02508201610067 [04:45:55]line Контрольно-Кассовый Чек [04:45:55]line ПРОДАЖА [04:45:55]line Товар: 9002490206550 [04:45:55]line Энерг напиток Red Bull 0,355л [04:45:55]line 1.000 * 265.00 [04:45:55]line = 265.00 [04:45:55]line НДС 12% НСП 1% [04:45:55]line > о реализуемом товаре [04:45:55]line ИТОГО: 265.00 [04:45:55]line НСП 1% : 2.34 [04:45:55]line НДС 12% : 28.14 [04:45:55]line Наличными: 265.00 [04:45:55]line Безнал.: 0.00 [04:45:55]line Место: АЗС № 117 "Партнер Нефть" [04:45:55]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [04:45:56]line СНО: Общий режим [04:45:56]line Чек 8 05.06.2024 04:45 [04:45:56]line Смена: 375 ФФД: 1.0 [04:45:56]line ЗНМ: 0300000031 [04:45:56]line РНМ: 0000000000092737 [04:45:56]line Версия ККМ: 001 [04:45:56]line ФМ: 0000000000875074 [04:45:56]line ФД: 64088 [04:45:56]line ФПД: 241146127425930 [04:45:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T044555&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64088&fm=241146127425930&tin=02508201610067®Number=0000000000092737&sum=26500 [04:45:56]line 0 [04:45:56]OFD Sender: Processing packet 64088 [packets to send 14, broken 13] [04:45:56]ProducePacketName [04:45:56]name=ofd_packets/00064088 [04:45:56]OFD Sender: To server: pG, [04:45:56]CommunicateWithHost lk.salyk.kg:30040 [04:45:56]ConnectInit lk.salyk.kg [04:45:56]written 0, free lines is 4095 [04:45:56]Connected sock=10 [04:45:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 DB 8B 28 01 0B 66 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 83 ED 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 58 FA 00 00 35 04 06 00 DB 52 35 43 A1 8A 48 C3 EB B0 BD D0 D7 31 [04:45:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 EA 7C 47 00 5B 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 58 FA 00 00 F4 03 04 00 90 99 5F 66 B6 04 01 00 00 0B A0 87 80 8F 36 49 F3 [04:45:56]CommunicateWithHost err = 0 [04:45:56]CheckOFDResponse [04:45:56]1017 (14) - 77093643461234 [04:45:56]1041 (16) - 0000000000875074 [04:45:56]1040 (4) - 64088 [04:45:56]1012 (4) - 04.06.2024 22:47 [04:45:56]1206 (1) - 0 [04:45:56]OFD Sender: Remove packet 64088 [04:45:56]ProducePacketName [04:45:56]name=ofd_packets/00064088 [04:45:56]NVStorageDeleteData [04:45:56]Write to MH i2c: 01 00 00 CA 0D D7 [04:45:56]Write i2c OK [04:45:56]MH_I2C_Read... [04:45:56]Read from MH i2c: 01 [04:45:56]MH_I2C_Read... [04:45:56]Read from MH i2c: 01 07 00 [04:45:56]MH_I2C_Read... [04:45:56]Read from MH i2c: 01 07 00 CA 0D 00 00 00 00 00 F0 0C DA [04:45:56]RasterBufferAndPrint [04:45:56]line [04:45:56]line [04:45:56]line [04:45:56]line [04:45:56]line [04:45:56]written 0, free lines is 3318 [04:45:56]MH_Cut [04:45:56]Write to MH i2c: D1 01 00 D1 0D 01 B0 [04:45:56]Write i2c OK [04:45:56]MH_I2C_Read... [04:45:56]Read from MH i2c: D1 [04:45:56]MH_I2C_Read... [04:45:56]Read from MH i2c: D1 01 00 [04:45:56]MH_I2C_Read... [04:45:56]Read from MH i2c: D1 01 00 D1 0D 00 AF [04:45:56]Write to MH i2c: 01 00 00 D2 0D DF [04:45:56]Write i2c OK [04:45:56]MH_I2C_Read... [04:45:56]OFD Sender: No OFD packet to send [04:45:57]*** Cut start [04:45:57]*** Partial cut [04:45:57]*** CUTSNS_PIN = 1 [04:45:57]*** CUTSNS_PIN = 0 [04:45:57]*** Brake cut motor [04:45:57]Read from MH i2c: 01 [04:45:57]MH_I2C_Read... [04:45:57]*** Stop cut motor [04:45:57]*** Cut end [04:45:57]Read from MH i2c: 01 07 00 [04:45:57]MH_I2C_Read... [04:45:57]Read from MH i2c: 01 07 00 D2 0D 00 00 00 00 00 FF 0F F4 [04:45:57]process_action close_receipt done [04:45:57]requested_data is exist [04:45:57]produce_requested_data [04:45:57]requested_item fm.sn is exist - process it [04:45:57]wFMCommunicate request_size=4 [04:45:57]MH_SAM_APDU [04:45:57]CAPDU: 80 11 00 00 [04:45:57]Write to MH i2c: E2 08 00 D3 0D 80 11 00 00 00 00 00 00 5A [04:45:57]Write i2c OK [04:45:57]MH_I2C_Read... [04:45:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:45:57]Read from MH i2c: E2 [04:45:57]MH_I2C_Read... [04:45:57]Read from MH i2c: E2 17 00 [04:45:57]MH_I2C_Read... [04:45:57]Read from MH i2c: E2 17 00 D3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AC [04:45:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [04:45:57]wFMCommunicate OK [04:45:57]requested_item fd.num is exist - process it [04:45:57]SAM_PROTO_GetFieldsCounters [04:45:57]wFMCommunicate request_size=4 [04:45:57]MH_SAM_APDU [04:45:57]CAPDU: 80 13 00 00 [04:45:57]Write to MH i2c: E2 08 00 D4 0D 80 13 00 00 00 00 00 00 5D [04:45:57]Write i2c OK [04:45:57]MH_I2C_Read... [04:45:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:45:58]Read from MH i2c: E2 [04:45:58]MH_I2C_Read... [04:45:58]Read from MH i2c: E2 62 00 [04:45:58]MH_I2C_Read... [04:45:58]Read from MH i2c: E2 62 00 D4 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 58 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [04:45:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 58 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:45:58]wFMCommunicate OK [04:45:58]SAM_PROTO_GetFieldsCounters done [04:45:58]requested_item shift.num is exist - process it [04:45:58]requested_item shift.opened is exist - process it [04:45:58]req_shift_opened [04:45:58]FM_GetShiftState [04:45:58]SAM_PROTO_GetShiftState [04:45:58]wFMCommunicate request_size=4 [04:45:58]MH_SAM_APDU [04:45:58]CAPDU: 80 13 01 00 [04:45:58]Write to MH i2c: E2 08 00 D5 0D 80 13 01 00 00 00 00 00 5F [04:45:58]Write i2c OK [04:45:58]MH_I2C_Read... [04:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:45:58]Read from MH i2c: E2 [04:45:58]MH_I2C_Read... [04:45:58]Read from MH i2c: E2 0E 00 [04:45:58]MH_I2C_Read... [04:45:58]Read from MH i2c: E2 0E 00 D5 0D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 A0 [04:45:58]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [04:45:58]wFMCommunicate OK [04:45:58]SAM_PROTO_GetShiftState done [04:45:58]FM_GetShiftState done [04:45:58]req_shift_opened done [04:45:58]requested_item shift.open_date is exist - process it [04:45:58]req_shift_open_date [04:45:58]req_shift_open_date done [04:45:58]produce_requested_data done [04:45:58]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64088,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [04:45:58]process_action_free close_receipt [04:45:58]json_value_free [04:45:58]json_value_free done [04:45:58]process_json_proto returns [04:45:58]Send response to host [04:45:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64088,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [04:45:58]free response buf [04:45:58]execute_script done [04:45:58]execute_script returns [04:45:58]free content buf [04:45:58]Sock 9.Close socket [04:45:58]Sock 9.Thread stoped [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:48:59]accept exits with 8 [04:48:59]New connection [04:48:59]New thread 3067276644 created [04:48:59]Thread 3067133284 joined [04:48:59]Waiting for new connection... [04:48:59] Sock 8.Parse request [04:48:59]Sock 8.Check first char [04:48:59]Sock 8.First char is OK [04:48:59]request: POST /json_proto HTTP/1.0 [04:48:59]Method: POST [04:48:59]URL: /json_proto [04:48:59]Method is POST - this is cgi request [04:48:59]url: /json_proto [04:48:59]query_string will be loaded in cgi processing [04:48:59]execute_cgi json_proto POST (null) [04:48:59]execute_cgi path=json_proto method=POST [04:48:59]POST find Content-Length [04:48:59]Host: 172.17.60.69:8080 [04:48:59]Content-Length: 647 [04:48:59]Content-Type: application/json [04:48:59] [04:48:59]POST finish read [04:48:59]Found Content-Length = 647 [04:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73629", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:48:59]execute_script... [04:48:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73629", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:48:59]POST & json_proto [04:48:59]process_json_proto [04:48:59]json parsed OK: [04:48:59]protocol is kg_v1.0 [04:48:59]action value=close_receipt [04:48:59]process_action close_receipt [04:48:59]cmd_close_receipt [04:48:59]MH_GetDate [04:48:59]Write to MH i2c: F0 00 00 D6 0D D2 [04:48:59]Write i2c OK [04:48:59]MH_I2C_Read... [04:48:59]Read from MH i2c: F0 [04:48:59]MH_I2C_Read... [04:48:59]Read from MH i2c: F0 09 00 [04:48:59]MH_I2C_Read... [04:48:59]Read from MH i2c: F0 09 00 D6 0D 00 3C EE 5F 66 D2 83 5F 66 E4 [04:48:59]GetLastDocTimeStamp 1717562755 [04:48:59]current date 1717562940 [04:48:59]FM_GetShiftState [04:48:59]SAM_PROTO_GetShiftState [04:48:59]wFMCommunicate request_size=4 [04:48:59]MH_SAM_APDU [04:48:59]CAPDU: 80 13 01 00 [04:48:59]Write to MH i2c: E2 08 00 D7 0D 80 13 01 00 00 00 00 00 61 [04:48:59]Write i2c OK [04:48:59]MH_I2C_Read... [04:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:48:59]Read from MH i2c: E2 [04:48:59]MH_I2C_Read... [04:48:59]Read from MH i2c: E2 0E 00 [04:48:59]MH_I2C_Read... [04:48:59]Read from MH i2c: E2 0E 00 D7 0D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 A2 [04:48:59]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [04:48:59]wFMCommunicate OK [04:48:59]SAM_PROTO_GetShiftState done [04:48:59]FM_GetShiftState done [04:48:59]opened in 1717545925 [04:48:59]opened+sec_in_day 1717632325 [04:48:59]quantity*price = 6000 [04:48:59]sum+1 = 6001 [04:48:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 9 05.06.2024 04:49 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64089 ФПД: 130514224074653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T044900&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64089&fm=130514224074653&tin=02508201610067®Number=0000000000092737&sum=6000 0 [04:49:00]StoreToDocumentArchive [04:49:00]shift 375 fd 64089 [04:49:00]save to /storage/0375/doc_00064089 [04:49:00]save last doc name /storage/0375/doc_00064089 to /storage/kkm_last_doc_name [04:49:00]save OK [04:49:00]Clear old archive folders... [04:49:00]ProcessDocumentItem done err = 0, tmpTLVsize=279 [04:49:00]tlvbuf is B6FA77B0 [04:49:00]SAM_PROTO_ClearQueue [04:49:00]wFMCommunicate request_size=4 [04:49:00]MH_SAM_APDU [04:49:00]CAPDU: 80 09 00 00 [04:49:00]Write to MH i2c: E2 08 00 E4 0D 80 09 00 00 00 00 00 00 63 [04:49:00]Write i2c OK [04:49:00]MH_I2C_Read... [04:49:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:49:00]Read from MH i2c: E2 [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: E2 03 00 [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: E2 03 00 E4 0D 00 90 00 65 [04:49:00]RAPDU: 90 00 [04:49:00]wFMCommunicate OK [04:49:00]SAM_PROTO_ClearQueue done [04:49:00]KKMCreateOFDPacket [04:49:00]OFDProtocolAddRootSTLVToBuf [04:49:00]FM_MakeSignedData [04:49:00]FM_MakeSignedData [04:49:00]SAM_PROTO_SignData [04:49:00]wFMCommunicate request_size=4 [04:49:00]MH_SAM_APDU [04:49:00]CAPDU: 80 0D 01 02 [04:49:00]Write to MH i2c: E2 08 00 E5 0D 80 0D 01 02 00 00 00 00 6B [04:49:00]Write i2c OK [04:49:00]MH_I2C_Read... [04:49:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:49:00]Read from MH i2c: E2 [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: E2 03 00 [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: E2 03 00 E5 0D 00 90 00 66 [04:49:00]RAPDU: 90 00 [04:49:00]wFMCommunicate OK [04:49:00]wFMCommunicate request_size=255 [04:49:00]MH_SAM_APDU [04:49:00]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 09 00 00 00 F4 03 04 00 3C EE 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 [04:49:00]Write to MH i2c: E2 02 01 E6 0D 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 09 00 00 00 F4 03 04 00 3C EE 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 00 00 A5 [04:49:00]Write i2c OK [04:49:00]MH_I2C_Read... [04:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:49:00]Read from MH i2c: E2 [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: E2 03 00 [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: E2 03 00 E6 0D 00 90 00 67 [04:49:00]RAPDU: 90 00 [04:49:00]wFMCommunicate OK [04:49:00]wFMCommunicate request_size=38 [04:49:00]MH_SAM_APDU [04:49:00]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 59 FA 00 00 35 04 06 00 76 B3 B5 F6 CF 9D [04:49:00]Write to MH i2c: E2 29 00 E7 0D 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 59 FA 00 00 35 04 06 00 76 B3 B5 F6 CF 9D 00 00 89 [04:49:00]Write i2c OK [04:49:00]MH_I2C_Read... [04:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:49:00]Read from MH i2c: E2 [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: E2 03 00 [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: E2 03 00 E7 0D 00 90 00 68 [04:49:00]RAPDU: 90 00 [04:49:00]wFMCommunicate OK [04:49:00]wFMCommunicate request_size=4 [04:49:00]MH_SAM_APDU [04:49:00]CAPDU: 80 0D 03 02 [04:49:00]Write to MH i2c: E2 08 00 E8 0D 80 0D 03 02 00 00 00 00 70 [04:49:00]Write i2c OK [04:49:00]MH_I2C_Read... [04:49:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:49:00]Read from MH i2c: E2 [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: E2 0B 00 [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: E2 0B 00 E8 0D 00 00 6D 90 92 C6 3D 6E D7 90 00 48 [04:49:00]RAPDU: 00 6D 90 92 C6 3D 6E D7 90 00 [04:49:00]wFMCommunicate OK [04:49:00]SAM_PROTO_SignData done [04:49:00]FM_MakeSignedData done [04:49:00]CreateOFDProtocolMessage [04:49:00]wFMCommunicate request_size=4 [04:49:00]MH_SAM_APDU [04:49:00]CAPDU: 80 11 00 00 [04:49:00]Write to MH i2c: E2 08 00 E9 0D 80 11 00 00 00 00 00 00 70 [04:49:00]Write i2c OK [04:49:00]MH_I2C_Read... [04:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:49:00]Read from MH i2c: E2 [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: E2 17 00 [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: E2 17 00 E9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C2 [04:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [04:49:00]wFMCommunicate OK [04:49:00]CreateOFDProtocolMessage done [04:49:00]OFDSenderStorePacket 64089 [04:49:00]StoreOFDPacket docnum=64089 [04:49:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2B 01 00 00 7D 3F 23 01 4F D2 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 09 00 00 00 F4 03 04 00 3C EE 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 59 FA 00 00 35 04 06 00 76 B3 B5 F6 CF 9D 00 6D 90 92 C6 3D 6E D7 [04:49:00]CheckFolder [04:49:00]dirname=/storage/ofd_packets [04:49:00]CheckFolder done [04:49:00]ProducePacketName [04:49:00]name=ofd_packets/00064089 [04:49:00]NVStorageSaveData ofd_packets/00064089 [04:49:00]File name is /storage/ofd_packets/00064089 [04:49:00]Write 329 bytes [04:49:00]NVStorageSaveData done [04:49:00]OFDSenderStorePacket done [04:49:00]KKMCreateOFDPacket done [04:49:00]NVStorageSaveData kkm_last_timestamp [04:49:00]File name is /storage/kkm_last_timestamp [04:49:00]Write 4 bytes [04:49:00]NVStorageSaveData done [04:49:00]ExternCall_PrintAddStr [04:49:00]wPrintStart [04:49:00]Write to MH i2c: 01 00 00 EA 0D F7 [04:49:00]Write i2c OK [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: 01 [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: 01 07 00 [04:49:00]MH_I2C_Read... [04:49:00]Read from MH i2c: 01 07 00 EA 0D 00 00 00 00 00 FF 0F 0C [04:49:00]RasterBufferAndPrint [04:49:00]line Счет N : (3)73629 [04:49:00]line ИНН: 02508201610067 [04:49:00]line Контрольно-Кассовый Чек [04:49:00]line ПРОДАЖА [04:49:00]line Товар: 2000032780025 [04:49:00]line Сосиска в тесте DC 110г [04:49:00]line 1.000 * 60.00 [04:49:00]line = 60.00 [04:49:00]line НДС 12% НСП 1% [04:49:00]line > о реализуемом товаре [04:49:00]line ИТОГО: 60.00 [04:49:00]line НСП 1% : 0.53 [04:49:00]line НДС 12% : 6.37 [04:49:00]line Наличными: 60.00 [04:49:00]line Безнал.: 0.00 [04:49:00]line Место: АЗС № 117 "Партнер Нефть" [04:49:00]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [04:49:00]line СНО: Общий режим [04:49:00]line Чек 9 05.06.2024 04:49 [04:49:00]line Смена: 375 ФФД: 1.0 [04:49:01]line ЗНМ: 0300000031 [04:49:01]line РНМ: 0000000000092737 [04:49:01]line Версия ККМ: 001 [04:49:01]line ФМ: 0000000000875074 [04:49:01]line ФД: 64089 [04:49:01]line ФПД: 130514224074653 [04:49:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T044900&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64089&fm=130514224074653&tin=02508201610067®Number=0000000000092737&sum=6000 [04:49:01]line 0 [04:49:01]OFD Sender: Processing packet 64089 [packets to send 14, broken 13] [04:49:01]ProducePacketName [04:49:01]name=ofd_packets/00064089 [04:49:01]OFD Sender: To server: pG, [04:49:01]CommunicateWithHost lk.salyk.kg:30040 [04:49:01]ConnectInit lk.salyk.kg [04:49:01]written 0, free lines is 4095 [04:49:01]Connected sock=10 [04:49:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2B 01 00 00 7D 3F 23 01 4F D2 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 09 00 00 00 F4 03 04 00 3C EE 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 59 FA 00 00 35 04 06 00 76 B3 B5 F6 CF 9D 00 6D 90 92 C6 3D 6E D7 [04:49:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 62 D5 47 00 45 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 59 FA 00 00 F4 03 04 00 49 9A 5F 66 B6 04 01 00 00 C0 01 25 1F EC EE D2 63 [04:49:01]CommunicateWithHost err = 0 [04:49:01]CheckOFDResponse [04:49:01]1017 (14) - 77093643461234 [04:49:01]1041 (16) - 0000000000875074 [04:49:01]1040 (4) - 64089 [04:49:01]1012 (4) - 04.06.2024 22:50 [04:49:01]1206 (1) - 0 [04:49:01]OFD Sender: Remove packet 64089 [04:49:01]ProducePacketName [04:49:01]name=ofd_packets/00064089 [04:49:01]NVStorageDeleteData [04:49:01]Write to MH i2c: 01 00 00 12 0E 20 [04:49:01]Write i2c OK [04:49:01]MH_I2C_Read... [04:49:01]Read from MH i2c: 01 [04:49:01]MH_I2C_Read... [04:49:01]Read from MH i2c: 01 07 00 [04:49:01]MH_I2C_Read... [04:49:01]Read from MH i2c: 01 07 00 12 0E 00 00 00 00 00 E7 0C 1A [04:49:01]RasterBufferAndPrint [04:49:01]line [04:49:01]line [04:49:01]line [04:49:01]line [04:49:01]line [04:49:01]written 0, free lines is 3310 [04:49:01]MH_Cut [04:49:01]Write to MH i2c: D1 01 00 19 0E 01 F9 [04:49:01]Write i2c OK [04:49:01]MH_I2C_Read... [04:49:01]Read from MH i2c: D1 [04:49:01]MH_I2C_Read... [04:49:01]Read from MH i2c: D1 01 00 [04:49:01]MH_I2C_Read... [04:49:01]Read from MH i2c: D1 01 00 19 0E 00 F8 [04:49:01]Write to MH i2c: 01 00 00 1A 0E 28 [04:49:01]Write i2c OK [04:49:01]MH_I2C_Read... [04:49:01]OFD Sender: No OFD packet to send [04:49:02]*** Cut start [04:49:02]*** Partial cut [04:49:02]*** CUTSNS_PIN = 1 [04:49:02]*** CUTSNS_PIN = 0 [04:49:02]*** Brake cut motor [04:49:02]Read from MH i2c: 01 [04:49:02]MH_I2C_Read... [04:49:02]*** Stop cut motor [04:49:02]*** Cut end [04:49:02]Read from MH i2c: 01 07 00 [04:49:02]MH_I2C_Read... [04:49:02]Read from MH i2c: 01 07 00 1A 0E 00 00 00 00 00 FF 0F 3D [04:49:02]process_action close_receipt done [04:49:02]requested_data is exist [04:49:02]produce_requested_data [04:49:02]requested_item fm.sn is exist - process it [04:49:02]wFMCommunicate request_size=4 [04:49:02]MH_SAM_APDU [04:49:02]CAPDU: 80 11 00 00 [04:49:02]Write to MH i2c: E2 08 00 1B 0E 80 11 00 00 00 00 00 00 A3 [04:49:02]Write i2c OK [04:49:02]MH_I2C_Read... [04:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:49:02]Read from MH i2c: E2 [04:49:02]MH_I2C_Read... [04:49:02]Read from MH i2c: E2 17 00 [04:49:02]MH_I2C_Read... [04:49:02]Read from MH i2c: E2 17 00 1B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F5 [04:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [04:49:02]wFMCommunicate OK [04:49:02]requested_item fd.num is exist - process it [04:49:02]SAM_PROTO_GetFieldsCounters [04:49:02]wFMCommunicate request_size=4 [04:49:02]MH_SAM_APDU [04:49:02]CAPDU: 80 13 00 00 [04:49:02]Write to MH i2c: E2 08 00 1C 0E 80 13 00 00 00 00 00 00 A6 [04:49:02]Write i2c OK [04:49:02]MH_I2C_Read... [04:49:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:49:03]Read from MH i2c: E2 [04:49:03]MH_I2C_Read... [04:49:03]Read from MH i2c: E2 62 00 [04:49:03]MH_I2C_Read... [04:49:03]Read from MH i2c: E2 62 00 1C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 59 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [04:49:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 59 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:49:03]wFMCommunicate OK [04:49:03]SAM_PROTO_GetFieldsCounters done [04:49:03]requested_item shift.num is exist - process it [04:49:03]requested_item shift.opened is exist - process it [04:49:03]req_shift_opened [04:49:03]FM_GetShiftState [04:49:03]SAM_PROTO_GetShiftState [04:49:03]wFMCommunicate request_size=4 [04:49:03]MH_SAM_APDU [04:49:03]CAPDU: 80 13 01 00 [04:49:03]Write to MH i2c: E2 08 00 1D 0E 80 13 01 00 00 00 00 00 A8 [04:49:03]Write i2c OK [04:49:03]MH_I2C_Read... [04:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:49:03]Read from MH i2c: E2 [04:49:03]MH_I2C_Read... [04:49:03]Read from MH i2c: E2 0E 00 [04:49:03]MH_I2C_Read... [04:49:03]Read from MH i2c: E2 0E 00 1D 0E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 E9 [04:49:03]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [04:49:03]wFMCommunicate OK [04:49:03]SAM_PROTO_GetShiftState done [04:49:03]FM_GetShiftState done [04:49:03]req_shift_opened done [04:49:03]requested_item shift.open_date is exist - process it [04:49:03]req_shift_open_date [04:49:03]req_shift_open_date done [04:49:03]produce_requested_data done [04:49:03]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64089,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [04:49:03]process_action_free close_receipt [04:49:03]json_value_free [04:49:03]json_value_free done [04:49:03]process_json_proto returns [04:49:03]Send response to host [04:49:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64089,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [04:49:03]free response buf [04:49:03]execute_script done [04:49:03]execute_script returns [04:49:03]free content buf [04:49:03]Sock 8.Close socket [04:49:03]Sock 8.Thread stoped [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:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]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:24]accept exits with 9 [05:06:24]New connection [05:06:24]New thread 3067133284 created [05:06:24]Thread 3067276644 joined [05:06:24]Waiting for new connection... [05:06:24] Sock 9.Parse request [05:06:24]Sock 9.Check first char [05:06:24]Sock 9.First char is OK [05:06:24]request: POST /json_proto HTTP/1.0 [05:06:24]Method: POST [05:06:24]URL: /json_proto [05:06:24]Method is POST - this is cgi request [05:06:24]url: /json_proto [05:06:24]query_string will be loaded in cgi processing [05:06:24]execute_cgi json_proto POST (null) [05:06:24]execute_cgi path=json_proto method=POST [05:06:24]POST find Content-Length [05:06:24]Host: 172.17.60.69:8080 [05:06:24]Content-Length: 1721 [05:06:24]Content-Type: application/json [05:06:24] [05:06:24]POST finish read [05:06:24]Found Content-Length = 1721 [05:06:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73630", "tax_sys" : 0, "items" : [ { "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": "7622201450564", "name": "\u0428\u043E\u043A Alpen Gold \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 90\u0433 (\u043D\u043E\u0432\u044B\u0439)", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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" : 14.000, "sum" : 98.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 }]} ,{ "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 676.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:06:24]execute_script... [05:06:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73630", "tax_sys" : 0, "items" : [ { "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": "7622201450564", "name": "\u0428\u043E\u043A Alpen Gold \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 90\u0433 (\u043D\u043E\u0432\u044B\u0439)", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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" : 14.000, "sum" : 98.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 }]} ,{ "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 676.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:06:25]POST & json_proto [05:06:25]process_json_proto [05:06:25]json parsed OK: [05:06:25]protocol is kg_v1.0 [05:06:25]action value=close_receipt [05:06:25]process_action close_receipt [05:06:25]cmd_close_receipt [05:06:25]MH_GetDate [05:06:25]Write to MH i2c: F0 00 00 1E 0E 1B [05:06:25]Write i2c OK [05:06:25]MH_I2C_Read... [05:06:25]Read from MH i2c: F0 [05:06:25]MH_I2C_Read... [05:06:25]Read from MH i2c: F0 09 00 [05:06:25]MH_I2C_Read... [05:06:25]Read from MH i2c: F0 09 00 1E 0E 00 52 F2 5F 66 D2 83 5F 66 47 [05:06:25]GetLastDocTimeStamp 1717562940 [05:06:25]current date 1717563986 [05:06:25]FM_GetShiftState [05:06:25]SAM_PROTO_GetShiftState [05:06:25]wFMCommunicate request_size=4 [05:06:25]MH_SAM_APDU [05:06:25]CAPDU: 80 13 01 00 [05:06:25]Write to MH i2c: E2 08 00 1F 0E 80 13 01 00 00 00 00 00 AA [05:06:25]Write i2c OK [05:06:25]MH_I2C_Read... [05:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:06:25]Read from MH i2c: E2 [05:06:25]MH_I2C_Read... [05:06:25]Read from MH i2c: E2 0E 00 [05:06:25]MH_I2C_Read... [05:06:25]Read from MH i2c: E2 0E 00 1F 0E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 EB [05:06:25]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [05:06:25]wFMCommunicate OK [05:06:25]SAM_PROTO_GetShiftState done [05:06:25]FM_GetShiftState done [05:06:25]opened in 1717545925 [05:06:25]opened+sec_in_day 1717632325 [05:06:25]quantity*price = 15500 [05:06:25]sum+1 = 15501 [05:06:25]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 7622201450564 Шок Alpen Gold молочный 90г (новый) 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 14.000 * 7.00 = 98.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091621 Сигареты ESSE Exchange W 1.000 * 138.00 = 138.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 676.00 НСП 1% : 5.98 НДС 12% : 71.79 Наличными: 676.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 10 05.06.2024 05:06 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64090 ФПД: 179361569842846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T050626&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64090&fm=179361569842846&tin=02508201610067®Number=0000000000092737&sum=67600 0 [05:06:26]StoreToDocumentArchive [05:06:26]shift 375 fd 64090 [05:06:26]save to /storage/0375/doc_00064090 [05:06:26]save last doc name /storage/0375/doc_00064090 to /storage/kkm_last_doc_name [05:06:26]save OK [05:06:26]Clear old archive folders... [05:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=728 [05:06:26]tlvbuf is 010770C0 [05:06:26]SAM_PROTO_ClearQueue [05:06:26]wFMCommunicate request_size=4 [05:06:26]MH_SAM_APDU [05:06:26]CAPDU: 80 09 00 00 [05:06:26]Write to MH i2c: E2 08 00 2C 0E 80 09 00 00 00 00 00 00 AC [05:06:26]Write i2c OK [05:06:26]MH_I2C_Read... [05:06:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:06:26]Read from MH i2c: E2 [05:06:26]MH_I2C_Read... [05:06:26]Read from MH i2c: E2 03 00 [05:06:26]MH_I2C_Read... [05:06:26]Read from MH i2c: E2 03 00 2C 0E 00 90 00 AE [05:06:26]RAPDU: 90 00 [05:06:26]wFMCommunicate OK [05:06:26]SAM_PROTO_ClearQueue done [05:06:26]KKMCreateOFDPacket [05:06:26]OFDProtocolAddRootSTLVToBuf [05:06:26]FM_MakeSignedData [05:06:26]FM_MakeSignedData [05:06:26]SAM_PROTO_SignData [05:06:26]wFMCommunicate request_size=4 [05:06:26]MH_SAM_APDU [05:06:26]CAPDU: 80 0D 01 02 [05:06:26]Write to MH i2c: E2 08 00 2D 0E 80 0D 01 02 00 00 00 00 B4 [05:06:26]Write i2c OK [05:06:26]MH_I2C_Read... [05:06:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:06:26]Read from MH i2c: E2 [05:06:26]MH_I2C_Read... [05:06:26]Read from MH i2c: E2 03 00 [05:06:26]MH_I2C_Read... [05:06:26]Read from MH i2c: E2 03 00 2D 0E 00 90 00 AF [05:06:26]RAPDU: 90 00 [05:06:26]wFMCommunicate OK [05:06:26]wFMCommunicate request_size=255 [05:06:26]MH_SAM_APDU [05:06:26]CAPDU: 80 0D 02 02 FA 03 00 D8 02 1E 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 78 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 35 36 34 06 04 34 00 D0 A8 D0 BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 [05:06:26]Write to MH i2c: E2 02 01 2E 0E 80 0D 02 02 FA 00 03 00 D8 02 1E 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 78 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 35 36 34 06 04 34 00 D0 A8 D0 BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 00 A1 [05:06:26]Write i2c OK [05:06:26]MH_I2C_Read... [05:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:06:26]Read from MH i2c: E2 [05:06:26]MH_I2C_Read... [05:06:26]Read from MH i2c: E2 03 00 [05:06:26]MH_I2C_Read... [05:06:26]Read from MH i2c: E2 03 00 2E 0E 00 90 00 B0 [05:06:26]RAPDU: 90 00 [05:06:26]wFMCommunicate OK [05:06:26]wFMCommunicate request_size=255 [05:06:26]MH_SAM_APDU [05:06:26]CAPDU: 80 0D 02 02 FA 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 B0 36 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 48 26 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 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 [05:06:26]Write to MH i2c: E2 02 01 2F 0E 80 0D 02 02 FA 00 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 B0 36 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 48 26 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 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 00 00 7E [05:06:26]Write i2c OK [05:06:26]MH_I2C_Read... [05:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:06:26]Read from MH i2c: E2 [05:06:26]MH_I2C_Read... [05:06:26]Read from MH i2c: E2 03 00 [05:06:26]MH_I2C_Read... [05:06:26]Read from MH i2c: E2 03 00 2F 0E 00 90 00 B1 [05:06:26]RAPDU: 90 00 [05:06:26]wFMCommunicate OK [05:06:26]wFMCommunicate request_size=237 [05:06:26]MH_SAM_APDU [05:06:26]CAPDU: 80 0D 02 02 E8 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 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 10 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1C 00 00 00 00 07 04 06 00 10 08 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 52 F2 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5A FA 00 00 35 04 06 00 A3 20 DE A8 26 9E [05:06:26]Write to MH i2c: E2 F0 00 30 0E 80 0D 02 02 E8 00 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 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 10 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1C 00 00 00 00 07 04 06 00 10 08 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 52 F2 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5A FA 00 00 35 04 06 00 A3 20 DE A8 26 9E 00 00 66 [05:06:26]Write i2c OK [05:06:26]MH_I2C_Read... [05:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:06:27]Read from MH i2c: E2 [05:06:27]MH_I2C_Read... [05:06:27]Read from MH i2c: E2 03 00 [05:06:27]MH_I2C_Read... [05:06:27]Read from MH i2c: E2 03 00 30 0E 00 90 00 B2 [05:06:27]RAPDU: 90 00 [05:06:27]wFMCommunicate OK [05:06:27]wFMCommunicate request_size=4 [05:06:27]MH_SAM_APDU [05:06:27]CAPDU: 80 0D 03 02 [05:06:27]Write to MH i2c: E2 08 00 31 0E 80 0D 03 02 00 00 00 00 BA [05:06:27]Write i2c OK [05:06:27]MH_I2C_Read... [05:06:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:06:27]Read from MH i2c: E2 [05:06:27]MH_I2C_Read... [05:06:27]Read from MH i2c: E2 0B 00 [05:06:27]MH_I2C_Read... [05:06:27]Read from MH i2c: E2 0B 00 31 0E 00 8B F2 38 CF 50 B3 9C 22 90 00 00 [05:06:27]RAPDU: 8B F2 38 CF 50 B3 9C 22 90 00 [05:06:27]wFMCommunicate OK [05:06:27]SAM_PROTO_SignData done [05:06:27]FM_MakeSignedData done [05:06:27]CreateOFDProtocolMessage [05:06:27]wFMCommunicate request_size=4 [05:06:27]MH_SAM_APDU [05:06:27]CAPDU: 80 11 00 00 [05:06:27]Write to MH i2c: E2 08 00 32 0E 80 11 00 00 00 00 00 00 BA [05:06:27]Write i2c OK [05:06:27]MH_I2C_Read... [05:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:06:27]Read from MH i2c: E2 [05:06:27]MH_I2C_Read... [05:06:27]Read from MH i2c: E2 17 00 [05:06:27]MH_I2C_Read... [05:06:27]Read from MH i2c: E2 17 00 32 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0C [05:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:06:27]wFMCommunicate OK [05:06:27]CreateOFDProtocolMessage done [05:06:27]OFDSenderStorePacket 64090 [05:06:27]StoreOFDPacket docnum=64090 [05:06:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 EC 02 00 00 5D 0F E4 02 F0 3E 5A 03 01 00 03 00 D8 02 1E 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 78 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 35 36 34 06 04 34 00 D0 A8 D0 BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 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 B0 36 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 48 26 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 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 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 10 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1C 00 00 00 00 07 04 06 00 10 08 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 52 F2 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5A FA 00 00 35 04 06 00 A3 20 DE A8 26 9E 8B F2 38 CF 50 B3 9C 22 [05:06:27]CheckFolder [05:06:27]dirname=/storage/ofd_packets [05:06:27]CheckFolder done [05:06:27]ProducePacketName [05:06:27]name=ofd_packets/00064090 [05:06:27]NVStorageSaveData ofd_packets/00064090 [05:06:27]File name is /storage/ofd_packets/00064090 [05:06:27]Write 778 bytes [05:06:27]NVStorageSaveData done [05:06:27]OFDSenderStorePacket done [05:06:27]KKMCreateOFDPacket done [05:06:27]NVStorageSaveData kkm_last_timestamp [05:06:27]File name is /storage/kkm_last_timestamp [05:06:27]Write 4 bytes [05:06:27]NVStorageSaveData done [05:06:27]ExternCall_PrintAddStr [05:06:27]wPrintStart [05:06:27]Write to MH i2c: 01 00 00 33 0E 41 [05:06:27]Write i2c OK [05:06:27]MH_I2C_Read... [05:06:27]Read from MH i2c: 01 [05:06:27]MH_I2C_Read... [05:06:27]Read from MH i2c: 01 07 00 [05:06:27]MH_I2C_Read... [05:06:27]Read from MH i2c: 01 07 00 33 0E 00 00 00 00 00 FF 0F 56 [05:06:27]RasterBufferAndPrint [05:06:27]line Счет N : (3)73630 [05:06:27]line ИНН: 02508201610067 [05:06:27]line Контрольно-Кассовый Чек [05:06:27]line ПРОДАЖА [05:06:27]line Товар: 5449000000439 [05:06:27]line Напиток Кока-Кола 1,5л [05:06:27]line 1.000 * 155.00 [05:06:27]line = 155.00 [05:06:27]line НДС 12% НСП 1% [05:06:27]line > о реализуемом товаре [05:06:27]line Товар: 7622201450564 [05:06:27]line Шок Alpen Gold молочный 90г (новый) [05:06:27]line 1.000 * 145.00 [05:06:27]line = 145.00 [05:06:27]line НДС 12% НСП 1% [05:06:27]line > о реализуемом товаре [05:06:27]line Товар: 2000053020015 [05:06:27]line Бумажные стаканы 250мл 1шт [05:06:27]line 14.000 * 7.00 [05:06:27]line = 98.00 [05:06:27]line НДС 12% НСП 1% [05:06:27]line > о реализуемом товаре [05:06:27]line Товар: 48747059 [05:06:27]line Сигареты Winston Legend Blue [05:06:27]line 1.000 * 140.00 [05:06:27]line = 140.00 [05:06:27]line НДС 12% НСП 1% [05:06:27]line > о реализуемом товаре [05:06:27]line Товар: 4640030091621 [05:06:27]line Сигареты ESSE Exchange W [05:06:27]line 1.000 * 138.00 [05:06:27]line = 138.00 [05:06:27]line НДС 12% НСП 1% [05:06:27]line > о реализуемом товаре [05:06:27]line ИТОГО: 676.00 [05:06:27]line НСП 1% : 5.98 [05:06:27]line НДС 12% : 71.79 [05:06:27]line Наличными: 676.00 [05:06:27]line Безнал.: 0.00 [05:06:27]line Место: АЗС № 117 "Партнер Нефть" [05:06:27]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [05:06:27]line СНО: Общий режим [05:06:27]line Чек 10 05.06.2024 05:06 [05:06:27]line Смена: 375 ФФД: 1.0 [05:06:27]line ЗНМ: 0300000031 [05:06:27]line РНМ: 0000000000092737 [05:06:27]line Версия ККМ: 001 [05:06:27]line ФМ: 0000000000875074 [05:06:27]line ФД: 64090 [05:06:27]line ФПД: 179361569842846 [05:06:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T050626&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64090&fm=179361569842846&tin=02508201610067®Number=0000000000092737&sum=67600 [05:06:27]line 0 [05:06:27]written 0, free lines is 4095 [05:06:27]OFD Sender: Processing packet 64090 [packets to send 14, broken 13] [05:06:27]ProducePacketName [05:06:27]name=ofd_packets/00064090 [05:06:27]OFD Sender: To server: pG, [05:06:27]CommunicateWithHost lk.salyk.kg:30040 [05:06:27]ConnectInit lk.salyk.kg [05:06:27]Connected sock=10 [05:06:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 EC 02 00 00 5D 0F E4 02 F0 3E 5A 03 01 00 03 00 D8 02 1E 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 78 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 35 36 34 06 04 34 00 D0 A8 D0 BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 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 B0 36 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 48 26 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 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 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 10 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1C 00 00 00 00 07 04 06 00 10 08 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 52 F2 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5A FA 00 00 35 04 06 00 A3 20 DE A8 26 9E 8B F2 38 CF 50 B3 9C 22 [05:06:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 62 58 47 00 0E C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5A FA 00 00 F4 03 04 00 60 9E 5F 66 B6 04 01 00 00 25 F2 7E 12 40 1C 46 F7 [05:06:27]CommunicateWithHost err = 0 [05:06:27]CheckOFDResponse [05:06:27]1017 (14) - 77093643461234 [05:06:27]1041 (16) - 0000000000875074 [05:06:27]1040 (4) - 64090 [05:06:27]1012 (4) - 04.06.2024 23:08 [05:06:27]1206 (1) - 0 [05:06:27]OFD Sender: Remove packet 64090 [05:06:27]ProducePacketName [05:06:27]name=ofd_packets/00064090 [05:06:27]NVStorageDeleteData [05:06:28]Write to MH i2c: 01 00 00 76 0E 84 [05:06:28]Write i2c OK [05:06:28]MH_I2C_Read... [05:06:28]Read from MH i2c: 01 [05:06:28]MH_I2C_Read... [05:06:28]Read from MH i2c: 01 07 00 [05:06:28]MH_I2C_Read... [05:06:28]Read from MH i2c: 01 07 00 76 0E 00 00 00 00 00 40 0B D6 [05:06:28]RasterBufferAndPrint [05:06:28]line [05:06:28]line [05:06:28]line [05:06:28]line [05:06:28]line [05:06:28]written 0, free lines is 2887 [05:06:28]MH_Cut [05:06:28]Write to MH i2c: D1 01 00 7D 0E 01 5D [05:06:28]Write i2c OK [05:06:28]MH_I2C_Read... [05:06:28]Read from MH i2c: D1 [05:06:28]MH_I2C_Read... [05:06:28]Read from MH i2c: D1 01 00 [05:06:28]MH_I2C_Read... [05:06:28]Read from MH i2c: D1 01 00 7D 0E 00 5C [05:06:28]Write to MH i2c: 01 00 00 7E 0E 8C [05:06:28]Write i2c OK [05:06:28]MH_I2C_Read... [05:06:28]OFD Sender: No OFD packet to send [05:06:29]*** Cut start [05:06:29]*** Partial cut [05:06:29]*** CUTSNS_PIN = 1 [05:06:29]*** CUTSNS_PIN = 0 [05:06:29]*** Brake cut motor [05:06:30]Read from MH i2c: 01 [05:06:30]MH_I2C_Read... [05:06:30]*** Stop cut motor [05:06:30]*** Cut end [05:06:30]Read from MH i2c: 01 07 00 [05:06:30]MH_I2C_Read... [05:06:30]Read from MH i2c: 01 07 00 7E 0E 00 00 00 00 00 FF 0F A1 [05:06:30]process_action close_receipt done [05:06:30]requested_data is exist [05:06:30]produce_requested_data [05:06:30]requested_item fm.sn is exist - process it [05:06:30]wFMCommunicate request_size=4 [05:06:30]MH_SAM_APDU [05:06:30]CAPDU: 80 11 00 00 [05:06:30]Write to MH i2c: E2 08 00 7F 0E 80 11 00 00 00 00 00 00 07 [05:06:30]Write i2c OK [05:06:30]MH_I2C_Read... [05:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:06:30]Read from MH i2c: E2 [05:06:30]MH_I2C_Read... [05:06:30]Read from MH i2c: E2 17 00 [05:06:30]MH_I2C_Read... [05:06:30]Read from MH i2c: E2 17 00 7F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 59 [05:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:06:30]wFMCommunicate OK [05:06:30]requested_item fd.num is exist - process it [05:06:30]SAM_PROTO_GetFieldsCounters [05:06:30]wFMCommunicate request_size=4 [05:06:30]MH_SAM_APDU [05:06:30]CAPDU: 80 13 00 00 [05:06:30]Write to MH i2c: E2 08 00 80 0E 80 13 00 00 00 00 00 00 0A [05:06:30]Write i2c OK [05:06:30]MH_I2C_Read... [05:06:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:06:30]Read from MH i2c: E2 [05:06:30]MH_I2C_Read... [05:06:30]Read from MH i2c: E2 62 00 [05:06:30]MH_I2C_Read... [05:06:30]Read from MH i2c: E2 62 00 80 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5A FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [05:06:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5A FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:06:30]wFMCommunicate OK [05:06:30]SAM_PROTO_GetFieldsCounters done [05:06:30]requested_item shift.num is exist - process it [05:06:30]requested_item shift.opened is exist - process it [05:06:30]req_shift_opened [05:06:30]FM_GetShiftState [05:06:30]SAM_PROTO_GetShiftState [05:06:30]wFMCommunicate request_size=4 [05:06:30]MH_SAM_APDU [05:06:30]CAPDU: 80 13 01 00 [05:06:30]Write to MH i2c: E2 08 00 81 0E 80 13 01 00 00 00 00 00 0C [05:06:30]Write i2c OK [05:06:30]MH_I2C_Read... [05:06:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:06:30]Read from MH i2c: E2 [05:06:30]MH_I2C_Read... [05:06:30]Read from MH i2c: E2 0E 00 [05:06:30]MH_I2C_Read... [05:06:30]Read from MH i2c: E2 0E 00 81 0E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 4D [05:06:30]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [05:06:30]wFMCommunicate OK [05:06:30]SAM_PROTO_GetShiftState done [05:06:30]FM_GetShiftState done [05:06:30]req_shift_opened done [05:06:30]requested_item shift.open_date is exist - process it [05:06:30]req_shift_open_date [05:06:30]req_shift_open_date done [05:06:30]produce_requested_data done [05:06:30]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64090,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [05:06:30]process_action_free close_receipt [05:06:30]json_value_free [05:06:30]json_value_free done [05:06:30]process_json_proto returns [05:06:30]Send response to host [05:06:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64090,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [05:06:30]free response buf [05:06:30]execute_script done [05:06:30]execute_script returns [05:06:30]free content buf [05:06:30]Sock 9.Close socket [05:06:30]Sock 9.Thread stoped [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:56]accept exits with 8 [05:06:56]New connection [05:06:56]New thread 3067276644 created [05:06:56]Thread 3067133284 joined [05:06:56]Waiting for new connection... [05:06:56] Sock 8.Parse request [05:06:56]Sock 8.Check first char [05:06:56]Sock 8.First char is OK [05:06:56]request: POST /json_proto HTTP/1.0 [05:06:56]Method: POST [05:06:56]URL: /json_proto [05:06:56]Method is POST - this is cgi request [05:06:56]url: /json_proto [05:06:56]query_string will be loaded in cgi processing [05:06:56]execute_cgi json_proto POST (null) [05:06:56]execute_cgi path=json_proto method=POST [05:06:56]POST find Content-Length [05:06:56]Host: 172.17.60.69:8080 [05:06:56]Content-Length: 2039 [05:06:56]Content-Type: application/json [05:06:56] [05:06:56]POST finish read [05:06:56]Found Content-Length = 2039 [05:06:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 64083, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73623", "tax_sys" : 0, "items" : [ { "code": "4700001060152", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,5\u043B", "price" : 660.00, "quantity" : 1.000, "sum" : 660.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": "7622201450564", "name": "\u0428\u043E\u043A Alpen Gold \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 90\u0433 (\u043D\u043E\u0432\u044B\u0439)", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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" : 14.000, "sum" : 98.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 }]} ,{ "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1336.00 } ], "post_footer_text": "64083" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:06:56]execute_script... [05:06:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 64083, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73623", "tax_sys" : 0, "items" : [ { "code": "4700001060152", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,5\u043B", "price" : 660.00, "quantity" : 1.000, "sum" : 660.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": "7622201450564", "name": "\u0428\u043E\u043A Alpen Gold \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 90\u0433 (\u043D\u043E\u0432\u044B\u0439)", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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" : 14.000, "sum" : 98.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 }]} ,{ "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1336.00 } ], "post_footer_text": "64083" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:06:56]POST & json_proto [05:06:56]process_json_proto [05:06:56]json parsed OK: [05:06:56]protocol is kg_v1.0 [05:06:56]action value=close_receipt [05:06:56]process_action close_receipt [05:06:56]cmd_close_receipt [05:06:56]MH_GetDate [05:06:56]Write to MH i2c: F0 00 00 82 0E 7F [05:06:56]Write i2c OK [05:06:56]MH_I2C_Read... [05:06:56]Read from MH i2c: F0 [05:06:56]MH_I2C_Read... [05:06:56]Read from MH i2c: F0 09 00 [05:06:56]MH_I2C_Read... [05:06:56]Read from MH i2c: F0 09 00 82 0E 00 72 F2 5F 66 D2 83 5F 66 CB [05:06:56]GetLastDocTimeStamp 1717563986 [05:06:56]current date 1717564018 [05:06:56]FM_GetShiftState [05:06:56]SAM_PROTO_GetShiftState [05:06:56]wFMCommunicate request_size=4 [05:06:56]MH_SAM_APDU [05:06:56]CAPDU: 80 13 01 00 [05:06:56]Write to MH i2c: E2 08 00 83 0E 80 13 01 00 00 00 00 00 0E [05:06:56]Write i2c OK [05:06:56]MH_I2C_Read... [05:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:06:56]Read from MH i2c: E2 [05:06:56]MH_I2C_Read... [05:06:56]Read from MH i2c: E2 0E 00 [05:06:56]MH_I2C_Read... [05:06:56]Read from MH i2c: E2 0E 00 83 0E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 4F [05:06:56]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [05:06:56]wFMCommunicate OK [05:06:56]SAM_PROTO_GetShiftState done [05:06:56]FM_GetShiftState done [05:06:56]opened in 1717545925 [05:06:56]opened+sec_in_day 1717632325 [05:06:56]quantity*price = 66000 [05:06:56]sum+1 = 66001 [05:06:56]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000439 Напиток Кока-Кола 1,5л 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 7622201450564 Шок Alpen Gold молочный 90г (новый) 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 14.000 * 7.00 = 98.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091621 Сигареты ESSE Exchange W 1.000 * 138.00 = 138.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1336.00 НСП 1% : 11.82 НДС 12% : 141.88 Наличными: 1336.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 11 05.06.2024 05:06 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФД осн.: 64083 ФМ осн.: 0000000000875074 ФМ: 0000000000875074 ФД: 64091 ФПД: 158255868142944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T050658&type=2&operation_type=1&fn_number=0000000000875074&fd_number=64091&fm=158255868142944&tin=02508201610067®Number=0000000000092737&sum=133600 64083 [05:06:58]StoreToDocumentArchive [05:06:58]shift 375 fd 64091 [05:06:58]save to /storage/0375/doc_00064091 [05:06:58]save last doc name /storage/0375/doc_00064091 to /storage/kkm_last_doc_name [05:06:58]save OK [05:06:58]Clear old archive folders... [05:06:58]ProcessDocumentItem done err = 0, tmpTLVsize=859 [05:06:58]tlvbuf is 0107AA20 [05:06:58]SAM_PROTO_ClearQueue [05:06:58]wFMCommunicate request_size=4 [05:06:58]MH_SAM_APDU [05:06:58]CAPDU: 80 09 00 00 [05:06:58]Write to MH i2c: E2 08 00 92 0E 80 09 00 00 00 00 00 00 12 [05:06:58]Write i2c OK [05:06:58]MH_I2C_Read... [05:06:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:06:58]Read from MH i2c: E2 [05:06:58]MH_I2C_Read... [05:06:58]Read from MH i2c: E2 03 00 [05:06:58]MH_I2C_Read... [05:06:58]Read from MH i2c: E2 03 00 92 0E 00 90 00 14 [05:06:58]RAPDU: 90 00 [05:06:58]wFMCommunicate OK [05:06:58]SAM_PROTO_ClearQueue done [05:06:58]KKMCreateOFDPacket [05:06:58]OFDProtocolAddRootSTLVToBuf [05:06:58]FM_MakeSignedData [05:06:58]FM_MakeSignedData [05:06:58]SAM_PROTO_SignData [05:06:58]wFMCommunicate request_size=4 [05:06:58]MH_SAM_APDU [05:06:58]CAPDU: 80 0D 01 02 [05:06:58]Write to MH i2c: E2 08 00 93 0E 80 0D 01 02 00 00 00 00 1A [05:06:58]Write i2c OK [05:06:58]MH_I2C_Read... [05:06:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:06:58]Read from MH i2c: E2 [05:06:58]MH_I2C_Read... [05:06:58]Read from MH i2c: E2 03 00 [05:06:58]MH_I2C_Read... [05:06:58]Read from MH i2c: E2 03 00 93 0E 00 90 00 15 [05:06:58]RAPDU: 90 00 [05:06:58]wFMCommunicate OK [05:06:58]wFMCommunicate request_size=255 [05:06:58]MH_SAM_APDU [05:06:58]CAPDU: 80 0D 02 02 FA 03 00 5B 03 1E 04 01 00 02 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 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 78 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 35 36 34 06 04 34 00 D0 A8 D0 [05:06:58]Write to MH i2c: E2 02 01 94 0E 80 0D 02 02 FA 00 03 00 5B 03 1E 04 01 00 02 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 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 78 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 35 36 34 06 04 34 00 D0 A8 D0 00 00 06 [05:06:58]Write i2c OK [05:06:58]MH_I2C_Read... [05:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:06:58]Read from MH i2c: E2 [05:06:58]MH_I2C_Read... [05:06:58]Read from MH i2c: E2 03 00 [05:06:58]MH_I2C_Read... [05:06:58]Read from MH i2c: E2 03 00 94 0E 00 90 00 16 [05:06:58]RAPDU: 90 00 [05:06:58]wFMCommunicate OK [05:06:58]wFMCommunicate request_size=255 [05:06:58]MH_SAM_APDU [05:06:58]CAPDU: 80 0D 02 02 FA BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 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 B0 36 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 48 26 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 [05:06:58]Write to MH i2c: E2 02 01 95 0E 80 0D 02 02 FA 00 BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 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 B0 36 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 48 26 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 00 00 5E [05:06:58]Write i2c OK [05:06:58]MH_I2C_Read... [05:06:58]OFD Sender: No OFD packet to send [05:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:06:58]Read from MH i2c: E2 [05:06:58]MH_I2C_Read... [05:06:58]Read from MH i2c: E2 03 00 [05:06:58]MH_I2C_Read... [05:06:58]Read from MH i2c: E2 03 00 95 0E 00 90 00 17 [05:06:58]RAPDU: 90 00 [05:06:58]wFMCommunicate OK [05:06:58]wFMCommunicate request_size=255 [05:06:58]MH_SAM_APDU [05:06:58]CAPDU: 80 0D 02 02 FA 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 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 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 E0 09 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 37 00 00 00 00 07 04 06 00 E0 09 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 [05:06:58]Write to MH i2c: E2 02 01 96 0E 80 0D 02 02 FA 00 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 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 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 E0 09 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 37 00 00 00 00 07 04 06 00 E0 09 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 00 00 58 [05:06:58]Write i2c OK [05:06:58]MH_I2C_Read... [05:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:06:58]Read from MH i2c: E2 [05:06:58]MH_I2C_Read... [05:06:58]Read from MH i2c: E2 03 00 [05:06:58]MH_I2C_Read... [05:06:58]Read from MH i2c: E2 03 00 96 0E 00 90 00 18 [05:06:58]RAPDU: 90 00 [05:06:58]wFMCommunicate OK [05:06:58]wFMCommunicate request_size=118 [05:06:58]MH_SAM_APDU [05:06:58]CAPDU: 80 0D 02 02 71 04 00 0B 00 00 00 F4 03 04 00 72 F2 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 53 FA 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5B FA 00 00 35 04 06 00 8F EE D0 CD E5 60 [05:06:58]Write to MH i2c: E2 79 00 97 0E 80 0D 02 02 71 00 04 00 0B 00 00 00 F4 03 04 00 72 F2 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 53 FA 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5B FA 00 00 35 04 06 00 8F EE D0 CD E5 60 00 00 E4 [05:06:58]Write i2c OK [05:06:58]MH_I2C_Read... [05:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:06:59]Read from MH i2c: E2 [05:06:59]MH_I2C_Read... [05:06:59]Read from MH i2c: E2 03 00 [05:06:59]MH_I2C_Read... [05:06:59]Read from MH i2c: E2 03 00 97 0E 00 90 00 19 [05:06:59]RAPDU: 90 00 [05:06:59]wFMCommunicate OK [05:06:59]wFMCommunicate request_size=4 [05:06:59]MH_SAM_APDU [05:06:59]CAPDU: 80 0D 03 02 [05:06:59]Write to MH i2c: E2 08 00 98 0E 80 0D 03 02 00 00 00 00 21 [05:06:59]Write i2c OK [05:06:59]MH_I2C_Read... [05:06:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:06:59]Read from MH i2c: E2 [05:06:59]MH_I2C_Read... [05:06:59]Read from MH i2c: E2 0B 00 [05:06:59]MH_I2C_Read... [05:06:59]Read from MH i2c: E2 0B 00 98 0E 00 5B 97 A8 CD BB D9 9A 83 90 00 3A [05:06:59]RAPDU: 5B 97 A8 CD BB D9 9A 83 90 00 [05:06:59]wFMCommunicate OK [05:06:59]SAM_PROTO_SignData done [05:06:59]FM_MakeSignedData done [05:06:59]CreateOFDProtocolMessage [05:06:59]wFMCommunicate request_size=4 [05:06:59]MH_SAM_APDU [05:06:59]CAPDU: 80 11 00 00 [05:06:59]Write to MH i2c: E2 08 00 99 0E 80 11 00 00 00 00 00 00 21 [05:06:59]Write i2c OK [05:06:59]MH_I2C_Read... [05:06:59]Read from MH i2c: E2 [05:06:59]MH_I2C_Read... [05:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:06:59]Read from MH i2c: E2 17 00 [05:06:59]MH_I2C_Read... [05:06:59]Read from MH i2c: E2 17 00 99 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 73 [05:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:06:59]wFMCommunicate OK [05:06:59]CreateOFDProtocolMessage done [05:06:59]OFDSenderStorePacket 64091 [05:06:59]StoreOFDPacket docnum=64091 [05:06:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 6F 03 00 00 B6 B1 67 03 D6 D7 5A 03 01 00 03 00 5B 03 1E 04 01 00 02 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 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 78 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 35 36 34 06 04 34 00 D0 A8 D0 BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 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 B0 36 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 48 26 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 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 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 E0 09 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 37 00 00 00 00 07 04 06 00 E0 09 02 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 72 F2 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 53 FA 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5B FA 00 00 35 04 06 00 8F EE D0 CD E5 60 5B 97 A8 CD BB D9 9A 83 [05:06:59]CheckFolder [05:06:59]dirname=/storage/ofd_packets [05:06:59]CheckFolder done [05:06:59]ProducePacketName [05:06:59]name=ofd_packets/00064091 [05:06:59]NVStorageSaveData ofd_packets/00064091 [05:06:59]File name is /storage/ofd_packets/00064091 [05:06:59]Write 909 bytes [05:06:59]NVStorageSaveData done [05:06:59]OFDSenderStorePacket done [05:06:59]KKMCreateOFDPacket done [05:06:59]NVStorageSaveData kkm_last_timestamp [05:06:59]File name is /storage/kkm_last_timestamp [05:06:59]Write 4 bytes [05:06:59]NVStorageSaveData done [05:06:59]ExternCall_PrintAddStr [05:06:59]wPrintStart [05:06:59]Write to MH i2c: 01 00 00 9A 0E A8 [05:06:59]Write i2c OK [05:06:59]MH_I2C_Read... [05:06:59]Read from MH i2c: 01 [05:06:59]MH_I2C_Read... [05:06:59]Read from MH i2c: 01 07 00 [05:06:59]MH_I2C_Read... [05:06:59]Read from MH i2c: 01 07 00 9A 0E 00 00 00 00 00 FF 0F BD [05:06:59]RasterBufferAndPrint [05:06:59]line Счет N : (3)73623 [05:06:59]line ИНН: 02508201610067 [05:06:59]line Контрольно-Кассовый Чек [05:06:59]line ВОЗВРАТ ПРОДАЖИ [05:06:59]line Товар: 4700001060152 [05:06:59]line Коньяк Бишкек 0,5л [05:06:59]line 1.000 * 660.00 [05:06:59]line = 660.00 [05:06:59]line НДС 12% НСП 1% [05:06:59]line > о реализуемом товаре [05:06:59]line Товар: 5449000000439 [05:06:59]line Напиток Кока-Кола 1,5л [05:06:59]line 1.000 * 155.00 [05:06:59]line = 155.00 [05:06:59]line НДС 12% НСП 1% [05:06:59]line > о реализуемом товаре [05:06:59]line Товар: 7622201450564 [05:06:59]line Шок Alpen Gold молочный 90г (новый) [05:06:59]line 1.000 * 145.00 [05:06:59]line = 145.00 [05:06:59]line НДС 12% НСП 1% [05:06:59]line > о реализуемом товаре [05:06:59]line Товар: 2000053020015 [05:06:59]line Бумажные стаканы 250мл 1шт [05:06:59]line 14.000 * 7.00 [05:06:59]line = 98.00 [05:06:59]line НДС 12% НСП 1% [05:06:59]line > о реализуемом товаре [05:06:59]line Товар: 48747059 [05:06:59]line Сигареты Winston Legend Blue [05:06:59]line 1.000 * 140.00 [05:06:59]line = 140.00 [05:06:59]line НДС 12% НСП 1% [05:06:59]line > о реализуемом товаре [05:06:59]line Товар: 4640030091621 [05:06:59]line Сигареты ESSE Exchange W [05:06:59]line 1.000 * 138.00 [05:06:59]line = 138.00 [05:06:59]line НДС 12% НСП 1% [05:06:59]line > о реализуемом товаре [05:06:59]line ИТОГО: 1336.00 [05:06:59]line НСП 1% : 11.82 [05:06:59]line НДС 12% : 141.88 [05:06:59]line Наличными: 1336.00 [05:06:59]line Безнал.: 0.00 [05:06:59]line Место: АЗС № 117 "Партнер Нефть" [05:06:59]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [05:06:59]line СНО: Общий режим [05:06:59]line Чек 11 05.06.2024 05:06 [05:06:59]line Смена: 375 ФФД: 1.0 [05:06:59]line ЗНМ: 0300000031 [05:06:59]line РНМ: 0000000000092737 [05:06:59]line Версия ККМ: 001 [05:06:59]line ФД осн.: 64083 [05:06:59]line ФМ осн.: 0000000000875074 [05:06:59]line ФМ: 0000000000875074 [05:06:59]line ФД: 64091 [05:06:59]line ФПД: 158255868142944 [05:06:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T050658&type=2&operation_type=1&fn_number=0000000000875074&fd_number=64091&fm=158255868142944&tin=02508201610067®Number=0000000000092737&sum=133600 [05:06:59]line 64083 [05:06:59]OFD Sender: Processing packet 64091 [packets to send 14, broken 13] [05:06:59]ProducePacketName [05:06:59]name=ofd_packets/00064091 [05:06:59]OFD Sender: To server: pG, [05:06:59]CommunicateWithHost lk.salyk.kg:30040 [05:06:59]ConnectInit lk.salyk.kg [05:06:59]written 0, free lines is 4095 [05:06:59]Connected sock=10 [05:06:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 6F 03 00 00 B6 B1 67 03 D6 D7 5A 03 01 00 03 00 5B 03 1E 04 01 00 02 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 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 78 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 35 36 34 06 04 34 00 D0 A8 D0 BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 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 B0 36 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 48 26 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 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 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 E0 09 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 37 00 00 00 00 07 04 06 00 E0 09 02 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 72 F2 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 53 FA 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5B FA 00 00 35 04 06 00 8F EE D0 CD E5 60 5B 97 A8 CD BB D9 9A 83 [05:06:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 B5 F7 47 00 4B 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5B FA 00 00 F4 03 04 00 80 9E 5F 66 B6 04 01 00 00 8B B1 D4 3D 2E F2 57 84 [05:07:00]CommunicateWithHost err = 0 [05:07:00]CheckOFDResponse [05:07:00]1017 (14) - 77093643461234 [05:07:00]1041 (16) - 0000000000875074 [05:07:00]1040 (4) - 64091 [05:07:00]1012 (4) - 04.06.2024 23:08 [05:07:00]1206 (1) - 0 [05:07:00]OFD Sender: Remove packet 64091 [05:07:00]ProducePacketName [05:07:00]name=ofd_packets/00064091 [05:07:00]NVStorageDeleteData [05:07:00]Write to MH i2c: 01 00 00 E5 0E F3 [05:07:00]Write i2c OK [05:07:00]MH_I2C_Read... [05:07:00]Read from MH i2c: 01 [05:07:00]MH_I2C_Read... [05:07:00]Read from MH i2c: 01 07 00 [05:07:00]MH_I2C_Read... [05:07:00]Read from MH i2c: 01 07 00 E5 0E 00 00 00 00 00 D4 0A D8 [05:07:00]RasterBufferAndPrint [05:07:00]line [05:07:00]line [05:07:00]line [05:07:00]line [05:07:00]line [05:07:00]written 0, free lines is 2785 [05:07:00]MH_Cut [05:07:00]Write to MH i2c: D1 01 00 EC 0E 01 CC [05:07:00]Write i2c OK [05:07:00]MH_I2C_Read... [05:07:00]Read from MH i2c: D1 [05:07:00]MH_I2C_Read... [05:07:00]Read from MH i2c: D1 01 00 [05:07:00]MH_I2C_Read... [05:07:00]Read from MH i2c: D1 01 00 EC 0E 00 CB [05:07:00]Write to MH i2c: 01 00 00 ED 0E FB [05:07:00]Write i2c OK [05:07:00]MH_I2C_Read... [05:07:00]OFD Sender: No OFD packet to send [05:07:01]*** Cut start [05:07:01]*** Partial cut [05:07:01]*** CUTSNS_PIN = 1 [05:07:01]*** CUTSNS_PIN = 0 [05:07:01]*** Brake cut motor [05:07:02]Read from MH i2c: 01 [05:07:02]MH_I2C_Read... [05:07:02]*** Stop cut motor [05:07:02]*** Cut end [05:07:02]Read from MH i2c: 01 07 00 [05:07:02]MH_I2C_Read... [05:07:02]Read from MH i2c: 01 07 00 ED 0E 00 00 00 00 00 FF 0F 10 [05:07:02]process_action close_receipt done [05:07:02]requested_data is exist [05:07:02]produce_requested_data [05:07:02]requested_item fm.sn is exist - process it [05:07:02]wFMCommunicate request_size=4 [05:07:02]MH_SAM_APDU [05:07:02]CAPDU: 80 11 00 00 [05:07:02]Write to MH i2c: E2 08 00 EE 0E 80 11 00 00 00 00 00 00 76 [05:07:02]Write i2c OK [05:07:02]MH_I2C_Read... [05:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:07:02]Read from MH i2c: E2 [05:07:02]MH_I2C_Read... [05:07:02]Read from MH i2c: E2 17 00 [05:07:02]MH_I2C_Read... [05:07:02]Read from MH i2c: E2 17 00 EE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C8 [05:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:07:02]wFMCommunicate OK [05:07:02]requested_item fd.num is exist - process it [05:07:02]SAM_PROTO_GetFieldsCounters [05:07:02]wFMCommunicate request_size=4 [05:07:02]MH_SAM_APDU [05:07:02]CAPDU: 80 13 00 00 [05:07:02]Write to MH i2c: E2 08 00 EF 0E 80 13 00 00 00 00 00 00 79 [05:07:02]Write i2c OK [05:07:02]MH_I2C_Read... [05:07:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:07:02]Read from MH i2c: E2 [05:07:02]MH_I2C_Read... [05:07:02]Read from MH i2c: E2 62 00 [05:07:02]MH_I2C_Read... [05:07:02]Read from MH i2c: E2 62 00 EF 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5B FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [05:07:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5B FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:07:02]wFMCommunicate OK [05:07:02]SAM_PROTO_GetFieldsCounters done [05:07:02]requested_item shift.num is exist - process it [05:07:02]requested_item shift.opened is exist - process it [05:07:02]req_shift_opened [05:07:02]FM_GetShiftState [05:07:02]SAM_PROTO_GetShiftState [05:07:02]wFMCommunicate request_size=4 [05:07:02]MH_SAM_APDU [05:07:02]CAPDU: 80 13 01 00 [05:07:02]Write to MH i2c: E2 08 00 F0 0E 80 13 01 00 00 00 00 00 7B [05:07:02]Write i2c OK [05:07:02]MH_I2C_Read... [05:07:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:07:02]Read from MH i2c: E2 [05:07:02]MH_I2C_Read... [05:07:02]Read from MH i2c: E2 0E 00 [05:07:02]MH_I2C_Read... [05:07:02]Read from MH i2c: E2 0E 00 F0 0E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 BC [05:07:02]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [05:07:02]wFMCommunicate OK [05:07:02]SAM_PROTO_GetShiftState done [05:07:02]FM_GetShiftState done [05:07:02]req_shift_opened done [05:07:02]requested_item shift.open_date is exist - process it [05:07:02]req_shift_open_date [05:07:02]req_shift_open_date done [05:07:02]produce_requested_data done [05:07:02]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64091,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [05:07:02]process_action_free close_receipt [05:07:02]json_value_free [05:07:02]json_value_free done [05:07:02]process_json_proto returns [05:07:02]Send response to host [05:07:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64091,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [05:07:02]free response buf [05:07:02]execute_script done [05:07:02]execute_script returns [05:07:02]free content buf [05:07:02]Sock 8.Close socket [05:07:02]Sock 8.Thread stoped [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:43]accept exits with 9 [05:08:43]New connection [05:08:43]New thread 3067133284 created [05:08:43]Thread 3067276644 joined [05:08:43]Waiting for new connection... [05:08:43] Sock 9.Parse request [05:08:43]Sock 9.Check first char [05:08:43]Sock 9.First char is OK [05:08:43]request: POST /json_proto HTTP/1.0 [05:08:43]Method: POST [05:08:43]URL: /json_proto [05:08:43]Method is POST - this is cgi request [05:08:43]url: /json_proto [05:08:43]query_string will be loaded in cgi processing [05:08:43]execute_cgi json_proto POST (null) [05:08:43]execute_cgi path=json_proto method=POST [05:08:43]POST find Content-Length [05:08:43]Host: 172.17.60.69:8080 [05:08:43]Content-Length: 723 [05:08:43]Content-Type: application/json [05:08:43] [05:08:43]POST finish read [05:08:43]Found Content-Length = 723 [05:08:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73631", "tax_sys" : 0, "items" : [ { "code": "2000151200113", "name": "\u0410\u041A\u0426\u0418\u042F \u0421\u043B\u043E\u0439\u043A\u0430 \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E 110\u0433", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 53.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:08:43]execute_script... [05:08: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)73631", "tax_sys" : 0, "items" : [ { "code": "2000151200113", "name": "\u0410\u041A\u0426\u0418\u042F \u0421\u043B\u043E\u0439\u043A\u0430 \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E 110\u0433", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 53.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:08:43]POST & json_proto [05:08:43]process_json_proto [05:08:43]json parsed OK: [05:08:43]protocol is kg_v1.0 [05:08:43]action value=close_receipt [05:08:43]process_action close_receipt [05:08:43]cmd_close_receipt [05:08:43]MH_GetDate [05:08:43]Write to MH i2c: F0 00 00 F1 0E EE [05:08:43]Write i2c OK [05:08:43]MH_I2C_Read... [05:08:43]Read from MH i2c: F0 [05:08:43]MH_I2C_Read... [05:08:43]Read from MH i2c: F0 09 00 [05:08:43]MH_I2C_Read... [05:08:43]Read from MH i2c: F0 09 00 F1 0E 00 DD F2 5F 66 D2 83 5F 66 A5 [05:08:43]GetLastDocTimeStamp 1717564018 [05:08:43]current date 1717564125 [05:08:43]FM_GetShiftState [05:08:43]SAM_PROTO_GetShiftState [05:08:43]wFMCommunicate request_size=4 [05:08:43]MH_SAM_APDU [05:08:43]CAPDU: 80 13 01 00 [05:08:43]Write to MH i2c: E2 08 00 F2 0E 80 13 01 00 00 00 00 00 7D [05:08:43]Write i2c OK [05:08:43]MH_I2C_Read... [05:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:08:44]Read from MH i2c: E2 [05:08:44]MH_I2C_Read... [05:08:44]Read from MH i2c: E2 0E 00 [05:08:44]MH_I2C_Read... [05:08:44]Read from MH i2c: E2 0E 00 F2 0E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 BE [05:08:44]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [05:08:44]wFMCommunicate OK [05:08:44]SAM_PROTO_GetShiftState done [05:08:44]FM_GetShiftState done [05:08:44]opened in 1717545925 [05:08:44]opened+sec_in_day 1717632325 [05:08:44]quantity*price = 5300 [05:08:44]sum+1 = 5301 [05:08:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 53.00 НСП 1% : 0.47 НДС 12% : 5.63 Наличными: 53.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 12 05.06.2024 05:08 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64092 ФПД: 145559458315631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T050845&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64092&fm=145559458315631&tin=02508201610067®Number=0000000000092737&sum=5300 0 [05:08:45]StoreToDocumentArchive [05:08:45]shift 375 fd 64092 [05:08:45]save to /storage/0375/doc_00064092 [05:08:45]save last doc name /storage/0375/doc_00064092 to /storage/kkm_last_doc_name [05:08:45]save OK [05:08:45]Clear old archive folders... [05:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=303 [05:08:45]tlvbuf is 00FF6370 [05:08:45]SAM_PROTO_ClearQueue [05:08:45]wFMCommunicate request_size=4 [05:08:45]MH_SAM_APDU [05:08:45]CAPDU: 80 09 00 00 [05:08:45]Write to MH i2c: E2 08 00 FF 0E 80 09 00 00 00 00 00 00 7F [05:08:45]Write i2c OK [05:08:45]MH_I2C_Read... [05:08:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:08:45]Read from MH i2c: E2 [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: E2 03 00 [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: E2 03 00 FF 0E 00 90 00 81 [05:08:45]RAPDU: 90 00 [05:08:45]wFMCommunicate OK [05:08:45]SAM_PROTO_ClearQueue done [05:08:45]KKMCreateOFDPacket [05:08:45]OFDProtocolAddRootSTLVToBuf [05:08:45]FM_MakeSignedData [05:08:45]FM_MakeSignedData [05:08:45]SAM_PROTO_SignData [05:08:45]wFMCommunicate request_size=4 [05:08:45]MH_SAM_APDU [05:08:45]CAPDU: 80 0D 01 02 [05:08:45]Write to MH i2c: E2 08 00 00 0F 80 0D 01 02 00 00 00 00 88 [05:08:45]Write i2c OK [05:08:45]MH_I2C_Read... [05:08:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:08:45]Read from MH i2c: E2 [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: E2 03 00 [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: E2 03 00 00 0F 00 90 00 83 [05:08:45]RAPDU: 90 00 [05:08:45]wFMCommunicate OK [05:08:45]wFMCommunicate request_size=255 [05:08:45]MH_SAM_APDU [05:08:45]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 32 30 30 30 31 35 31 32 30 30 31 31 33 06 04 3D 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 DD F2 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D [05:08:45]Write to MH i2c: E2 02 01 01 0F 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 32 30 30 30 31 35 31 32 30 30 31 31 33 06 04 3D 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 DD F2 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 00 00 87 [05:08:45]Write i2c OK [05:08:45]MH_I2C_Read... [05:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:08:45]Read from MH i2c: E2 [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: E2 03 00 [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: E2 03 00 01 0F 00 90 00 84 [05:08:45]RAPDU: 90 00 [05:08:45]wFMCommunicate OK [05:08:45]wFMCommunicate request_size=62 [05:08:45]MH_SAM_APDU [05:08:45]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5C FA 00 00 35 04 06 00 84 62 B3 CE 7D 6F [05:08:45]Write to MH i2c: E2 41 00 02 0F 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5C FA 00 00 35 04 06 00 84 62 B3 CE 7D 6F 00 00 71 [05:08:45]Write i2c OK [05:08:45]MH_I2C_Read... [05:08:45]OFD Sender: No OFD packet to send [05:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:08:45]Read from MH i2c: E2 [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: E2 03 00 [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [05:08:45]RAPDU: 90 00 [05:08:45]wFMCommunicate OK [05:08:45]wFMCommunicate request_size=4 [05:08:45]MH_SAM_APDU [05:08:45]CAPDU: 80 0D 03 02 [05:08:45]Write to MH i2c: E2 08 00 03 0F 80 0D 03 02 00 00 00 00 8D [05:08:45]Write i2c OK [05:08:45]MH_I2C_Read... [05:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:08:45]Read from MH i2c: E2 [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: E2 0B 00 [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: E2 0B 00 03 0F 00 6E 93 1C 12 EB F6 26 E1 90 00 A5 [05:08:45]RAPDU: 6E 93 1C 12 EB F6 26 E1 90 00 [05:08:45]wFMCommunicate OK [05:08:45]SAM_PROTO_SignData done [05:08:45]FM_MakeSignedData done [05:08:45]CreateOFDProtocolMessage [05:08:45]wFMCommunicate request_size=4 [05:08:45]MH_SAM_APDU [05:08:45]CAPDU: 80 11 00 00 [05:08:45]Write to MH i2c: E2 08 00 04 0F 80 11 00 00 00 00 00 00 8D [05:08:45]Write i2c OK [05:08:45]MH_I2C_Read... [05:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:08:45]Read from MH i2c: E2 [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: E2 17 00 [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: E2 17 00 04 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DF [05:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:08:45]wFMCommunicate OK [05:08:45]CreateOFDProtocolMessage done [05:08:45]OFDSenderStorePacket 64092 [05:08:45]StoreOFDPacket docnum=64092 [05:08:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 43 01 00 00 58 05 3B 01 39 E7 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 32 30 30 30 31 35 31 32 30 30 31 31 33 06 04 3D 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 DD F2 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5C FA 00 00 35 04 06 00 84 62 B3 CE 7D 6F 6E 93 1C 12 EB F6 26 E1 [05:08:45]CheckFolder [05:08:45]dirname=/storage/ofd_packets [05:08:45]CheckFolder done [05:08:45]ProducePacketName [05:08:45]name=ofd_packets/00064092 [05:08:45]NVStorageSaveData ofd_packets/00064092 [05:08:45]File name is /storage/ofd_packets/00064092 [05:08:45]Write 353 bytes [05:08:45]NVStorageSaveData done [05:08:45]OFDSenderStorePacket done [05:08:45]KKMCreateOFDPacket done [05:08:45]NVStorageSaveData kkm_last_timestamp [05:08:45]File name is /storage/kkm_last_timestamp [05:08:45]Write 4 bytes [05:08:45]NVStorageSaveData done [05:08:45]ExternCall_PrintAddStr [05:08:45]wPrintStart [05:08:45]Write to MH i2c: 01 00 00 05 0F 14 [05:08:45]Write i2c OK [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: 01 [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: 01 07 00 [05:08:45]MH_I2C_Read... [05:08:45]Read from MH i2c: 01 07 00 05 0F 00 00 00 00 00 FF 0F 29 [05:08:45]RasterBufferAndPrint [05:08:45]line Счет N : (3)73631 [05:08:45]line ИНН: 02508201610067 [05:08:45]line Контрольно-Кассовый Чек [05:08:45]line ПРОДАЖА [05:08:45]line Товар: 2000151200113 [05:08:45]line АКЦИЯ Слойка треугольная мясо 110г [05:08:45]line 1.000 * 53.00 [05:08:45]line = 53.00 [05:08:45]line НДС 12% НСП 1% [05:08:45]line > о реализуемом товаре [05:08:45]line ИТОГО: 53.00 [05:08:45]line НСП 1% : 0.47 [05:08:45]line НДС 12% : 5.63 [05:08:45]line Наличными: 53.00 [05:08:45]line Безнал.: 0.00 [05:08:45]line Место: АЗС № 117 "Партнер Нефть" [05:08:45]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [05:08:45]line СНО: Общий режим [05:08:45]line Чек 12 05.06.2024 05:08 [05:08:45]line Смена: 375 ФФД: 1.0 [05:08:45]line ЗНМ: 0300000031 [05:08:45]line РНМ: 0000000000092737 [05:08:45]line Версия ККМ: 001 [05:08:45]line ФМ: 0000000000875074 [05:08:45]line ФД: 64092 [05:08:45]line ФПД: 145559458315631 [05:08:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T050845&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64092&fm=145559458315631&tin=02508201610067®Number=0000000000092737&sum=5300 [05:08:46]line 0 [05:08:46]OFD Sender: Processing packet 64092 [packets to send 14, broken 13] [05:08:46]ProducePacketName [05:08:46]name=ofd_packets/00064092 [05:08:46]OFD Sender: To server: pG, [05:08:46]CommunicateWithHost lk.salyk.kg:30040 [05:08:46]ConnectInit lk.salyk.kg [05:08:46]written 0, free lines is 4095 [05:08:46]Connected sock=10 [05:08:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 43 01 00 00 58 05 3B 01 39 E7 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 32 30 30 30 31 35 31 32 30 30 31 31 33 06 04 3D 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 DD F2 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5C FA 00 00 35 04 06 00 84 62 B3 CE 7D 6F 6E 93 1C 12 EB F6 26 E1 [05:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 DA EC 47 00 64 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5C FA 00 00 F4 03 04 00 EA 9E 5F 66 B6 04 01 00 00 71 D6 8A 9E 5A 31 7D 7B [05:08:46]CommunicateWithHost err = 0 [05:08:46]CheckOFDResponse [05:08:46]1017 (14) - 77093643461234 [05:08:46]1041 (16) - 0000000000875074 [05:08:46]1040 (4) - 64092 [05:08:46]1012 (4) - 04.06.2024 23:10 [05:08:46]1206 (1) - 0 [05:08:46]OFD Sender: Remove packet 64092 [05:08:46]ProducePacketName [05:08:46]name=ofd_packets/00064092 [05:08:46]NVStorageDeleteData [05:08:46]Write to MH i2c: 01 00 00 2E 0F 3D [05:08:46]Write i2c OK [05:08:46]MH_I2C_Read... [05:08:46]Read from MH i2c: 01 [05:08:46]MH_I2C_Read... [05:08:46]Read from MH i2c: 01 07 00 [05:08:46]MH_I2C_Read... [05:08:46]Read from MH i2c: 01 07 00 2E 0F 00 00 00 00 00 D8 0C 28 [05:08:46]RasterBufferAndPrint [05:08:46]line [05:08:46]line [05:08:46]line [05:08:46]line [05:08:46]line [05:08:46]written 0, free lines is 3295 [05:08:46]MH_Cut [05:08:46]Write to MH i2c: D1 01 00 35 0F 01 16 [05:08:46]Write i2c OK [05:08:46]MH_I2C_Read... [05:08:46]Read from MH i2c: D1 [05:08:46]MH_I2C_Read... [05:08:46]Read from MH i2c: D1 01 00 [05:08:46]MH_I2C_Read... [05:08:46]Read from MH i2c: D1 01 00 35 0F 00 15 [05:08:46]Write to MH i2c: 01 00 00 36 0F 45 [05:08:46]Write i2c OK [05:08:46]MH_I2C_Read... [05:08:46]OFD Sender: No OFD packet to send [05:08:47]*** Cut start [05:08:47]*** Partial cut [05:08:47]*** CUTSNS_PIN = 1 [05:08:47]*** CUTSNS_PIN = 0 [05:08:47]*** Brake cut motor [05:08:47]Read from MH i2c: 01 [05:08:47]MH_I2C_Read... [05:08:47]*** Stop cut motor [05:08:47]*** Cut end [05:08:47]Read from MH i2c: 01 07 00 [05:08:47]MH_I2C_Read... [05:08:47]Read from MH i2c: 01 07 00 36 0F 00 00 00 00 00 FF 0F 5A [05:08:47]process_action close_receipt done [05:08:47]requested_data is exist [05:08:47]produce_requested_data [05:08:47]requested_item fm.sn is exist - process it [05:08:47]wFMCommunicate request_size=4 [05:08:47]MH_SAM_APDU [05:08:47]CAPDU: 80 11 00 00 [05:08:47]Write to MH i2c: E2 08 00 37 0F 80 11 00 00 00 00 00 00 C0 [05:08:47]Write i2c OK [05:08:47]MH_I2C_Read... [05:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:08:48]Read from MH i2c: E2 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 17 00 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 17 00 37 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 12 [05:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:08:48]wFMCommunicate OK [05:08:48]requested_item fd.num is exist - process it [05:08:48]SAM_PROTO_GetFieldsCounters [05:08:48]wFMCommunicate request_size=4 [05:08:48]MH_SAM_APDU [05:08:48]CAPDU: 80 13 00 00 [05:08:48]Write to MH i2c: E2 08 00 38 0F 80 13 00 00 00 00 00 00 C3 [05:08:48]Write i2c OK [05:08:48]MH_I2C_Read... [05:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:08:48]Read from MH i2c: E2 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 62 00 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 62 00 38 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5C FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [05:08:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5C FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:08:48]wFMCommunicate OK [05:08:48]SAM_PROTO_GetFieldsCounters done [05:08:48]requested_item shift.num is exist - process it [05:08:48]requested_item shift.opened is exist - process it [05:08:48]req_shift_opened [05:08:48]FM_GetShiftState [05:08:48]SAM_PROTO_GetShiftState [05:08:48]wFMCommunicate request_size=4 [05:08:48]MH_SAM_APDU [05:08:48]CAPDU: 80 13 01 00 [05:08:48]Write to MH i2c: E2 08 00 39 0F 80 13 01 00 00 00 00 00 C5 [05:08:48]Write i2c OK [05:08:48]MH_I2C_Read... [05:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:08:48]Read from MH i2c: E2 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 0E 00 [05:08:48]MH_I2C_Read... [05:08:48]Read from MH i2c: E2 0E 00 39 0F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 06 [05:08:48]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [05:08:48]wFMCommunicate OK [05:08:48]SAM_PROTO_GetShiftState done [05:08:48]FM_GetShiftState done [05:08:48]req_shift_opened done [05:08:48]requested_item shift.open_date is exist - process it [05:08:48]req_shift_open_date [05:08:48]req_shift_open_date done [05:08:48]produce_requested_data done [05:08:48]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64092,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [05:08:48]process_action_free close_receipt [05:08:48]json_value_free [05:08:48]json_value_free done [05:08:48]process_json_proto returns [05:08:48]Send response to host [05:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64092,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [05:08:48]free response buf [05:08:48]execute_script done [05:08:48]execute_script returns [05:08:48]free content buf [05:08:48]Sock 9.Close socket [05:08:48]Sock 9.Thread stoped [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11: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:45]accept exits with 8 [05:11:45]New connection [05:11:45]New thread 3067276644 created [05:11:45]Thread 3067133284 joined [05:11:45]Waiting for new connection... [05:11:45] Sock 8.Parse request [05:11:45]Sock 8.Check first char [05:11:45]Sock 8.First char is OK [05:11:45]request: POST /json_proto HTTP/1.0 [05:11:45]Method: POST [05:11:45]URL: /json_proto [05:11:45]Method is POST - this is cgi request [05:11:45]url: /json_proto [05:11:45]query_string will be loaded in cgi processing [05:11:45]execute_cgi json_proto POST (null) [05:11:45]execute_cgi path=json_proto method=POST [05:11:45]POST find Content-Length [05:11:45]Host: 172.17.60.69:8080 [05:11:45]Content-Length: 629 [05:11:45]Content-Type: application/json [05:11:45] [05:11:45]POST finish read [05:11:45]Found Content-Length = 629 [05:11:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73632", "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" ] } } [05:11:45]execute_script... [05:11:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73632", "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" ] } } [05:11:45]POST & json_proto [05:11:45]process_json_proto [05:11:45]json parsed OK: [05:11:45]protocol is kg_v1.0 [05:11:45]action value=close_receipt [05:11:45]process_action close_receipt [05:11:45]cmd_close_receipt [05:11:45]MH_GetDate [05:11:45]Write to MH i2c: F0 00 00 3A 0F 38 [05:11:45]Write i2c OK [05:11:45]MH_I2C_Read... [05:11:45]Read from MH i2c: F0 [05:11:45]MH_I2C_Read... [05:11:45]Read from MH i2c: F0 09 00 [05:11:45]MH_I2C_Read... [05:11:45]Read from MH i2c: F0 09 00 3A 0F 00 92 F3 5F 66 D2 83 5F 66 A5 [05:11:45]GetLastDocTimeStamp 1717564125 [05:11:45]current date 1717564306 [05:11:45]FM_GetShiftState [05:11:45]SAM_PROTO_GetShiftState [05:11:45]wFMCommunicate request_size=4 [05:11:45]MH_SAM_APDU [05:11:45]CAPDU: 80 13 01 00 [05:11:45]Write to MH i2c: E2 08 00 3B 0F 80 13 01 00 00 00 00 00 C7 [05:11:45]Write i2c OK [05:11:45]MH_I2C_Read... [05:11:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:11:45]Read from MH i2c: E2 [05:11:45]MH_I2C_Read... [05:11:45]Read from MH i2c: E2 0E 00 [05:11:45]MH_I2C_Read... [05:11:45]Read from MH i2c: E2 0E 00 3B 0F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 08 [05:11:45]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [05:11:45]wFMCommunicate OK [05:11:45]SAM_PROTO_GetShiftState done [05:11:45]FM_GetShiftState done [05:11:45]opened in 1717545925 [05:11:45]opened+sec_in_day 1717632325 [05:11:45]quantity*price = 5000 [05:11:45]sum+1 = 5001 [05:11:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 13 05.06.2024 05:11 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64093 ФПД: 253589647495350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T051146&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64093&fm=253589647495350&tin=02508201610067®Number=0000000000092737&sum=5000 0 [05:11:46]StoreToDocumentArchive [05:11:46]shift 375 fd 64093 [05:11:46]save to /storage/0375/doc_00064093 [05:11:46]save last doc name /storage/0375/doc_00064093 to /storage/kkm_last_doc_name [05:11:46]save OK [05:11:46]Clear old archive folders... [05:11:46]ProcessDocumentItem done err = 0, tmpTLVsize=269 [05:11:46]tlvbuf is 010903B0 [05:11:46]SAM_PROTO_ClearQueue [05:11:46]wFMCommunicate request_size=4 [05:11:46]MH_SAM_APDU [05:11:46]CAPDU: 80 09 00 00 [05:11:46]Write to MH i2c: E2 08 00 48 0F 80 09 00 00 00 00 00 00 C9 [05:11:46]Write i2c OK [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 [05:11:46]MH_I2C_Read... [05:11:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:11:46]Read from MH i2c: E2 03 00 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 03 00 48 0F 00 90 00 CB [05:11:46]RAPDU: 90 00 [05:11:46]wFMCommunicate OK [05:11:46]SAM_PROTO_ClearQueue done [05:11:46]KKMCreateOFDPacket [05:11:46]OFDProtocolAddRootSTLVToBuf [05:11:46]FM_MakeSignedData [05:11:46]FM_MakeSignedData [05:11:46]SAM_PROTO_SignData [05:11:46]wFMCommunicate request_size=4 [05:11:46]MH_SAM_APDU [05:11:46]CAPDU: 80 0D 01 02 [05:11:46]Write to MH i2c: E2 08 00 49 0F 80 0D 01 02 00 00 00 00 D1 [05:11:46]Write i2c OK [05:11:46]MH_I2C_Read... [05:11:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:11:46]Read from MH i2c: E2 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 03 00 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 03 00 49 0F 00 90 00 CC [05:11:46]RAPDU: 90 00 [05:11:46]wFMCommunicate OK [05:11:46]wFMCommunicate request_size=255 [05:11:46]MH_SAM_APDU [05:11: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 0D 00 00 00 F4 03 04 00 92 F3 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [05:11:46]Write to MH i2c: E2 02 01 4A 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 0D 00 00 00 F4 03 04 00 92 F3 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 BA [05:11:46]Write i2c OK [05:11:46]MH_I2C_Read... [05:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:11:46]Read from MH i2c: E2 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 03 00 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 03 00 4A 0F 00 90 00 CD [05:11:46]RAPDU: 90 00 [05:11:46]wFMCommunicate OK [05:11:46]wFMCommunicate request_size=28 [05:11:46]MH_SAM_APDU [05:11:46]CAPDU: 80 0D 02 02 17 37 35 30 37 34 10 04 04 00 5D FA 00 00 35 04 06 00 E6 A3 70 DB 90 B6 [05:11:46]Write to MH i2c: E2 1F 00 4B 0F 80 0D 02 02 17 00 37 35 30 37 34 10 04 04 00 5D FA 00 00 35 04 06 00 E6 A3 70 DB 90 B6 00 00 D1 [05:11:46]Write i2c OK [05:11:46]MH_I2C_Read... [05:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:11:46]Read from MH i2c: E2 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 03 00 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 03 00 4B 0F 00 90 00 CE [05:11:46]RAPDU: 90 00 [05:11:46]wFMCommunicate OK [05:11:46]wFMCommunicate request_size=4 [05:11:46]MH_SAM_APDU [05:11:46]CAPDU: 80 0D 03 02 [05:11:46]Write to MH i2c: E2 08 00 4C 0F 80 0D 03 02 00 00 00 00 D6 [05:11:46]Write i2c OK [05:11:46]MH_I2C_Read... [05:11:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:11:46]Read from MH i2c: E2 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 0B 00 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 0B 00 4C 0F 00 FE 22 03 79 4E FF FF 17 90 00 D6 [05:11:46]RAPDU: FE 22 03 79 4E FF FF 17 90 00 [05:11:46]wFMCommunicate OK [05:11:46]SAM_PROTO_SignData done [05:11:46]FM_MakeSignedData done [05:11:46]CreateOFDProtocolMessage [05:11:46]wFMCommunicate request_size=4 [05:11:46]MH_SAM_APDU [05:11:46]CAPDU: 80 11 00 00 [05:11:46]Write to MH i2c: E2 08 00 4D 0F 80 11 00 00 00 00 00 00 D6 [05:11:46]Write i2c OK [05:11:46]MH_I2C_Read... [05:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:11:46]Read from MH i2c: E2 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 17 00 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: E2 17 00 4D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 28 [05:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:11:46]wFMCommunicate OK [05:11:46]CreateOFDProtocolMessage done [05:11:46]OFDSenderStorePacket 64093 [05:11:46]StoreOFDPacket docnum=64093 [05:11:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 21 01 00 00 3A B2 19 01 27 ED 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 0D 00 00 00 F4 03 04 00 92 F3 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5D FA 00 00 35 04 06 00 E6 A3 70 DB 90 B6 FE 22 03 79 4E FF FF 17 [05:11:46]CheckFolder [05:11:46]dirname=/storage/ofd_packets [05:11:46]CheckFolder done [05:11:46]ProducePacketName [05:11:46]name=ofd_packets/00064093 [05:11:46]NVStorageSaveData ofd_packets/00064093 [05:11:46]File name is /storage/ofd_packets/00064093 [05:11:46]Write 319 bytes [05:11:46]NVStorageSaveData done [05:11:46]OFDSenderStorePacket done [05:11:46]KKMCreateOFDPacket done [05:11:46]NVStorageSaveData kkm_last_timestamp [05:11:46]File name is /storage/kkm_last_timestamp [05:11:46]Write 4 bytes [05:11:46]NVStorageSaveData done [05:11:46]ExternCall_PrintAddStr [05:11:46]wPrintStart [05:11:46]Write to MH i2c: 01 00 00 4E 0F 5D [05:11:46]Write i2c OK [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: 01 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: 01 07 00 [05:11:46]MH_I2C_Read... [05:11:46]Read from MH i2c: 01 07 00 4E 0F 00 00 00 00 00 FF 0F 72 [05:11:46]RasterBufferAndPrint [05:11:46]line Счет N : (3)73632 [05:11:46]line ИНН: 02508201610067 [05:11:46]line Контрольно-Кассовый Чек [05:11:46]line ПРОДАЖА [05:11:46]line Товар: 4700000160358 [05:11:46]line Вода Легенда 1л [05:11:46]line 1.000 * 50.00 [05:11:46]line = 50.00 [05:11:46]line НДС 12% НСП 1% [05:11:46]line > о реализуемом товаре [05:11:46]line ИТОГО: 50.00 [05:11:46]line НСП 1% : 0.44 [05:11:46]line НДС 12% : 5.31 [05:11:46]line Наличными: 50.00 [05:11:46]line Безнал.: 0.00 [05:11:46]line Место: АЗС № 117 "Партнер Нефть" [05:11:46]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [05:11:46]line СНО: Общий режим [05:11:46]line Чек 13 05.06.2024 05:11 [05:11:46]line Смена: 375 ФФД: 1.0 [05:11:46]line ЗНМ: 0300000031 [05:11:46]line РНМ: 0000000000092737 [05:11:46]line Версия ККМ: 001 [05:11:46]line ФМ: 0000000000875074 [05:11:46]line ФД: 64093 [05:11:46]line ФПД: 253589647495350 [05:11:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T051146&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64093&fm=253589647495350&tin=02508201610067®Number=0000000000092737&sum=5000 [05:11:47]OFD Sender: Processing packet 64093 [packets to send 14, broken 13] [05:11:47]ProducePacketName [05:11:47]name=ofd_packets/00064093 [05:11:47]OFD Sender: To server: pG, [05:11:47]CommunicateWithHost lk.salyk.kg:30040 [05:11:47]ConnectInit lk.salyk.kg [05:11:47]line 0 [05:11:47]written 0, free lines is 4095 [05:11:47]Connected sock=10 [05:11:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 21 01 00 00 3A B2 19 01 27 ED 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 0D 00 00 00 F4 03 04 00 92 F3 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5D FA 00 00 35 04 06 00 E6 A3 70 DB 90 B6 FE 22 03 79 4E FF FF 17 [05:11:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 BB 55 47 00 D2 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5D FA 00 00 F4 03 04 00 9F 9F 5F 66 B6 04 01 00 00 DB 1A B2 5C 9F E6 E7 E2 [05:11:47]CommunicateWithHost err = 0 [05:11:47]CheckOFDResponse [05:11:47]1017 (14) - 77093643461234 [05:11:47]1041 (16) - 0000000000875074 [05:11:47]1040 (4) - 64093 [05:11:47]1012 (4) - 04.06.2024 23:13 [05:11:47]1206 (1) - 0 [05:11:47]OFD Sender: Remove packet 64093 [05:11:47]ProducePacketName [05:11:47]name=ofd_packets/00064093 [05:11:47]NVStorageDeleteData [05:11:47]Write to MH i2c: 01 00 00 76 0F 85 [05:11:47]Write i2c OK [05:11:47]MH_I2C_Read... [05:11:47]Read from MH i2c: 01 [05:11:47]MH_I2C_Read... [05:11:47]Read from MH i2c: 01 07 00 [05:11:47]MH_I2C_Read... [05:11:47]Read from MH i2c: 01 07 00 76 0F 00 00 00 00 00 09 0D A2 [05:11:47]RasterBufferAndPrint [05:11:47]line [05:11:47]line [05:11:47]line [05:11:47]line [05:11:47]line [05:11:47]written 0, free lines is 3343 [05:11:47]MH_Cut [05:11:47]Write to MH i2c: D1 01 00 7D 0F 01 5E [05:11:47]Write i2c OK [05:11:47]MH_I2C_Read... [05:11:47]Read from MH i2c: D1 [05:11:47]MH_I2C_Read... [05:11:47]Read from MH i2c: D1 01 00 [05:11:47]MH_I2C_Read... [05:11:47]Read from MH i2c: D1 01 00 7D 0F 00 5D [05:11:47]Write to MH i2c: 01 00 00 7E 0F 8D [05:11:47]Write i2c OK [05:11:47]MH_I2C_Read... [05:11:47]OFD Sender: No OFD packet to send [05:11:48]*** Cut start [05:11:48]*** Partial cut [05:11:48]*** CUTSNS_PIN = 1 [05:11:48]*** CUTSNS_PIN = 0 [05:11:48]*** Brake cut motor [05:11:48]Read from MH i2c: 01 [05:11:48]MH_I2C_Read... [05:11:48]*** Stop cut motor [05:11:48]*** Cut end [05:11:48]Read from MH i2c: 01 07 00 [05:11:48]MH_I2C_Read... [05:11:48]Read from MH i2c: 01 07 00 7E 0F 00 00 00 00 00 FF 0F A2 [05:11:48]process_action close_receipt done [05:11:48]requested_data is exist [05:11:48]produce_requested_data [05:11:48]requested_item fm.sn is exist - process it [05:11:48]wFMCommunicate request_size=4 [05:11:48]MH_SAM_APDU [05:11:48]CAPDU: 80 11 00 00 [05:11:48]Write to MH i2c: E2 08 00 7F 0F 80 11 00 00 00 00 00 00 08 [05:11:48]Write i2c OK [05:11:48]MH_I2C_Read... [05:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:11:48]Read from MH i2c: E2 [05:11:48]MH_I2C_Read... [05:11:48]Read from MH i2c: E2 17 00 [05:11:48]MH_I2C_Read... [05:11:48]Read from MH i2c: E2 17 00 7F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 5A [05:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:11:48]wFMCommunicate OK [05:11:48]requested_item fd.num is exist - process it [05:11:48]SAM_PROTO_GetFieldsCounters [05:11:48]wFMCommunicate request_size=4 [05:11:48]MH_SAM_APDU [05:11:48]CAPDU: 80 13 00 00 [05:11:48]Write to MH i2c: E2 08 00 80 0F 80 13 00 00 00 00 00 00 0B [05:11:48]Write i2c OK [05:11:48]MH_I2C_Read... [05:11:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:11:49]Read from MH i2c: E2 [05:11:49]MH_I2C_Read... [05:11:49]Read from MH i2c: E2 62 00 [05:11:49]MH_I2C_Read... [05:11:49]Read from MH i2c: E2 62 00 80 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5D FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [05:11:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5D FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:11:49]wFMCommunicate OK [05:11:49]SAM_PROTO_GetFieldsCounters done [05:11:49]requested_item shift.num is exist - process it [05:11:49]requested_item shift.opened is exist - process it [05:11:49]req_shift_opened [05:11:49]FM_GetShiftState [05:11:49]SAM_PROTO_GetShiftState [05:11:49]wFMCommunicate request_size=4 [05:11:49]MH_SAM_APDU [05:11:49]CAPDU: 80 13 01 00 [05:11:49]Write to MH i2c: E2 08 00 81 0F 80 13 01 00 00 00 00 00 0D [05:11:49]Write i2c OK [05:11:49]MH_I2C_Read... [05:11:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:11:49]Read from MH i2c: E2 [05:11:49]MH_I2C_Read... [05:11:49]Read from MH i2c: E2 0E 00 [05:11:49]MH_I2C_Read... [05:11:49]Read from MH i2c: E2 0E 00 81 0F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 4E [05:11:49]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [05:11:49]wFMCommunicate OK [05:11:49]SAM_PROTO_GetShiftState done [05:11:49]FM_GetShiftState done [05:11:49]req_shift_opened done [05:11:49]requested_item shift.open_date is exist - process it [05:11:49]req_shift_open_date [05:11:49]req_shift_open_date done [05:11:49]produce_requested_data done [05:11:49]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64093,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [05:11:49]process_action_free close_receipt [05:11:49]json_value_free [05:11:49]json_value_free done [05:11:49]process_json_proto returns [05:11:49]Send response to host [05:11:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64093,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [05:11:49]free response buf [05:11:49]execute_script done [05:11:49]execute_script returns [05:11:49]free content buf [05:11:49]Sock 8.Close socket [05:11:49]Sock 8.Thread stoped [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:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:16]accept exits with 9 [05:21:16]New connection [05:21:16]New thread 3067133284 created [05:21:16]Thread 3067276644 joined [05:21:16]Waiting for new connection... [05:21:16] Sock 9.Parse request [05:21:16]Sock 9.Check first char [05:21:16]Sock 9.First char is OK [05:21:16]request: POST /json_proto HTTP/1.0 [05:21:16]Method: POST [05:21:16]URL: /json_proto [05:21:16]Method is POST - this is cgi request [05:21:16]url: /json_proto [05:21:16]query_string will be loaded in cgi processing [05:21:16]execute_cgi json_proto POST (null) [05:21:16]execute_cgi path=json_proto method=POST [05:21:16]POST find Content-Length [05:21:16]Host: 172.17.60.69:8080 [05:21:17]Content-Length: 625 [05:21:17]Content-Type: application/json [05:21:17] [05:21:17]POST finish read [05:21:17]Found Content-Length = 625 [05:21:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73633", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "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" ] } } [05:21:17]execute_script... [05:21: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)73633", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "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" ] } } [05:21:17]POST & json_proto [05:21:17]process_json_proto [05:21:17]json parsed OK: [05:21:17]protocol is kg_v1.0 [05:21:17]action value=close_receipt [05:21:17]process_action close_receipt [05:21:17]cmd_close_receipt [05:21:17]MH_GetDate [05:21:17]Write to MH i2c: F0 00 00 82 0F 80 [05:21:17]Write i2c OK [05:21:17]MH_I2C_Read... [05:21:17]Read from MH i2c: F0 [05:21:17]MH_I2C_Read... [05:21:17]Read from MH i2c: F0 09 00 [05:21:17]MH_I2C_Read... [05:21:17]Read from MH i2c: F0 09 00 82 0F 00 CE F5 5F 66 D2 83 5F 66 2B [05:21:17]GetLastDocTimeStamp 1717564306 [05:21:17]current date 1717564878 [05:21:17]FM_GetShiftState [05:21:17]SAM_PROTO_GetShiftState [05:21:17]wFMCommunicate request_size=4 [05:21:17]MH_SAM_APDU [05:21:17]CAPDU: 80 13 01 00 [05:21:17]Write to MH i2c: E2 08 00 83 0F 80 13 01 00 00 00 00 00 0F [05:21:17]Write i2c OK [05:21:17]MH_I2C_Read... [05:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:21:17]Read from MH i2c: E2 [05:21:17]MH_I2C_Read... [05:21:17]Read from MH i2c: E2 0E 00 [05:21:17]MH_I2C_Read... [05:21:17]Read from MH i2c: E2 0E 00 83 0F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 50 [05:21:17]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [05:21:17]wFMCommunicate OK [05:21:17]SAM_PROTO_GetShiftState done [05:21:17]FM_GetShiftState done [05:21:17]opened in 1717545925 [05:21:17]opened+sec_in_day 1717632325 [05:21:17]quantity*price = 11500 [05:21:17]sum+1 = 11501 [05:21:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 14 05.06.2024 05:21 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64094 ФПД: 263337760885982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T052118&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64094&fm=263337760885982&tin=02508201610067®Number=0000000000092737&sum=11500 0 [05:21:18]StoreToDocumentArchive [05:21:18]shift 375 fd 64094 [05:21:18]save to /storage/0375/doc_00064094 [05:21:18]save last doc name /storage/0375/doc_00064094 to /storage/kkm_last_doc_name [05:21:18]save OK [05:21:18]Clear old archive folders... [05:21:18]ProcessDocumentItem done err = 0, tmpTLVsize=274 [05:21:18]tlvbuf is 00FF63C0 [05:21:18]SAM_PROTO_ClearQueue [05:21:18]wFMCommunicate request_size=4 [05:21:18]MH_SAM_APDU [05:21:18]CAPDU: 80 09 00 00 [05:21:18]Write to MH i2c: E2 08 00 90 0F 80 09 00 00 00 00 00 00 11 [05:21:18]Write i2c OK [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: E2 [05:21:18]MH_I2C_Read... [05:21:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:21:18]Read from MH i2c: E2 03 00 [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: E2 03 00 90 0F 00 90 00 13 [05:21:18]RAPDU: 90 00 [05:21:18]wFMCommunicate OK [05:21:18]SAM_PROTO_ClearQueue done [05:21:18]KKMCreateOFDPacket [05:21:18]OFDProtocolAddRootSTLVToBuf [05:21:18]FM_MakeSignedData [05:21:18]FM_MakeSignedData [05:21:18]SAM_PROTO_SignData [05:21:18]wFMCommunicate request_size=4 [05:21:18]MH_SAM_APDU [05:21:18]CAPDU: 80 0D 01 02 [05:21:18]Write to MH i2c: E2 08 00 91 0F 80 0D 01 02 00 00 00 00 19 [05:21:18]Write i2c OK [05:21:18]MH_I2C_Read... [05:21:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:21:18]Read from MH i2c: E2 [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: E2 03 00 [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: E2 03 00 91 0F 00 90 00 14 [05:21:18]RAPDU: 90 00 [05:21:18]wFMCommunicate OK [05:21:18]wFMCommunicate request_size=255 [05:21:18]MH_SAM_APDU [05:21:18]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0E 00 00 00 F4 03 04 00 CE F5 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [05:21:18]Write to MH i2c: E2 02 01 92 0F 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0E 00 00 00 F4 03 04 00 CE F5 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 C6 [05:21:18]Write i2c OK [05:21:18]MH_I2C_Read... [05:21:18]OFD Sender: No OFD packet to send [05:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:21:18]Read from MH i2c: E2 [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: E2 03 00 [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: E2 03 00 92 0F 00 90 00 15 [05:21:18]RAPDU: 90 00 [05:21:18]wFMCommunicate OK [05:21:18]wFMCommunicate request_size=33 [05:21:18]MH_SAM_APDU [05:21:18]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5E FA 00 00 35 04 06 00 EF 81 19 B1 8C DE [05:21:18]Write to MH i2c: E2 24 00 93 0F 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5E FA 00 00 35 04 06 00 EF 81 19 B1 8C DE 00 00 A6 [05:21:18]Write i2c OK [05:21:18]MH_I2C_Read... [05:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:21:18]Read from MH i2c: E2 [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: E2 03 00 [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: E2 03 00 93 0F 00 90 00 16 [05:21:18]RAPDU: 90 00 [05:21:18]wFMCommunicate OK [05:21:18]wFMCommunicate request_size=4 [05:21:18]MH_SAM_APDU [05:21:18]CAPDU: 80 0D 03 02 [05:21:18]Write to MH i2c: E2 08 00 94 0F 80 0D 03 02 00 00 00 00 1E [05:21:18]Write i2c OK [05:21:18]MH_I2C_Read... [05:21:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:21:18]Read from MH i2c: E2 [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: E2 0B 00 [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: E2 0B 00 94 0F 00 B4 8C 8A D3 E3 9B 9C 50 90 00 26 [05:21:18]RAPDU: B4 8C 8A D3 E3 9B 9C 50 90 00 [05:21:18]wFMCommunicate OK [05:21:18]SAM_PROTO_SignData done [05:21:18]FM_MakeSignedData done [05:21:18]CreateOFDProtocolMessage [05:21:18]wFMCommunicate request_size=4 [05:21:18]MH_SAM_APDU [05:21:18]CAPDU: 80 11 00 00 [05:21:18]Write to MH i2c: E2 08 00 95 0F 80 11 00 00 00 00 00 00 1E [05:21:18]Write i2c OK [05:21:18]MH_I2C_Read... [05:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:21:18]Read from MH i2c: E2 [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: E2 17 00 [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: E2 17 00 95 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 70 [05:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:21:18]wFMCommunicate OK [05:21:18]CreateOFDProtocolMessage done [05:21:18]OFDSenderStorePacket 64094 [05:21:18]StoreOFDPacket docnum=64094 [05:21:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 1B 51 1E 01 55 14 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0E 00 00 00 F4 03 04 00 CE F5 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5E FA 00 00 35 04 06 00 EF 81 19 B1 8C DE B4 8C 8A D3 E3 9B 9C 50 [05:21:18]CheckFolder [05:21:18]dirname=/storage/ofd_packets [05:21:18]CheckFolder done [05:21:18]ProducePacketName [05:21:18]name=ofd_packets/00064094 [05:21:18]NVStorageSaveData ofd_packets/00064094 [05:21:18]File name is /storage/ofd_packets/00064094 [05:21:18]Write 324 bytes [05:21:18]NVStorageSaveData done [05:21:18]OFDSenderStorePacket done [05:21:18]KKMCreateOFDPacket done [05:21:18]NVStorageSaveData kkm_last_timestamp [05:21:18]File name is /storage/kkm_last_timestamp [05:21:18]Write 4 bytes [05:21:18]NVStorageSaveData done [05:21:18]ExternCall_PrintAddStr [05:21:18]wPrintStart [05:21:18]Write to MH i2c: 01 00 00 96 0F A5 [05:21:18]Write i2c OK [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: 01 [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: 01 07 00 [05:21:18]MH_I2C_Read... [05:21:18]Read from MH i2c: 01 07 00 96 0F 00 00 00 00 00 FF 0F BA [05:21:18]RasterBufferAndPrint [05:21:18]line Счет N : (3)73633 [05:21:18]line ИНН: 02508201610067 [05:21:18]line Контрольно-Кассовый Чек [05:21:18]line ПРОДАЖА [05:21:18]line Товар: 2000036240010 [05:21:18]line Кофе Латте (GABB TRADE) [05:21:18]line 1.000 * 115.00 [05:21:18]line = 115.00 [05:21:18]line НДС 12% НСП 1% [05:21:18]line > о реализуемом товаре [05:21:18]line ИТОГО: 115.00 [05:21:18]line НСП 1% : 1.02 [05:21:18]line НДС 12% : 12.21 [05:21:18]line Наличными: 115.00 [05:21:18]line Безнал.: 0.00 [05:21:18]line Место: АЗС № 117 "Партнер Нефть" [05:21:18]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [05:21:18]line СНО: Общий режим [05:21:18]line Чек 14 05.06.2024 05:21 [05:21:18]line Смена: 375 ФФД: 1.0 [05:21:18]line ЗНМ: 0300000031 [05:21:18]line РНМ: 0000000000092737 [05:21:18]line Версия ККМ: 001 [05:21:18]line ФМ: 0000000000875074 [05:21:18]line ФД: 64094 [05:21:18]line ФПД: 263337760885982 [05:21:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T052118&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64094&fm=263337760885982&tin=02508201610067®Number=0000000000092737&sum=11500 [05:21:19]line 0 [05:21:19]OFD Sender: Processing packet 64094 [packets to send 14, broken 13] [05:21:19]ProducePacketName [05:21:19]name=ofd_packets/00064094 [05:21:19]OFD Sender: To server: pG, [05:21:19]CommunicateWithHost lk.salyk.kg:30040 [05:21:19]ConnectInit lk.salyk.kg [05:21:19]written 0, free lines is 4095 [05:21:19]Connected sock=10 [05:21:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 1B 51 1E 01 55 14 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0E 00 00 00 F4 03 04 00 CE F5 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5E FA 00 00 35 04 06 00 EF 81 19 B1 8C DE B4 8C 8A D3 E3 9B 9C 50 [05:21:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 5F 3A 47 00 9B 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5E FA 00 00 F4 03 04 00 DB A1 5F 66 B6 04 01 00 00 49 08 B1 AD E1 4B 5E 0E [05:21:19]CommunicateWithHost err = 0 [05:21:19]CheckOFDResponse [05:21:19]1017 (14) - 77093643461234 [05:21:19]1041 (16) - 0000000000875074 [05:21:19]1040 (4) - 64094 [05:21:19]1012 (4) - 04.06.2024 23:23 [05:21:19]1206 (1) - 0 [05:21:19]OFD Sender: Remove packet 64094 [05:21:19]ProducePacketName [05:21:19]name=ofd_packets/00064094 [05:21:19]NVStorageDeleteData [05:21:19]Write to MH i2c: 01 00 00 BE 0F CD [05:21:19]Write i2c OK [05:21:19]MH_I2C_Read... [05:21:19]Read from MH i2c: 01 [05:21:19]MH_I2C_Read... [05:21:19]Read from MH i2c: 01 07 00 [05:21:19]MH_I2C_Read... [05:21:19]Read from MH i2c: 01 07 00 BE 0F 00 00 00 00 00 02 0D E3 [05:21:19]RasterBufferAndPrint [05:21:19]line [05:21:19]line [05:21:19]line [05:21:19]line [05:21:19]line [05:21:19]written 0, free lines is 3337 [05:21:19]MH_Cut [05:21:19]Write to MH i2c: D1 01 00 C5 0F 01 A6 [05:21:19]Write i2c OK [05:21:19]MH_I2C_Read... [05:21:19]Read from MH i2c: D1 [05:21:19]MH_I2C_Read... [05:21:19]Read from MH i2c: D1 01 00 [05:21:19]MH_I2C_Read... [05:21:19]Read from MH i2c: D1 01 00 C5 0F 00 A5 [05:21:19]Write to MH i2c: 01 00 00 C6 0F D5 [05:21:19]Write i2c OK [05:21:19]MH_I2C_Read... [05:21:19]OFD Sender: No OFD packet to send [05:21:20]*** Cut start [05:21:20]*** Partial cut [05:21:20]*** CUTSNS_PIN = 1 [05:21:20]*** CUTSNS_PIN = 0 [05:21:20]*** Brake cut motor [05:21:20]Read from MH i2c: 01 [05:21:20]MH_I2C_Read... [05:21:20]*** Stop cut motor [05:21:20]*** Cut end [05:21:20]Read from MH i2c: 01 07 00 [05:21:20]MH_I2C_Read... [05:21:20]Read from MH i2c: 01 07 00 C6 0F 00 00 00 00 00 FF 0F EA [05:21:20]process_action close_receipt done [05:21:20]requested_data is exist [05:21:20]produce_requested_data [05:21:20]requested_item fm.sn is exist - process it [05:21:20]wFMCommunicate request_size=4 [05:21:20]MH_SAM_APDU [05:21:20]CAPDU: 80 11 00 00 [05:21:20]Write to MH i2c: E2 08 00 C7 0F 80 11 00 00 00 00 00 00 50 [05:21:20]Write i2c OK [05:21:20]MH_I2C_Read... [05:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:21:20]Read from MH i2c: E2 [05:21:20]MH_I2C_Read... [05:21:20]Read from MH i2c: E2 17 00 [05:21:20]MH_I2C_Read... [05:21:20]Read from MH i2c: E2 17 00 C7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A2 [05:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:21:20]wFMCommunicate OK [05:21:20]requested_item fd.num is exist - process it [05:21:20]SAM_PROTO_GetFieldsCounters [05:21:20]wFMCommunicate request_size=4 [05:21:20]MH_SAM_APDU [05:21:20]CAPDU: 80 13 00 00 [05:21:20]Write to MH i2c: E2 08 00 C8 0F 80 13 00 00 00 00 00 00 53 [05:21:20]Write i2c OK [05:21:20]MH_I2C_Read... [05:21:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:21:21]Read from MH i2c: E2 [05:21:21]MH_I2C_Read... [05:21:21]Read from MH i2c: E2 62 00 [05:21:21]MH_I2C_Read... [05:21:21]Read from MH i2c: E2 62 00 C8 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5E FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [05:21:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5E FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:21:21]wFMCommunicate OK [05:21:21]SAM_PROTO_GetFieldsCounters done [05:21:21]requested_item shift.num is exist - process it [05:21:21]requested_item shift.opened is exist - process it [05:21:21]req_shift_opened [05:21:21]FM_GetShiftState [05:21:21]SAM_PROTO_GetShiftState [05:21:21]wFMCommunicate request_size=4 [05:21:21]MH_SAM_APDU [05:21:21]CAPDU: 80 13 01 00 [05:21:21]Write to MH i2c: E2 08 00 C9 0F 80 13 01 00 00 00 00 00 55 [05:21:21]Write i2c OK [05:21:21]MH_I2C_Read... [05:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:21:21]Read from MH i2c: E2 [05:21:21]MH_I2C_Read... [05:21:21]Read from MH i2c: E2 0E 00 [05:21:21]MH_I2C_Read... [05:21:21]Read from MH i2c: E2 0E 00 C9 0F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 96 [05:21:21]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [05:21:21]wFMCommunicate OK [05:21:21]SAM_PROTO_GetShiftState done [05:21:21]FM_GetShiftState done [05:21:21]req_shift_opened done [05:21:21]requested_item shift.open_date is exist - process it [05:21:21]req_shift_open_date [05:21:21]req_shift_open_date done [05:21:21]produce_requested_data done [05:21:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64094,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [05:21:21]process_action_free close_receipt [05:21:21]json_value_free [05:21:21]json_value_free done [05:21:21]process_json_proto returns [05:21:21]Send response to host [05:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64094,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [05:21:21]free response buf [05:21:21]execute_script done [05:21:21]execute_script returns [05:21:21]free content buf [05:21:21]Sock 9.Close socket [05:21:21]Sock 9.Thread stoped [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:16]accept exits with 8 [05:23:16]New connection [05:23:16]New thread 3067276644 created [05:23:16]Thread 3067133284 joined [05:23:16]Waiting for new connection... [05:23:16] Sock 8.Parse request [05:23:16]Sock 8.Check first char [05:23:16]Sock 8.First char is OK [05:23:16]request: POST /json_proto HTTP/1.0 [05:23:16]Method: POST [05:23:16]URL: /json_proto [05:23:16]Method is POST - this is cgi request [05:23:16]url: /json_proto [05:23:16]query_string will be loaded in cgi processing [05:23:16]execute_cgi json_proto POST (null) [05:23:16]execute_cgi path=json_proto method=POST [05:23:16]POST find Content-Length [05:23:16]Host: 172.17.60.69:8080 [05:23:16]Content-Length: 643 [05:23:16]Content-Type: application/json [05:23:16] [05:23:16]POST finish read [05:23:16]Found Content-Length = 643 [05:23:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73634", "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" : 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" ] } } [05:23:16]execute_script... [05:23:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73634", "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" : 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" ] } } [05:23:16]POST & json_proto [05:23:16]process_json_proto [05:23:16]json parsed OK: [05:23:16]protocol is kg_v1.0 [05:23:16]action value=close_receipt [05:23:16]process_action close_receipt [05:23:16]cmd_close_receipt [05:23:16]MH_GetDate [05:23:16]Write to MH i2c: F0 00 00 CA 0F C8 [05:23:16]Write i2c OK [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: F0 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: F0 09 00 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: F0 09 00 CA 0F 00 46 F6 5F 66 D2 83 5F 66 EC [05:23:16]GetLastDocTimeStamp 1717564878 [05:23:16]current date 1717564998 [05:23:16]FM_GetShiftState [05:23:16]SAM_PROTO_GetShiftState [05:23:16]wFMCommunicate request_size=4 [05:23:16]MH_SAM_APDU [05:23:16]CAPDU: 80 13 01 00 [05:23:16]Write to MH i2c: E2 08 00 CB 0F 80 13 01 00 00 00 00 00 57 [05:23:16]Write i2c OK [05:23:16]MH_I2C_Read... [05:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:23:16]Read from MH i2c: E2 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: E2 0E 00 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: E2 0E 00 CB 0F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 98 [05:23:16]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [05:23:16]wFMCommunicate OK [05:23:16]SAM_PROTO_GetShiftState done [05:23:16]FM_GetShiftState done [05:23:16]opened in 1717545925 [05:23:16]opened+sec_in_day 1717632325 [05:23:16]quantity*price = 11500 [05:23:16]sum+1 = 11501 [05:23:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 15 05.06.2024 05:23 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64095 ФПД: 149905770638274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T052318&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64095&fm=149905770638274&tin=02508201610067®Number=0000000000092737&sum=11500 0 [05:23:18]StoreToDocumentArchive [05:23:18]shift 375 fd 64095 [05:23:18]save to /storage/0375/doc_00064095 [05:23:18]save last doc name /storage/0375/doc_00064095 to /storage/kkm_last_doc_name [05:23:18]save OK [05:23:18]Clear old archive folders... [05:23:18]ProcessDocumentItem done err = 0, tmpTLVsize=280 [05:23:18]tlvbuf is 00FF63C0 [05:23:18]SAM_PROTO_ClearQueue [05:23:18]wFMCommunicate request_size=4 [05:23:18]MH_SAM_APDU [05:23:18]CAPDU: 80 09 00 00 [05:23:18]Write to MH i2c: E2 08 00 D8 0F 80 09 00 00 00 00 00 00 59 [05:23:18]Write i2c OK [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 [05:23:18]MH_I2C_Read... [05:23:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:23:18]Read from MH i2c: E2 03 00 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 03 00 D8 0F 00 90 00 5B [05:23:18]RAPDU: 90 00 [05:23:18]wFMCommunicate OK [05:23:18]SAM_PROTO_ClearQueue done [05:23:18]KKMCreateOFDPacket [05:23:18]OFDProtocolAddRootSTLVToBuf [05:23:18]FM_MakeSignedData [05:23:18]FM_MakeSignedData [05:23:18]SAM_PROTO_SignData [05:23:18]wFMCommunicate request_size=4 [05:23:18]MH_SAM_APDU [05:23:18]CAPDU: 80 0D 01 02 [05:23:18]Write to MH i2c: E2 08 00 D9 0F 80 0D 01 02 00 00 00 00 61 [05:23:18]Write i2c OK [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 [05:23:18]MH_I2C_Read... [05:23:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:23:18]Read from MH i2c: E2 03 00 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 03 00 D9 0F 00 90 00 5C [05:23:18]RAPDU: 90 00 [05:23:18]wFMCommunicate OK [05:23:18]wFMCommunicate request_size=255 [05:23:18]MH_SAM_APDU [05:23:18]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 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 0F 00 00 00 F4 03 04 00 46 F6 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [05:23:18]Write to MH i2c: E2 02 01 DA 0F 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 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 0F 00 00 00 F4 03 04 00 46 F6 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 2C [05:23:18]Write i2c OK [05:23:18]MH_I2C_Read... [05:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:18]Read from MH i2c: E2 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 03 00 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 03 00 DA 0F 00 90 00 5D [05:23:18]RAPDU: 90 00 [05:23:18]wFMCommunicate OK [05:23:18]wFMCommunicate request_size=39 [05:23:18]MH_SAM_APDU [05:23:18]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5F FA 00 00 35 04 06 00 88 56 A8 35 6B C2 [05:23:18]Write to MH i2c: E2 2A 00 DB 0F 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5F FA 00 00 35 04 06 00 88 56 A8 35 6B C2 00 00 5F [05:23:18]Write i2c OK [05:23:18]MH_I2C_Read... [05:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:18]Read from MH i2c: E2 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 03 00 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 03 00 DB 0F 00 90 00 5E [05:23:18]RAPDU: 90 00 [05:23:18]wFMCommunicate OK [05:23:18]wFMCommunicate request_size=4 [05:23:18]MH_SAM_APDU [05:23:18]CAPDU: 80 0D 03 02 [05:23:18]Write to MH i2c: E2 08 00 DC 0F 80 0D 03 02 00 00 00 00 66 [05:23:18]Write i2c OK [05:23:18]MH_I2C_Read... [05:23:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:23:18]Read from MH i2c: E2 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 0B 00 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 0B 00 DC 0F 00 57 46 35 43 56 E3 94 5B 90 00 A4 [05:23:18]RAPDU: 57 46 35 43 56 E3 94 5B 90 00 [05:23:18]wFMCommunicate OK [05:23:18]SAM_PROTO_SignData done [05:23:18]FM_MakeSignedData done [05:23:18]CreateOFDProtocolMessage [05:23:18]wFMCommunicate request_size=4 [05:23:18]MH_SAM_APDU [05:23:18]CAPDU: 80 11 00 00 [05:23:18]Write to MH i2c: E2 08 00 DD 0F 80 11 00 00 00 00 00 00 66 [05:23:18]Write i2c OK [05:23:18]MH_I2C_Read... [05:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:18]Read from MH i2c: E2 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 17 00 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 17 00 DD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B8 [05:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:23:18]wFMCommunicate OK [05:23:18]CreateOFDProtocolMessage done [05:23:18]OFDSenderStorePacket 64095 [05:23:18]StoreOFDPacket docnum=64095 [05:23:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 3F 0E 24 01 4F B7 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 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 0F 00 00 00 F4 03 04 00 46 F6 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5F FA 00 00 35 04 06 00 88 56 A8 35 6B C2 57 46 35 43 56 E3 94 5B [05:23:18]CheckFolder [05:23:18]dirname=/storage/ofd_packets [05:23:18]CheckFolder done [05:23:18]ProducePacketName [05:23:18]name=ofd_packets/00064095 [05:23:18]NVStorageSaveData ofd_packets/00064095 [05:23:18]File name is /storage/ofd_packets/00064095 [05:23:18]Write 330 bytes [05:23:18]NVStorageSaveData done [05:23:18]OFDSenderStorePacket done [05:23:18]KKMCreateOFDPacket done [05:23:18]NVStorageSaveData kkm_last_timestamp [05:23:18]File name is /storage/kkm_last_timestamp [05:23:18]Write 4 bytes [05:23:18]NVStorageSaveData done [05:23:18]ExternCall_PrintAddStr [05:23:18]wPrintStart [05:23:18]Write to MH i2c: 01 00 00 DE 0F ED [05:23:18]Write i2c OK [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: 01 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: 01 07 00 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: 01 07 00 DE 0F 00 00 00 00 00 FF 0F 02 [05:23:18]RasterBufferAndPrint [05:23:18]line Счет N : (3)73634 [05:23:18]line ИНН: 02508201610067 [05:23:18]line Контрольно-Кассовый Чек [05:23:18]line ПРОДАЖА [05:23:18]line Товар: 2000036210013 [05:23:18]line Кофе Капучино (GABB TRADE) [05:23:18]line 1.000 * 115.00 [05:23:18]line = 115.00 [05:23:18]line НДС 12% НСП 1% [05:23:18]line > о реализуемом товаре [05:23:18]line ИТОГО: 115.00 [05:23:18]line НСП 1% : 1.02 [05:23:18]line НДС 12% : 12.21 [05:23:18]line Наличными: 115.00 [05:23:18]line Безнал.: 0.00 [05:23:18]line Место: АЗС № 117 "Партнер Нефть" [05:23:18]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [05:23:18]line СНО: Общий режим [05:23:18]line Чек 15 05.06.2024 05:23 [05:23:18]line Смена: 375 ФФД: 1.0 [05:23:18]line ЗНМ: 0300000031 [05:23:18]line РНМ: 0000000000092737 [05:23:18]line Версия ККМ: 001 [05:23:18]line ФМ: 0000000000875074 [05:23:18]line ФД: 64095 [05:23:18]line ФПД: 149905770638274 [05:23:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T052318&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64095&fm=149905770638274&tin=02508201610067®Number=0000000000092737&sum=11500 [05:23:18]line 0 [05:23:18]OFD Sender: Processing packet 64095 [packets to send 14, broken 13] [05:23:18]ProducePacketName [05:23:18]name=ofd_packets/00064095 [05:23:18]OFD Sender: To server: pG, [05:23:18]CommunicateWithHost lk.salyk.kg:30040 [05:23:18]ConnectInit lk.salyk.kg [05:23:18]written 0, free lines is 4095 [05:23:19]Connected sock=10 [05:23:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 3F 0E 24 01 4F B7 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 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 0F 00 00 00 F4 03 04 00 46 F6 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5F FA 00 00 35 04 06 00 88 56 A8 35 6B C2 57 46 35 43 56 E3 94 5B [05:23:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 68 91 47 00 05 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5F FA 00 00 F4 03 04 00 53 A2 5F 66 B6 04 01 00 00 61 87 35 08 50 A8 96 5D [05:23:19]CommunicateWithHost err = 0 [05:23:19]CheckOFDResponse [05:23:19]1017 (14) - 77093643461234 [05:23:19]1041 (16) - 0000000000875074 [05:23:19]1040 (4) - 64095 [05:23:19]1012 (4) - 04.06.2024 23:25 [05:23:19]1206 (1) - 0 [05:23:19]OFD Sender: Remove packet 64095 [05:23:19]ProducePacketName [05:23:19]name=ofd_packets/00064095 [05:23:19]NVStorageDeleteData [05:23:19]Write to MH i2c: 01 00 00 06 10 16 [05:23:19]Write i2c OK [05:23:19]MH_I2C_Read... [05:23:19]Read from MH i2c: 01 [05:23:19]MH_I2C_Read... [05:23:19]Read from MH i2c: 01 07 00 [05:23:19]MH_I2C_Read... [05:23:19]Read from MH i2c: 01 07 00 06 10 00 00 00 00 00 F3 0C 1C [05:23:19]RasterBufferAndPrint [05:23:19]line [05:23:19]line [05:23:19]line [05:23:19]line [05:23:19]line [05:23:19]written 0, free lines is 3322 [05:23:19]MH_Cut [05:23:19]Write to MH i2c: D1 01 00 0D 10 01 EF [05:23:19]Write i2c OK [05:23:19]MH_I2C_Read... [05:23:19]Read from MH i2c: D1 [05:23:19]MH_I2C_Read... [05:23:19]Read from MH i2c: D1 01 00 [05:23:19]MH_I2C_Read... [05:23:19]Read from MH i2c: D1 01 00 0D 10 00 EE [05:23:19]Write to MH i2c: 01 00 00 0E 10 1E [05:23:19]Write i2c OK [05:23:19]MH_I2C_Read... [05:23:19]OFD Sender: No OFD packet to send [05:23:20]*** Cut start [05:23:20]*** Partial cut [05:23:20]*** CUTSNS_PIN = 1 [05:23:20]*** CUTSNS_PIN = 0 [05:23:20]*** Brake cut motor [05:23:20]Read from MH i2c: 01 [05:23:20]MH_I2C_Read... [05:23:20]*** Stop cut motor [05:23:20]*** Cut end [05:23:20]Read from MH i2c: 01 07 00 [05:23:20]MH_I2C_Read... [05:23:20]Read from MH i2c: 01 07 00 0E 10 00 00 00 00 00 FF 0F 33 [05:23:20]process_action close_receipt done [05:23:20]requested_data is exist [05:23:20]produce_requested_data [05:23:20]requested_item fm.sn is exist - process it [05:23:20]wFMCommunicate request_size=4 [05:23:20]MH_SAM_APDU [05:23:20]CAPDU: 80 11 00 00 [05:23:20]Write to MH i2c: E2 08 00 0F 10 80 11 00 00 00 00 00 00 99 [05:23:20]Write i2c OK [05:23:20]MH_I2C_Read... [05:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:20]Read from MH i2c: E2 [05:23:20]MH_I2C_Read... [05:23:20]Read from MH i2c: E2 17 00 [05:23:20]MH_I2C_Read... [05:23:20]Read from MH i2c: E2 17 00 0F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EB [05:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:23:20]wFMCommunicate OK [05:23:20]requested_item fd.num is exist - process it [05:23:20]SAM_PROTO_GetFieldsCounters [05:23:20]wFMCommunicate request_size=4 [05:23:20]MH_SAM_APDU [05:23:20]CAPDU: 80 13 00 00 [05:23:20]Write to MH i2c: E2 08 00 10 10 80 13 00 00 00 00 00 00 9C [05:23:20]Write i2c OK [05:23:20]MH_I2C_Read... [05:23:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:23:21]Read from MH i2c: E2 [05:23:21]MH_I2C_Read... [05:23:21]Read from MH i2c: E2 62 00 [05:23:21]MH_I2C_Read... [05:23:21]Read from MH i2c: E2 62 00 10 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5F FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [05:23:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5F FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:23:21]wFMCommunicate OK [05:23:21]SAM_PROTO_GetFieldsCounters done [05:23:21]requested_item shift.num is exist - process it [05:23:21]requested_item shift.opened is exist - process it [05:23:21]req_shift_opened [05:23:21]FM_GetShiftState [05:23:21]SAM_PROTO_GetShiftState [05:23:21]wFMCommunicate request_size=4 [05:23:21]MH_SAM_APDU [05:23:21]CAPDU: 80 13 01 00 [05:23:21]Write to MH i2c: E2 08 00 11 10 80 13 01 00 00 00 00 00 9E [05:23:21]Write i2c OK [05:23:21]MH_I2C_Read... [05:23:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:23:21]Read from MH i2c: E2 [05:23:21]MH_I2C_Read... [05:23:21]Read from MH i2c: E2 0E 00 [05:23:21]MH_I2C_Read... [05:23:21]Read from MH i2c: E2 0E 00 11 10 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 DF [05:23:21]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [05:23:21]wFMCommunicate OK [05:23:21]SAM_PROTO_GetShiftState done [05:23:21]FM_GetShiftState done [05:23:21]req_shift_opened done [05:23:21]requested_item shift.open_date is exist - process it [05:23:21]req_shift_open_date [05:23:21]req_shift_open_date done [05:23:21]produce_requested_data done [05:23:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64095,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [05:23:21]process_action_free close_receipt [05:23:21]json_value_free [05:23:21]json_value_free done [05:23:21]process_json_proto returns [05:23:21]Send response to host [05:23:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64095,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [05:23:21]free response buf [05:23:21]execute_script done [05:23:21]execute_script returns [05:23:21]free content buf [05:23:21]Sock 8.Close socket [05:23:21]Sock 8.Thread stoped [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:39]accept exits with 9 [05:26:39]New connection [05:26:39]New thread 3067133284 created [05:26:39]Thread 3067276644 joined [05:26:39]Waiting for new connection... [05:26:39] Sock 9.Parse request [05:26:39]Sock 9.Check first char [05:26:39]Sock 9.First char is OK [05:26:39]request: POST /json_proto HTTP/1.0 [05:26:39]Method: POST [05:26:39]URL: /json_proto [05:26:39]Method is POST - this is cgi request [05:26:39]url: /json_proto [05:26:39]query_string will be loaded in cgi processing [05:26:39]execute_cgi json_proto POST (null) [05:26:39]execute_cgi path=json_proto method=POST [05:26:39]POST find Content-Length [05:26:39]Host: 172.17.60.69:8080 [05:26:39]Content-Length: 669 [05:26:39]Content-Type: application/json [05:26:39] [05:26:39]POST finish read [05:26:39]Found Content-Length = 669 [05:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73635", "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 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:26:39]execute_script... [05:26: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)73635", "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 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:26:39]POST & json_proto [05:26:39]process_json_proto [05:26:39]json parsed OK: [05:26:39]protocol is kg_v1.0 [05:26:39]action value=close_receipt [05:26:39]process_action close_receipt [05:26:39]cmd_close_receipt [05:26:39]MH_GetDate [05:26:39]Write to MH i2c: F0 00 00 12 10 11 [05:26:39]Write i2c OK [05:26:39]MH_I2C_Read... [05:26:39]Read from MH i2c: F0 [05:26:39]MH_I2C_Read... [05:26:39]Read from MH i2c: F0 09 00 [05:26:39]MH_I2C_Read... [05:26:39]Read from MH i2c: F0 09 00 12 10 00 11 F7 5F 66 D2 83 5F 66 01 [05:26:39]GetLastDocTimeStamp 1717564998 [05:26:39]current date 1717565201 [05:26:39]FM_GetShiftState [05:26:39]SAM_PROTO_GetShiftState [05:26:39]wFMCommunicate request_size=4 [05:26:39]MH_SAM_APDU [05:26:39]CAPDU: 80 13 01 00 [05:26:39]Write to MH i2c: E2 08 00 13 10 80 13 01 00 00 00 00 00 A0 [05:26:39]Write i2c OK [05:26:39]MH_I2C_Read... [05:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:26:40]Read from MH i2c: E2 [05:26:40]MH_I2C_Read... [05:26:40]Read from MH i2c: E2 0E 00 [05:26:40]MH_I2C_Read... [05:26:40]Read from MH i2c: E2 0E 00 13 10 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 E1 [05:26:40]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [05:26:40]wFMCommunicate OK [05:26:40]SAM_PROTO_GetShiftState done [05:26:40]FM_GetShiftState done [05:26:40]opened in 1717545925 [05:26:40]opened+sec_in_day 1717632325 [05:26:40]quantity*price = 34000 [05:26:40]sum+1 = 34001 [05:26:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.01 НДС 12% : 36.11 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 16 05.06.2024 05:26 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64096 ФПД: 122644454632082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T052641&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64096&fm=122644454632082&tin=02508201610067®Number=0000000000092737&sum=34000 0 [05:26:41]StoreToDocumentArchive [05:26:41]shift 375 fd 64096 [05:26:41]save to /storage/0375/doc_00064096 [05:26:41]save last doc name /storage/0375/doc_00064096 to /storage/kkm_last_doc_name [05:26:41]save OK [05:26:41]Clear old archive folders... [05:26:41]ProcessDocumentItem done err = 0, tmpTLVsize=282 [05:26:41]tlvbuf is 0110C480 [05:26:41]SAM_PROTO_ClearQueue [05:26:41]wFMCommunicate request_size=4 [05:26:41]MH_SAM_APDU [05:26:41]CAPDU: 80 09 00 00 [05:26:41]Write to MH i2c: E2 08 00 20 10 80 09 00 00 00 00 00 00 A2 [05:26:41]Write i2c OK [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 [05:26:41]MH_I2C_Read... [05:26:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:26:41]Read from MH i2c: E2 03 00 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 03 00 20 10 00 90 00 A4 [05:26:41]RAPDU: 90 00 [05:26:41]wFMCommunicate OK [05:26:41]SAM_PROTO_ClearQueue done [05:26:41]KKMCreateOFDPacket [05:26:41]OFDProtocolAddRootSTLVToBuf [05:26:41]FM_MakeSignedData [05:26:41]FM_MakeSignedData [05:26:41]SAM_PROTO_SignData [05:26:41]wFMCommunicate request_size=4 [05:26:41]MH_SAM_APDU [05:26:41]CAPDU: 80 0D 01 02 [05:26:41]Write to MH i2c: E2 08 00 21 10 80 0D 01 02 00 00 00 00 AA [05:26:41]Write i2c OK [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 [05:26:41]MH_I2C_Read... [05:26:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:26:41]Read from MH i2c: E2 03 00 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 03 00 21 10 00 90 00 A5 [05:26:41]RAPDU: 90 00 [05:26:41]wFMCommunicate OK [05:26:41]wFMCommunicate request_size=255 [05:26:41]MH_SAM_APDU [05:26:41]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 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 10 00 00 00 F4 03 04 00 11 F7 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [05:26:41]Write to MH i2c: E2 02 01 22 10 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 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 10 00 00 00 F4 03 04 00 11 F7 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 A7 [05:26:41]Write i2c OK [05:26:41]MH_I2C_Read... [05:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:26:41]Read from MH i2c: E2 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 03 00 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 03 00 22 10 00 90 00 A6 [05:26:41]RAPDU: 90 00 [05:26:41]wFMCommunicate OK [05:26:41]wFMCommunicate request_size=41 [05:26:41]MH_SAM_APDU [05:26:41]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 60 FA 00 00 35 04 06 00 6F 8B 63 26 EA 92 [05:26:41]Write to MH i2c: E2 2C 00 23 10 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 60 FA 00 00 35 04 06 00 6F 8B 63 26 EA 92 00 00 D4 [05:26:41]Write i2c OK [05:26:41]MH_I2C_Read... [05:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:26:41]Read from MH i2c: E2 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 03 00 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 03 00 23 10 00 90 00 A7 [05:26:41]RAPDU: 90 00 [05:26:41]wFMCommunicate OK [05:26:41]wFMCommunicate request_size=4 [05:26:41]MH_SAM_APDU [05:26:41]CAPDU: 80 0D 03 02 [05:26:41]Write to MH i2c: E2 08 00 24 10 80 0D 03 02 00 00 00 00 AF [05:26:41]Write i2c OK [05:26:41]MH_I2C_Read... [05:26:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:26:41]Read from MH i2c: E2 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 0B 00 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 0B 00 24 10 00 85 0B DD DC 95 C4 B3 5D 90 00 62 [05:26:41]RAPDU: 85 0B DD DC 95 C4 B3 5D 90 00 [05:26:41]wFMCommunicate OK [05:26:41]SAM_PROTO_SignData done [05:26:41]FM_MakeSignedData done [05:26:41]CreateOFDProtocolMessage [05:26:41]wFMCommunicate request_size=4 [05:26:41]MH_SAM_APDU [05:26:41]CAPDU: 80 11 00 00 [05:26:41]Write to MH i2c: E2 08 00 25 10 80 11 00 00 00 00 00 00 AF [05:26:41]Write i2c OK [05:26:41]MH_I2C_Read... [05:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:26:41]Read from MH i2c: E2 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 17 00 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: E2 17 00 25 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 01 [05:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:26:41]wFMCommunicate OK [05:26:41]CreateOFDProtocolMessage done [05:26:41]OFDSenderStorePacket 64096 [05:26:41]StoreOFDPacket docnum=64096 [05:26:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 56 11 26 01 30 42 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 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 10 00 00 00 F4 03 04 00 11 F7 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 60 FA 00 00 35 04 06 00 6F 8B 63 26 EA 92 85 0B DD DC 95 C4 B3 5D [05:26:41]CheckFolder [05:26:41]dirname=/storage/ofd_packets [05:26:41]CheckFolder done [05:26:41]ProducePacketName [05:26:41]name=ofd_packets/00064096 [05:26:41]NVStorageSaveData ofd_packets/00064096 [05:26:41]File name is /storage/ofd_packets/00064096 [05:26:41]Write 332 bytes [05:26:41]NVStorageSaveData done [05:26:41]OFDSenderStorePacket done [05:26:41]KKMCreateOFDPacket done [05:26:41]NVStorageSaveData kkm_last_timestamp [05:26:41]File name is /storage/kkm_last_timestamp [05:26:41]Write 4 bytes [05:26:41]NVStorageSaveData done [05:26:41]ExternCall_PrintAddStr [05:26:41]wPrintStart [05:26:41]Write to MH i2c: 01 00 00 26 10 36 [05:26:41]Write i2c OK [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: 01 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: 01 07 00 [05:26:41]MH_I2C_Read... [05:26:41]Read from MH i2c: 01 07 00 26 10 00 00 00 00 00 FF 0F 4B [05:26:41]RasterBufferAndPrint [05:26:41]line Счет N : (3)73635 [05:26:41]line ИНН: 02508201610067 [05:26:41]line Контрольно-Кассовый Чек [05:26:41]line ПРОДАЖА [05:26:41]line Товар: 4700000480357 [05:26:41]line Пиво шахтерское 1л ПЭТ [05:26:41]line 2.000 * 170.00 [05:26:41]line = 340.00 [05:26:41]line НДС 12% НСП 1% [05:26:41]line > о реализуемом товаре [05:26:41]line ИТОГО: 340.00 [05:26:41]line НСП 1% : 3.01 [05:26:41]line НДС 12% : 36.11 [05:26:41]line Наличными: 340.00 [05:26:41]line Безнал.: 0.00 [05:26:41]line Место: АЗС № 117 "Партнер Нефть" [05:26:41]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [05:26:41]line СНО: Общий режим [05:26:41]line Чек 16 05.06.2024 05:26 [05:26:41]line Смена: 375 ФФД: 1.0 [05:26:41]line ЗНМ: 0300000031 [05:26:41]line РНМ: 0000000000092737 [05:26:41]line Версия ККМ: 001 [05:26:41]line ФМ: 0000000000875074 [05:26:41]line ФД: 64096 [05:26:41]line ФПД: 122644454632082 [05:26:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T052641&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64096&fm=122644454632082&tin=02508201610067®Number=0000000000092737&sum=34000 [05:26:42]line 0 [05:26:42]OFD Sender: Processing packet 64096 [packets to send 14, broken 13] [05:26:42]ProducePacketName [05:26:42]name=ofd_packets/00064096 [05:26:42]OFD Sender: To server: pG, [05:26:42]CommunicateWithHost lk.salyk.kg:30040 [05:26:42]ConnectInit lk.salyk.kg [05:26:42]written 0, free lines is 4095 [05:26:42]Connected sock=10 [05:26:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 56 11 26 01 30 42 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 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 10 00 00 00 F4 03 04 00 11 F7 5F 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 60 FA 00 00 35 04 06 00 6F 8B 63 26 EA 92 85 0B DD DC 95 C4 B3 5D [05:26:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 CB A8 47 00 2F B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 60 FA 00 00 F4 03 04 00 1E A3 5F 66 B6 04 01 00 00 BA 1A 9D 76 C2 C4 E2 E3 [05:26:42]CommunicateWithHost err = 0 [05:26:42]CheckOFDResponse [05:26:42]1017 (14) - 77093643461234 [05:26:42]1041 (16) - 0000000000875074 [05:26:42]1040 (4) - 64096 [05:26:42]1012 (4) - 04.06.2024 23:28 [05:26:42]1206 (1) - 0 [05:26:42]OFD Sender: Remove packet 64096 [05:26:42]ProducePacketName [05:26:42]name=ofd_packets/00064096 [05:26:42]NVStorageDeleteData [05:26:42]Write to MH i2c: 01 00 00 4E 10 5E [05:26:42]Write i2c OK [05:26:42]MH_I2C_Read... [05:26:42]Read from MH i2c: 01 [05:26:42]MH_I2C_Read... [05:26:42]Read from MH i2c: 01 07 00 [05:26:42]MH_I2C_Read... [05:26:42]Read from MH i2c: 01 07 00 4E 10 00 00 00 00 00 FA 0C 6B [05:26:42]RasterBufferAndPrint [05:26:42]line [05:26:42]line [05:26:42]line [05:26:42]line [05:26:42]line [05:26:42]written 0, free lines is 3328 [05:26:42]MH_Cut [05:26:42]Write to MH i2c: D1 01 00 55 10 01 37 [05:26:42]Write i2c OK [05:26:42]MH_I2C_Read... [05:26:42]Read from MH i2c: D1 [05:26:42]MH_I2C_Read... [05:26:42]Read from MH i2c: D1 01 00 [05:26:42]MH_I2C_Read... [05:26:42]Read from MH i2c: D1 01 00 55 10 00 36 [05:26:42]Write to MH i2c: 01 00 00 56 10 66 [05:26:42]Write i2c OK [05:26:42]MH_I2C_Read... [05:26:42]OFD Sender: No OFD packet to send [05:26:43]*** Cut start [05:26:43]*** Partial cut [05:26:43]*** CUTSNS_PIN = 1 [05:26:43]*** CUTSNS_PIN = 0 [05:26:43]*** Brake cut motor [05:26:43]Read from MH i2c: 01 [05:26:43]MH_I2C_Read... [05:26:43]*** Stop cut motor [05:26:43]*** Cut end [05:26:43]Read from MH i2c: 01 07 00 [05:26:43]MH_I2C_Read... [05:26:43]Read from MH i2c: 01 07 00 56 10 00 00 00 00 00 FF 0F 7B [05:26:43]process_action close_receipt done [05:26:43]requested_data is exist [05:26:43]produce_requested_data [05:26:43]requested_item fm.sn is exist - process it [05:26:43]wFMCommunicate request_size=4 [05:26:43]MH_SAM_APDU [05:26:43]CAPDU: 80 11 00 00 [05:26:43]Write to MH i2c: E2 08 00 57 10 80 11 00 00 00 00 00 00 E1 [05:26:43]Write i2c OK [05:26:43]MH_I2C_Read... [05:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:26:43]Read from MH i2c: E2 [05:26:43]MH_I2C_Read... [05:26:43]Read from MH i2c: E2 17 00 [05:26:43]MH_I2C_Read... [05:26:43]Read from MH i2c: E2 17 00 57 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 33 [05:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:26:43]wFMCommunicate OK [05:26:43]requested_item fd.num is exist - process it [05:26:43]SAM_PROTO_GetFieldsCounters [05:26:43]wFMCommunicate request_size=4 [05:26:43]MH_SAM_APDU [05:26:43]CAPDU: 80 13 00 00 [05:26:43]Write to MH i2c: E2 08 00 58 10 80 13 00 00 00 00 00 00 E4 [05:26:43]Write i2c OK [05:26:43]MH_I2C_Read... [05:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:26:44]Read from MH i2c: E2 [05:26:44]MH_I2C_Read... [05:26:44]Read from MH i2c: E2 62 00 [05:26:44]MH_I2C_Read... [05:26:44]Read from MH i2c: E2 62 00 58 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 60 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [05:26:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 60 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:26:44]wFMCommunicate OK [05:26:44]SAM_PROTO_GetFieldsCounters done [05:26:44]requested_item shift.num is exist - process it [05:26:44]requested_item shift.opened is exist - process it [05:26:44]req_shift_opened [05:26:44]FM_GetShiftState [05:26:44]SAM_PROTO_GetShiftState [05:26:44]wFMCommunicate request_size=4 [05:26:44]MH_SAM_APDU [05:26:44]CAPDU: 80 13 01 00 [05:26:44]Write to MH i2c: E2 08 00 59 10 80 13 01 00 00 00 00 00 E6 [05:26:44]Write i2c OK [05:26:44]MH_I2C_Read... [05:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:26:44]Read from MH i2c: E2 [05:26:44]MH_I2C_Read... [05:26:44]Read from MH i2c: E2 0E 00 [05:26:44]MH_I2C_Read... [05:26:44]Read from MH i2c: E2 0E 00 59 10 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 27 [05:26:44]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [05:26:44]wFMCommunicate OK [05:26:44]SAM_PROTO_GetShiftState done [05:26:44]FM_GetShiftState done [05:26:44]req_shift_opened done [05:26:44]requested_item shift.open_date is exist - process it [05:26:44]req_shift_open_date [05:26:44]req_shift_open_date done [05:26:44]produce_requested_data done [05:26:44]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64096,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [05:26:44]process_action_free close_receipt [05:26:44]json_value_free [05:26:44]json_value_free done [05:26:44]process_json_proto returns [05:26:44]Send response to host [05:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64096,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [05:26:44]free response buf [05:26:44]execute_script done [05:26:44]execute_script returns [05:26:44]free content buf [05:26:44]Sock 9.Close socket [05:26:44]Sock 9.Thread stoped [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:26]accept exits with 8 [06:10:26]New connection [06:10:26]New thread 3067276644 created [06:10:26]Thread 3067133284 joined [06:10:26]Waiting for new connection... [06:10:26] Sock 8.Parse request [06:10:26]Sock 8.Check first char [06:10:26]Sock 8.First char is OK [06:10:26]request: POST /json_proto HTTP/1.0 [06:10:26]Method: POST [06:10:26]URL: /json_proto [06:10:26]Method is POST - this is cgi request [06:10:26]url: /json_proto [06:10:26]query_string will be loaded in cgi processing [06:10:26]execute_cgi json_proto POST (null) [06:10:26]execute_cgi path=json_proto method=POST [06:10:26]POST find Content-Length [06:10:26]Host: 172.17.60.69:8080 [06:10:26]Content-Length: 584 [06:10:26]Content-Type: application/json [06:10:26] [06:10:26]POST finish read [06:10:26]Found Content-Length = 584 [06:10:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73636", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "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" ] } } [06:10:26]execute_script... [06:10:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73636", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "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" ] } } [06:10:26]POST & json_proto [06:10:26]process_json_proto [06:10:26]json parsed OK: [06:10:26]protocol is kg_v1.0 [06:10:26]action value=close_receipt [06:10:26]process_action close_receipt [06:10:26]cmd_close_receipt [06:10:26]MH_GetDate [06:10:26]Write to MH i2c: F0 00 00 5A 10 59 [06:10:26]Write i2c OK [06:10:26]MH_I2C_Read... [06:10:26]Read from MH i2c: F0 [06:10:26]MH_I2C_Read... [06:10:26]Read from MH i2c: F0 09 00 [06:10:26]MH_I2C_Read... [06:10:26]Read from MH i2c: F0 09 00 5A 10 00 54 01 60 66 D2 83 5F 66 97 [06:10:26]GetLastDocTimeStamp 1717565201 [06:10:26]current date 1717567828 [06:10:26]FM_GetShiftState [06:10:26]SAM_PROTO_GetShiftState [06:10:26]wFMCommunicate request_size=4 [06:10:26]MH_SAM_APDU [06:10:26]CAPDU: 80 13 01 00 [06:10:26]Write to MH i2c: E2 08 00 5B 10 80 13 01 00 00 00 00 00 E8 [06:10:26]Write i2c OK [06:10:26]MH_I2C_Read... [06:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:26]Read from MH i2c: E2 [06:10:26]MH_I2C_Read... [06:10:26]Read from MH i2c: E2 0E 00 [06:10:26]MH_I2C_Read... [06:10:26]Read from MH i2c: E2 0E 00 5B 10 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 29 [06:10:26]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [06:10:26]wFMCommunicate OK [06:10:26]SAM_PROTO_GetShiftState done [06:10:26]FM_GetShiftState done [06:10:26]opened in 1717545925 [06:10:26]opened+sec_in_day 1717632325 [06:10:26]quantity*price = 4500 [06:10:26]sum+1 = 4501 [06:10:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 17 05.06.2024 06:10 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64097 ФПД: 178636175415242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T061029&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64097&fm=178636175415242&tin=02508201610067®Number=0000000000092737&sum=4500 0 [06:10:28]StoreToDocumentArchive [06:10:28]shift 375 fd 64097 [06:10:28]save to /storage/0375/doc_00064097 [06:10:28]save last doc name /storage/0375/doc_00064097 to /storage/kkm_last_doc_name [06:10:28]save OK [06:10:28]Clear old archive folders... [06:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=260 [06:10:28]tlvbuf is 00FF63C0 [06:10:28]SAM_PROTO_ClearQueue [06:10:28]wFMCommunicate request_size=4 [06:10:28]MH_SAM_APDU [06:10:28]CAPDU: 80 09 00 00 [06:10:28]Write to MH i2c: E2 08 00 68 10 80 09 00 00 00 00 00 00 EA [06:10:28]Write i2c OK [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: E2 [06:10:28]MH_I2C_Read... [06:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:10:28]Read from MH i2c: E2 03 00 [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: E2 03 00 68 10 00 90 00 EC [06:10:28]RAPDU: 90 00 [06:10:28]wFMCommunicate OK [06:10:28]SAM_PROTO_ClearQueue done [06:10:28]KKMCreateOFDPacket [06:10:28]OFDProtocolAddRootSTLVToBuf [06:10:28]FM_MakeSignedData [06:10:28]FM_MakeSignedData [06:10:28]SAM_PROTO_SignData [06:10:28]wFMCommunicate request_size=4 [06:10:28]MH_SAM_APDU [06:10:28]CAPDU: 80 0D 01 02 [06:10:28]Write to MH i2c: E2 08 00 69 10 80 0D 01 02 00 00 00 00 F2 [06:10:28]Write i2c OK [06:10:28]MH_I2C_Read... [06:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:10:28]Read from MH i2c: E2 [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: E2 03 00 [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: E2 03 00 69 10 00 90 00 ED [06:10:28]RAPDU: 90 00 [06:10:28]wFMCommunicate OK [06:10:28]wFMCommunicate request_size=255 [06:10:28]MH_SAM_APDU [06:10:28]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 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 11 00 00 00 F4 03 04 00 55 01 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 [06:10:28]Write to MH i2c: E2 02 01 6A 10 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 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 11 00 00 00 F4 03 04 00 55 01 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 00 00 A5 [06:10:28]Write i2c OK [06:10:28]MH_I2C_Read... [06:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:28]Read from MH i2c: E2 [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: E2 03 00 [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: E2 03 00 6A 10 00 90 00 EE [06:10:28]RAPDU: 90 00 [06:10:28]wFMCommunicate OK [06:10:28]wFMCommunicate request_size=19 [06:10:28]MH_SAM_APDU [06:10:28]CAPDU: 80 0D 02 02 0E 61 FA 00 00 35 04 06 00 A2 77 F9 C7 97 CA [06:10:28]Write to MH i2c: E2 16 00 6B 10 80 0D 02 02 0E 00 61 FA 00 00 35 04 06 00 A2 77 F9 C7 97 CA 00 00 E5 [06:10:28]Write i2c OK [06:10:28]MH_I2C_Read... [06:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:28]Read from MH i2c: E2 [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: E2 03 00 [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: E2 03 00 6B 10 00 90 00 EF [06:10:28]RAPDU: 90 00 [06:10:28]wFMCommunicate OK [06:10:28]wFMCommunicate request_size=4 [06:10:28]MH_SAM_APDU [06:10:28]CAPDU: 80 0D 03 02 [06:10:28]Write to MH i2c: E2 08 00 6C 10 80 0D 03 02 00 00 00 00 F7 [06:10:28]Write i2c OK [06:10:28]MH_I2C_Read... [06:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:10:28]Read from MH i2c: E2 [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: E2 0B 00 [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: E2 0B 00 6C 10 00 D2 F3 EF C7 BE 5C C3 A1 90 00 F1 [06:10:28]RAPDU: D2 F3 EF C7 BE 5C C3 A1 90 00 [06:10:28]wFMCommunicate OK [06:10:28]SAM_PROTO_SignData done [06:10:28]FM_MakeSignedData done [06:10:28]CreateOFDProtocolMessage [06:10:28]wFMCommunicate request_size=4 [06:10:28]MH_SAM_APDU [06:10:28]CAPDU: 80 11 00 00 [06:10:28]Write to MH i2c: E2 08 00 6D 10 80 11 00 00 00 00 00 00 F7 [06:10:28]Write i2c OK [06:10:28]MH_I2C_Read... [06:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:28]Read from MH i2c: E2 [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: E2 17 00 [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: E2 17 00 6D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 49 [06:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:10:28]wFMCommunicate OK [06:10:28]CreateOFDProtocolMessage done [06:10:28]OFDSenderStorePacket 64097 [06:10:28]StoreOFDPacket docnum=64097 [06:10:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 18 01 00 00 34 7C 10 01 F0 48 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 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 11 00 00 00 F4 03 04 00 55 01 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 61 FA 00 00 35 04 06 00 A2 77 F9 C7 97 CA D2 F3 EF C7 BE 5C C3 A1 [06:10:28]CheckFolder [06:10:28]dirname=/storage/ofd_packets [06:10:28]CheckFolder done [06:10:28]ProducePacketName [06:10:28]name=ofd_packets/00064097 [06:10:28]NVStorageSaveData ofd_packets/00064097 [06:10:28]File name is /storage/ofd_packets/00064097 [06:10:28]Write 310 bytes [06:10:28]NVStorageSaveData done [06:10:28]OFDSenderStorePacket done [06:10:28]KKMCreateOFDPacket done [06:10:28]NVStorageSaveData kkm_last_timestamp [06:10:28]File name is /storage/kkm_last_timestamp [06:10:28]Write 4 bytes [06:10:28]NVStorageSaveData done [06:10:28]ExternCall_PrintAddStr [06:10:28]wPrintStart [06:10:28]Write to MH i2c: 01 00 00 6E 10 7E [06:10:28]Write i2c OK [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: 01 [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: 01 07 00 [06:10:28]MH_I2C_Read... [06:10:28]Read from MH i2c: 01 07 00 6E 10 00 00 00 00 00 FF 0F 93 [06:10:28]RasterBufferAndPrint [06:10:28]line Счет N : (3)73636 [06:10:28]line ИНН: 02508201610067 [06:10:28]line Контрольно-Кассовый Чек [06:10:28]line ПРОДАЖА [06:10:28]line Товар: 50173808 [06:10:28]line Жев Orbit Sweet Mint [06:10:28]line 1.000 * 45.00 [06:10:28]line = 45.00 [06:10:28]line НДС 12% НСП 1% [06:10:28]line > о реализуемом товаре [06:10:28]line ИТОГО: 45.00 [06:10:28]line НСП 1% : 0.40 [06:10:28]line НДС 12% : 4.78 [06:10:28]line Наличными: 45.00 [06:10:28]line Безнал.: 0.00 [06:10:28]line Место: АЗС № 117 "Партнер Нефть" [06:10:28]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [06:10:28]line СНО: Общий режим [06:10:28]line Чек 17 05.06.2024 06:10 [06:10:28]line Смена: 375 ФФД: 1.0 [06:10:28]line ЗНМ: 0300000031 [06:10:28]line РНМ: 0000000000092737 [06:10:28]line Версия ККМ: 001 [06:10:28]line ФМ: 0000000000875074 [06:10:28]line ФД: 64097 [06:10:28]line ФПД: 178636175415242 [06:10:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T061029&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64097&fm=178636175415242&tin=02508201610067®Number=0000000000092737&sum=4500 [06:10:28]OFD Sender: Processing packet 64097 [packets to send 14, broken 13] [06:10:28]ProducePacketName [06:10:28]name=ofd_packets/00064097 [06:10:28]OFD Sender: To server: pG, [06:10:28]CommunicateWithHost lk.salyk.kg:30040 [06:10:28]ConnectInit lk.salyk.kg [06:10:28]line 0 [06:10:28]written 0, free lines is 4095 [06:10:29]Connected sock=10 [06:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 18 01 00 00 34 7C 10 01 F0 48 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 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 11 00 00 00 F4 03 04 00 55 01 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 61 FA 00 00 35 04 06 00 A2 77 F9 C7 97 CA D2 F3 EF C7 BE 5C C3 A1 [06:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D8 E1 47 00 EB D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 61 FA 00 00 F4 03 04 00 61 AD 5F 66 B6 04 01 00 00 EF A1 80 AD 0B 93 4E 96 [06:10:29]CommunicateWithHost err = 0 [06:10:29]CheckOFDResponse [06:10:29]1017 (14) - 77093643461234 [06:10:29]1041 (16) - 0000000000875074 [06:10:29]1040 (4) - 64097 [06:10:29]1012 (4) - 05.06.2024 00:12 [06:10:29]1206 (1) - 0 [06:10:29]OFD Sender: Remove packet 64097 [06:10:29]ProducePacketName [06:10:29]name=ofd_packets/00064097 [06:10:29]NVStorageDeleteData [06:10:29]Write to MH i2c: 01 00 00 96 10 A6 [06:10:29]Write i2c OK [06:10:29]MH_I2C_Read... [06:10:29]Read from MH i2c: 01 [06:10:29]MH_I2C_Read... [06:10:29]Read from MH i2c: 01 07 00 [06:10:29]MH_I2C_Read... [06:10:29]Read from MH i2c: 01 07 00 96 10 00 00 00 00 00 04 0D BE [06:10:29]RasterBufferAndPrint [06:10:29]line [06:10:29]line [06:10:29]line [06:10:29]line [06:10:29]line [06:10:29]written 0, free lines is 3339 [06:10:29]MH_Cut [06:10:29]Write to MH i2c: D1 01 00 9D 10 01 7F [06:10:29]Write i2c OK [06:10:29]MH_I2C_Read... [06:10:29]Read from MH i2c: D1 [06:10:29]MH_I2C_Read... [06:10:29]Read from MH i2c: D1 01 00 [06:10:29]MH_I2C_Read... [06:10:29]Read from MH i2c: D1 01 00 9D 10 00 7E [06:10:29]Write to MH i2c: 01 00 00 9E 10 AE [06:10:29]Write i2c OK [06:10:29]MH_I2C_Read... [06:10:29]OFD Sender: No OFD packet to send [06:10:30]*** Cut start [06:10:30]*** Partial cut [06:10:30]*** CUTSNS_PIN = 1 [06:10:30]*** CUTSNS_PIN = 0 [06:10:30]*** Brake cut motor [06:10:30]Read from MH i2c: 01 [06:10:30]MH_I2C_Read... [06:10:30]*** Stop cut motor [06:10:30]*** Cut end [06:10:30]Read from MH i2c: 01 07 00 [06:10:30]MH_I2C_Read... [06:10:30]Read from MH i2c: 01 07 00 9E 10 00 00 00 00 00 FF 0F C3 [06:10:30]process_action close_receipt done [06:10:30]requested_data is exist [06:10:30]produce_requested_data [06:10:30]requested_item fm.sn is exist - process it [06:10:30]wFMCommunicate request_size=4 [06:10:30]MH_SAM_APDU [06:10:30]CAPDU: 80 11 00 00 [06:10:30]Write to MH i2c: E2 08 00 9F 10 80 11 00 00 00 00 00 00 29 [06:10:30]Write i2c OK [06:10:30]MH_I2C_Read... [06:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:30]Read from MH i2c: E2 [06:10:30]MH_I2C_Read... [06:10:30]Read from MH i2c: E2 17 00 [06:10:30]MH_I2C_Read... [06:10:30]Read from MH i2c: E2 17 00 9F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7B [06:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:10:30]wFMCommunicate OK [06:10:30]requested_item fd.num is exist - process it [06:10:30]SAM_PROTO_GetFieldsCounters [06:10:30]wFMCommunicate request_size=4 [06:10:30]MH_SAM_APDU [06:10:30]CAPDU: 80 13 00 00 [06:10:30]Write to MH i2c: E2 08 00 A0 10 80 13 00 00 00 00 00 00 2C [06:10:30]Write i2c OK [06:10:30]MH_I2C_Read... [06:10:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:10:30]Read from MH i2c: E2 [06:10:30]MH_I2C_Read... [06:10:30]Read from MH i2c: E2 62 00 [06:10:30]MH_I2C_Read... [06:10:30]Read from MH i2c: E2 62 00 A0 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 61 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [06:10:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 61 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:10:30]wFMCommunicate OK [06:10:30]SAM_PROTO_GetFieldsCounters done [06:10:30]requested_item shift.num is exist - process it [06:10:30]requested_item shift.opened is exist - process it [06:10:30]req_shift_opened [06:10:30]FM_GetShiftState [06:10:30]SAM_PROTO_GetShiftState [06:10:30]wFMCommunicate request_size=4 [06:10:30]MH_SAM_APDU [06:10:30]CAPDU: 80 13 01 00 [06:10:30]Write to MH i2c: E2 08 00 A1 10 80 13 01 00 00 00 00 00 2E [06:10:31]Write i2c OK [06:10:31]MH_I2C_Read... [06:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:31]Read from MH i2c: E2 [06:10:31]MH_I2C_Read... [06:10:31]Read from MH i2c: E2 0E 00 [06:10:31]MH_I2C_Read... [06:10:31]Read from MH i2c: E2 0E 00 A1 10 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 6F [06:10:31]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [06:10:31]wFMCommunicate OK [06:10:31]SAM_PROTO_GetShiftState done [06:10:31]FM_GetShiftState done [06:10:31]req_shift_opened done [06:10:31]requested_item shift.open_date is exist - process it [06:10:31]req_shift_open_date [06:10:31]req_shift_open_date done [06:10:31]produce_requested_data done [06:10:31]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64097,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [06:10:31]process_action_free close_receipt [06:10:31]json_value_free [06:10:31]json_value_free done [06:10:31]process_json_proto returns [06:10:31]Send response to host [06:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64097,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [06:10:31]free response buf [06:10:31]execute_script done [06:10:31]execute_script returns [06:10:31]free content buf [06:10:31]Sock 8.Close socket [06:10:31]Sock 8.Thread stoped [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:37]accept exits with 9 [06:14:37]New connection [06:14:37]New thread 3067133284 created [06:14:37]Thread 3067276644 joined [06:14:37]Waiting for new connection... [06:14:37] Sock 9.Parse request [06:14:37]Sock 9.Check first char [06:14:37]Sock 9.First char is OK [06:14:37]request: POST /json_proto HTTP/1.0 [06:14:37]Method: POST [06:14:37]URL: /json_proto [06:14:37]Method is POST - this is cgi request [06:14:37]url: /json_proto [06:14:37]query_string will be loaded in cgi processing [06:14:37]execute_cgi json_proto POST (null) [06:14:37]execute_cgi path=json_proto method=POST [06:14:37]POST find Content-Length [06:14:37]Host: 172.17.60.69:8080 [06:14:37]Content-Length: 900 [06:14:37]Content-Type: application/json [06:14:37] [06:14:37]POST finish read [06:14:37]Found Content-Length = 900 [06:14:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73637", "tax_sys" : 0, "items" : [ { "code": "4700000481972", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442-\u043C\u0430\u0440\u0430\u043A\u0443\u0439\u044F 0", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:14:37]execute_script... [06:14: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)73637", "tax_sys" : 0, "items" : [ { "code": "4700000481972", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442-\u043C\u0430\u0440\u0430\u043A\u0443\u0439\u044F 0", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:14:37]POST & json_proto [06:14:37]process_json_proto [06:14:37]json parsed OK: [06:14:37]protocol is kg_v1.0 [06:14:37]action value=close_receipt [06:14:37]process_action close_receipt [06:14:37]cmd_close_receipt [06:14:37]MH_GetDate [06:14:37]Write to MH i2c: F0 00 00 A2 10 A1 [06:14:37]Write i2c OK [06:14:37]MH_I2C_Read... [06:14:37]Read from MH i2c: F0 [06:14:37]MH_I2C_Read... [06:14:37]Read from MH i2c: F0 09 00 [06:14:37]MH_I2C_Read... [06:14:37]Read from MH i2c: F0 09 00 A2 10 00 4F 02 60 66 D2 83 5F 66 DB [06:14:37]GetLastDocTimeStamp 1717567829 [06:14:37]current date 1717568079 [06:14:37]FM_GetShiftState [06:14:37]SAM_PROTO_GetShiftState [06:14:37]wFMCommunicate request_size=4 [06:14:37]MH_SAM_APDU [06:14:37]CAPDU: 80 13 01 00 [06:14:37]Write to MH i2c: E2 08 00 A3 10 80 13 01 00 00 00 00 00 30 [06:14:37]Write i2c OK [06:14:37]MH_I2C_Read... [06:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:14:37]Read from MH i2c: E2 [06:14:37]MH_I2C_Read... [06:14:37]Read from MH i2c: E2 0E 00 [06:14:37]MH_I2C_Read... [06:14:37]Read from MH i2c: E2 0E 00 A3 10 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 71 [06:14:37]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [06:14:37]wFMCommunicate OK [06:14:37]SAM_PROTO_GetShiftState done [06:14:37]FM_GetShiftState done [06:14:37]opened in 1717545925 [06:14:37]opened+sec_in_day 1717632325 [06:14:37]quantity*price = 9500 [06:14:37]sum+1 = 9501 [06:14:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 18 05.06.2024 06:14 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64098 ФПД: 142485344650744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T061439&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64098&fm=142485344650744&tin=02508201610067®Number=0000000000092737&sum=9500 0 [06:14:38]StoreToDocumentArchive [06:14:38]shift 375 fd 64098 [06:14:38]save to /storage/0375/doc_00064098 [06:14:38]save last doc name /storage/0375/doc_00064098 to /storage/kkm_last_doc_name [06:14:38]save OK [06:14:38]Clear old archive folders... [06:14:38]ProcessDocumentItem done err = 0, tmpTLVsize=311 [06:14:38]tlvbuf is 00F7A040 [06:14:38]SAM_PROTO_ClearQueue [06:14:38]wFMCommunicate request_size=4 [06:14:38]MH_SAM_APDU [06:14:38]CAPDU: 80 09 00 00 [06:14:38]Write to MH i2c: E2 08 00 B0 10 80 09 00 00 00 00 00 00 32 [06:14:38]Write i2c OK [06:14:38]MH_I2C_Read... [06:14:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:14:38]Read from MH i2c: E2 [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: E2 03 00 [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: E2 03 00 B0 10 00 90 00 34 [06:14:38]RAPDU: 90 00 [06:14:38]wFMCommunicate OK [06:14:38]SAM_PROTO_ClearQueue done [06:14:38]KKMCreateOFDPacket [06:14:38]OFDProtocolAddRootSTLVToBuf [06:14:38]FM_MakeSignedData [06:14:38]FM_MakeSignedData [06:14:38]SAM_PROTO_SignData [06:14:38]wFMCommunicate request_size=4 [06:14:38]MH_SAM_APDU [06:14:38]CAPDU: 80 0D 01 02 [06:14:38]Write to MH i2c: E2 08 00 B1 10 80 0D 01 02 00 00 00 00 3A [06:14:38]Write i2c OK [06:14:38]MH_I2C_Read... [06:14:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:14:38]Read from MH i2c: E2 [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: E2 03 00 [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: E2 03 00 B1 10 00 90 00 35 [06:14:38]RAPDU: 90 00 [06:14:38]wFMCommunicate OK [06:14:38]wFMCommunicate request_size=255 [06:14:38]MH_SAM_APDU [06:14:38]CAPDU: 80 0D 02 02 FA 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 12 00 00 00 F4 03 04 00 4F 02 60 66 0E 04 04 00 77 01 [06:14:38]Write to MH i2c: E2 02 01 B2 10 80 0D 02 02 FA 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 12 00 00 00 F4 03 04 00 4F 02 60 66 0E 04 04 00 77 01 00 00 66 [06:14:38]Write i2c OK [06:14:38]MH_I2C_Read... [06:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:14:38]Read from MH i2c: E2 [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: E2 03 00 [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: E2 03 00 B2 10 00 90 00 36 [06:14:38]RAPDU: 90 00 [06:14:38]wFMCommunicate OK [06:14:38]wFMCommunicate request_size=70 [06:14:38]MH_SAM_APDU [06:14:38]CAPDU: 80 0D 02 02 41 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 62 FA 00 00 35 04 06 00 81 96 F4 5A 85 F8 [06:14:38]Write to MH i2c: E2 49 00 B3 10 80 0D 02 02 41 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 62 FA 00 00 35 04 06 00 81 96 F4 5A 85 F8 00 00 94 [06:14:38]Write i2c OK [06:14:38]MH_I2C_Read... [06:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:14:38]Read from MH i2c: E2 [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: E2 03 00 [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: E2 03 00 B3 10 00 90 00 37 [06:14:38]RAPDU: 90 00 [06:14:38]wFMCommunicate OK [06:14:38]wFMCommunicate request_size=4 [06:14:38]MH_SAM_APDU [06:14:38]CAPDU: 80 0D 03 02 [06:14:38]Write to MH i2c: E2 08 00 B4 10 80 0D 03 02 00 00 00 00 3F [06:14:38]Write i2c OK [06:14:38]MH_I2C_Read... [06:14:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:14:38]Read from MH i2c: E2 [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: E2 0B 00 [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: E2 0B 00 B4 10 00 FB 74 76 30 9A F5 DA A3 90 00 61 [06:14:38]RAPDU: FB 74 76 30 9A F5 DA A3 90 00 [06:14:38]wFMCommunicate OK [06:14:38]SAM_PROTO_SignData done [06:14:38]FM_MakeSignedData done [06:14:38]CreateOFDProtocolMessage [06:14:38]wFMCommunicate request_size=4 [06:14:38]MH_SAM_APDU [06:14:38]CAPDU: 80 11 00 00 [06:14:38]Write to MH i2c: E2 08 00 B5 10 80 11 00 00 00 00 00 00 3F [06:14:38]Write i2c OK [06:14:38]MH_I2C_Read... [06:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:14:38]Read from MH i2c: E2 [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: E2 17 00 [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: E2 17 00 B5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 91 [06:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:14:38]wFMCommunicate OK [06:14:38]CreateOFDProtocolMessage done [06:14:38]OFDSenderStorePacket 64098 [06:14:38]StoreOFDPacket docnum=64098 [06:14:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4B 01 00 00 12 7B 43 01 8B A2 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 12 00 00 00 F4 03 04 00 4F 02 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 62 FA 00 00 35 04 06 00 81 96 F4 5A 85 F8 FB 74 76 30 9A F5 DA A3 [06:14:38]CheckFolder [06:14:38]dirname=/storage/ofd_packets [06:14:38]CheckFolder done [06:14:38]ProducePacketName [06:14:38]name=ofd_packets/00064098 [06:14:38]NVStorageSaveData ofd_packets/00064098 [06:14:38]File name is /storage/ofd_packets/00064098 [06:14:38]Write 361 bytes [06:14:38]NVStorageSaveData done [06:14:38]OFDSenderStorePacket done [06:14:38]KKMCreateOFDPacket done [06:14:38]NVStorageSaveData kkm_last_timestamp [06:14:38]File name is /storage/kkm_last_timestamp [06:14:38]Write 4 bytes [06:14:38]NVStorageSaveData done [06:14:38]ExternCall_PrintAddStr [06:14:38]wPrintStart [06:14:38]Write to MH i2c: 01 00 00 B6 10 C6 [06:14:38]Write i2c OK [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: 01 [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: 01 07 00 [06:14:38]MH_I2C_Read... [06:14:38]Read from MH i2c: 01 07 00 B6 10 00 00 00 00 00 FF 0F DB [06:14:38]RasterBufferAndPrint [06:14:38]line Счет N : (3)73637 [06:14:38]line ИНН: 02508201610067 [06:14:38]line Контрольно-Кассовый Чек [06:14:38]line ПРОДАЖА [06:14:38]line Товар: 4700000481972 [06:14:38]line Напиток энерг Nitro грейпфрут-маракуйя 0 [06:14:38]line 1.000 * 95.00 [06:14:38]line = 95.00 [06:14:38]line НДС 12% НСП 1% [06:14:38]line > о реализуемом товаре [06:14:38]line ИТОГО: 95.00 [06:14:38]line НСП 1% : 0.84 [06:14:38]line НДС 12% : 10.09 [06:14:38]line Наличными: 0.00 [06:14:38]line Безнал.: 95.00 [06:14:38]line Место: АЗС № 117 "Партнер Нефть" [06:14:38]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [06:14:38]line СНО: Общий режим [06:14:38]line Чек 18 05.06.2024 06:14 [06:14:38]line Смена: 375 ФФД: 1.0 [06:14:38]line ЗНМ: 0300000031 [06:14:38]line РНМ: 0000000000092737 [06:14:38]line Версия ККМ: 001 [06:14:38]line Платежная система: O! деньги [06:14:38]line ФМ: 0000000000875074 [06:14:38]line ФД: 64098 [06:14:38]line ФПД: 142485344650744 [06:14:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T061439&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64098&fm=142485344650744&tin=02508201610067®Number=0000000000092737&sum=9500 [06:14:39]OFD Sender: Processing packet 64098 [packets to send 14, broken 13] [06:14:39]ProducePacketName [06:14:39]name=ofd_packets/00064098 [06:14:39]OFD Sender: To server: pG, [06:14:39]CommunicateWithHost lk.salyk.kg:30040 [06:14:39]ConnectInit lk.salyk.kg [06:14:39]line 0 [06:14:39]written 0, free lines is 4095 [06:14:39]Connected sock=10 [06:14:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4B 01 00 00 12 7B 43 01 8B A2 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 12 00 00 00 F4 03 04 00 4F 02 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 62 FA 00 00 35 04 06 00 81 96 F4 5A 85 F8 FB 74 76 30 9A F5 DA A3 [06:14:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 64 6E 47 00 E1 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 62 FA 00 00 F4 03 04 00 5B AE 5F 66 B6 04 01 00 00 9B 21 29 C1 ED AC 85 3C [06:14:39]CommunicateWithHost err = 0 [06:14:39]CheckOFDResponse [06:14:39]1017 (14) - 77093643461234 [06:14:39]1041 (16) - 0000000000875074 [06:14:39]1040 (4) - 64098 [06:14:39]1012 (4) - 05.06.2024 00:16 [06:14:39]1206 (1) - 0 [06:14:39]OFD Sender: Remove packet 64098 [06:14:39]ProducePacketName [06:14:39]name=ofd_packets/00064098 [06:14:39]NVStorageDeleteData [06:14:39]Write to MH i2c: 01 00 00 E1 10 F1 [06:14:39]Write i2c OK [06:14:39]MH_I2C_Read... [06:14:39]Read from MH i2c: 01 [06:14:39]MH_I2C_Read... [06:14:39]Read from MH i2c: 01 07 00 [06:14:39]MH_I2C_Read... [06:14:39]Read from MH i2c: 01 07 00 E1 10 00 00 00 00 00 CB 0C CF [06:14:39]RasterBufferAndPrint [06:14:39]line [06:14:39]line [06:14:39]line [06:14:39]line [06:14:39]line [06:14:39]written 0, free lines is 3281 [06:14:39]MH_Cut [06:14:39]Write to MH i2c: D1 01 00 E8 10 01 CA [06:14:39]Write i2c OK [06:14:39]MH_I2C_Read... [06:14:39]Read from MH i2c: D1 [06:14:39]MH_I2C_Read... [06:14:39]Read from MH i2c: D1 01 00 [06:14:39]MH_I2C_Read... [06:14:39]Read from MH i2c: D1 01 00 E8 10 00 C9 [06:14:39]Write to MH i2c: 01 00 00 E9 10 F9 [06:14:39]Write i2c OK [06:14:39]MH_I2C_Read... [06:14:39]OFD Sender: No OFD packet to send [06:14:40]*** Cut start [06:14:40]*** Partial cut [06:14:40]*** CUTSNS_PIN = 1 [06:14:40]*** CUTSNS_PIN = 0 [06:14:40]*** Brake cut motor [06:14:41]Read from MH i2c: 01 [06:14:41]MH_I2C_Read... [06:14:41]*** Stop cut motor [06:14:41]*** Cut end [06:14:41]Read from MH i2c: 01 07 00 [06:14:41]MH_I2C_Read... [06:14:41]Read from MH i2c: 01 07 00 E9 10 00 00 00 00 00 FF 0F 0E [06:14:41]process_action close_receipt done [06:14:41]requested_data is exist [06:14:41]produce_requested_data [06:14:41]requested_item fm.sn is exist - process it [06:14:41]wFMCommunicate request_size=4 [06:14:41]MH_SAM_APDU [06:14:41]CAPDU: 80 11 00 00 [06:14:41]Write to MH i2c: E2 08 00 EA 10 80 11 00 00 00 00 00 00 74 [06:14:41]Write i2c OK [06:14:41]MH_I2C_Read... [06:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:14:41]Read from MH i2c: E2 [06:14:41]MH_I2C_Read... [06:14:41]Read from MH i2c: E2 17 00 [06:14:41]MH_I2C_Read... [06:14:41]Read from MH i2c: E2 17 00 EA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C6 [06:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:14:41]wFMCommunicate OK [06:14:41]requested_item fd.num is exist - process it [06:14:41]SAM_PROTO_GetFieldsCounters [06:14:41]wFMCommunicate request_size=4 [06:14:41]MH_SAM_APDU [06:14:41]CAPDU: 80 13 00 00 [06:14:41]Write to MH i2c: E2 08 00 EB 10 80 13 00 00 00 00 00 00 77 [06:14:41]Write i2c OK [06:14:41]MH_I2C_Read... [06:14:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:14:41]Read from MH i2c: E2 [06:14:41]MH_I2C_Read... [06:14:41]Read from MH i2c: E2 62 00 [06:14:41]MH_I2C_Read... [06:14:41]Read from MH i2c: E2 62 00 EB 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 62 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [06:14:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 62 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:14:41]wFMCommunicate OK [06:14:41]SAM_PROTO_GetFieldsCounters done [06:14:41]requested_item shift.num is exist - process it [06:14:41]requested_item shift.opened is exist - process it [06:14:41]req_shift_opened [06:14:41]FM_GetShiftState [06:14:41]SAM_PROTO_GetShiftState [06:14:41]wFMCommunicate request_size=4 [06:14:41]MH_SAM_APDU [06:14:41]CAPDU: 80 13 01 00 [06:14:41]Write to MH i2c: E2 08 00 EC 10 80 13 01 00 00 00 00 00 79 [06:14:41]Write i2c OK [06:14:41]MH_I2C_Read... [06:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:14:41]Read from MH i2c: E2 [06:14:41]MH_I2C_Read... [06:14:41]Read from MH i2c: E2 0E 00 [06:14:41]MH_I2C_Read... [06:14:41]Read from MH i2c: E2 0E 00 EC 10 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 BA [06:14:41]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [06:14:41]wFMCommunicate OK [06:14:41]SAM_PROTO_GetShiftState done [06:14:41]FM_GetShiftState done [06:14:41]req_shift_opened done [06:14:41]requested_item shift.open_date is exist - process it [06:14:41]req_shift_open_date [06:14:41]req_shift_open_date done [06:14:41]produce_requested_data done [06:14:41]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64098,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [06:14:41]process_action_free close_receipt [06:14:41]json_value_free [06:14:41]json_value_free done [06:14:41]process_json_proto returns [06:14:41]Send response to host [06:14:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64098,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [06:14:41]free response buf [06:14:41]execute_script done [06:14:41]execute_script returns [06:14:41]free content buf [06:14:41]Sock 9.Close socket [06:14:41]Sock 9.Thread stoped [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:41]accept exits with 8 [06:15:41]New connection [06:15:41]New thread 3067276644 created [06:15:41]Thread 3067133284 joined [06:15:41]Waiting for new connection... [06:15:41] Sock 8.Parse request [06:15:41]Sock 8.Check first char [06:15:41]Sock 8.First char is OK [06:15:41]request: POST /json_proto HTTP/1.0 [06:15:41]Method: POST [06:15:41]URL: /json_proto [06:15:41]Method is POST - this is cgi request [06:15:41]url: /json_proto [06:15:41]query_string will be loaded in cgi processing [06:15:41]execute_cgi json_proto POST (null) [06:15:41]execute_cgi path=json_proto method=POST [06:15:41]POST find Content-Length [06:15:41]Host: 172.17.60.69:8080 [06:15:41]Content-Length: 735 [06:15:41]Content-Type: application/json [06:15:41] [06:15:41]POST finish read [06:15:41]Found Content-Length = 735 [06:15:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73639", "tax_sys" : 0, "items" : [ { "code": "2000151200112", "name": "\u0410\u041A\u0426\u0418\u042F \u0421\u043B\u043E\u0439\u043A\u0430 \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 53.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:15:41]execute_script... [06:15: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)73639", "tax_sys" : 0, "items" : [ { "code": "2000151200112", "name": "\u0410\u041A\u0426\u0418\u042F \u0421\u043B\u043E\u0439\u043A\u0430 \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 53.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:15:41]POST & json_proto [06:15:41]process_json_proto [06:15:41]json parsed OK: [06:15:41]protocol is kg_v1.0 [06:15:41]action value=close_receipt [06:15:41]process_action close_receipt [06:15:41]cmd_close_receipt [06:15:41]MH_GetDate [06:15:41]Write to MH i2c: F0 00 00 ED 10 EC [06:15:41]Write i2c OK [06:15:41]MH_I2C_Read... [06:15:41]Read from MH i2c: F0 [06:15:41]MH_I2C_Read... [06:15:41]Read from MH i2c: F0 09 00 [06:15:41]MH_I2C_Read... [06:15:41]Read from MH i2c: F0 09 00 ED 10 00 8F 02 60 66 D2 83 5F 66 66 [06:15:41]GetLastDocTimeStamp 1717568079 [06:15:41]current date 1717568143 [06:15:41]FM_GetShiftState [06:15:41]SAM_PROTO_GetShiftState [06:15:41]wFMCommunicate request_size=4 [06:15:41]MH_SAM_APDU [06:15:41]CAPDU: 80 13 01 00 [06:15:41]Write to MH i2c: E2 08 00 EE 10 80 13 01 00 00 00 00 00 7B [06:15:41]Write i2c OK [06:15:41]MH_I2C_Read... [06:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:41]Read from MH i2c: E2 [06:15:41]MH_I2C_Read... [06:15:41]Read from MH i2c: E2 0E 00 [06:15:41]MH_I2C_Read... [06:15:41]Read from MH i2c: E2 0E 00 EE 10 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 BC [06:15:41]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [06:15:41]wFMCommunicate OK [06:15:41]SAM_PROTO_GetShiftState done [06:15:41]FM_GetShiftState done [06:15:41]opened in 1717545925 [06:15:41]opened+sec_in_day 1717632325 [06:15:41]quantity*price = 5300 [06:15:41]sum+1 = 5301 [06:15:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 53.00 НСП 1% : 0.47 НДС 12% : 5.63 Наличными: 53.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 19 05.06.2024 06:15 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64099 ФПД: 105940449917145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T061543&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64099&fm=105940449917145&tin=02508201610067®Number=0000000000092737&sum=5300 0 [06:15:42]StoreToDocumentArchive [06:15:42]shift 375 fd 64099 [06:15:42]save to /storage/0375/doc_00064099 [06:15:42]save last doc name /storage/0375/doc_00064099 to /storage/kkm_last_doc_name [06:15:42]save OK [06:15:42]Clear old archive folders... [06:15:42]ProcessDocumentItem done err = 0, tmpTLVsize=307 [06:15:42]tlvbuf is B6FA79A0 [06:15:42]SAM_PROTO_ClearQueue [06:15:42]wFMCommunicate request_size=4 [06:15:42]MH_SAM_APDU [06:15:42]CAPDU: 80 09 00 00 [06:15:42]Write to MH i2c: E2 08 00 FB 10 80 09 00 00 00 00 00 00 7D [06:15:42]Write i2c OK [06:15:42]MH_I2C_Read... [06:15:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:15:42]Read from MH i2c: E2 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 03 00 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 03 00 FB 10 00 90 00 7F [06:15:42]RAPDU: 90 00 [06:15:42]wFMCommunicate OK [06:15:42]SAM_PROTO_ClearQueue done [06:15:42]KKMCreateOFDPacket [06:15:42]OFDProtocolAddRootSTLVToBuf [06:15:42]FM_MakeSignedData [06:15:42]FM_MakeSignedData [06:15:42]SAM_PROTO_SignData [06:15:42]wFMCommunicate request_size=4 [06:15:42]MH_SAM_APDU [06:15:42]CAPDU: 80 0D 01 02 [06:15:42]Write to MH i2c: E2 08 00 FC 10 80 0D 01 02 00 00 00 00 85 [06:15:42]Write i2c OK [06:15:42]MH_I2C_Read... [06:15:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:15:42]Read from MH i2c: E2 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 03 00 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 03 00 FC 10 00 90 00 80 [06:15:42]RAPDU: 90 00 [06:15:42]wFMCommunicate OK [06:15:42]wFMCommunicate request_size=255 [06:15:42]MH_SAM_APDU [06:15:42]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 31 35 31 32 30 30 31 31 32 06 04 41 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 8F 02 60 66 0E 04 04 00 77 01 00 00 B9 04 [06:15:42]Write to MH i2c: E2 02 01 FD 10 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 31 35 31 32 30 30 31 31 32 06 04 41 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 8F 02 60 66 0E 04 04 00 77 01 00 00 B9 04 00 00 0C [06:15:42]Write i2c OK [06:15:42]MH_I2C_Read... [06:15:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:42]Read from MH i2c: E2 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 03 00 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 03 00 FD 10 00 90 00 81 [06:15:42]RAPDU: 90 00 [06:15:42]wFMCommunicate OK [06:15:42]wFMCommunicate request_size=66 [06:15:42]MH_SAM_APDU [06:15:42]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 63 FA 00 00 35 04 06 00 60 5A 2E E2 78 D9 [06:15:42]Write to MH i2c: E2 45 00 FE 10 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 63 FA 00 00 35 04 06 00 60 5A 2E E2 78 D9 00 00 54 [06:15:42]Write i2c OK [06:15:42]MH_I2C_Read... [06:15:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:42]Read from MH i2c: E2 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 03 00 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 03 00 FE 10 00 90 00 82 [06:15:42]RAPDU: 90 00 [06:15:42]wFMCommunicate OK [06:15:42]wFMCommunicate request_size=4 [06:15:42]MH_SAM_APDU [06:15:42]CAPDU: 80 0D 03 02 [06:15:42]Write to MH i2c: E2 08 00 FF 10 80 0D 03 02 00 00 00 00 8A [06:15:42]Write i2c OK [06:15:42]MH_I2C_Read... [06:15:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:15:42]Read from MH i2c: E2 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 0B 00 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 0B 00 FF 10 00 CD 6E 00 EB 3F 24 4F C2 90 00 25 [06:15:42]RAPDU: CD 6E 00 EB 3F 24 4F C2 90 00 [06:15:42]wFMCommunicate OK [06:15:42]SAM_PROTO_SignData done [06:15:42]FM_MakeSignedData done [06:15:42]CreateOFDProtocolMessage [06:15:42]wFMCommunicate request_size=4 [06:15:42]MH_SAM_APDU [06:15:42]CAPDU: 80 11 00 00 [06:15:42]Write to MH i2c: E2 08 00 00 11 80 11 00 00 00 00 00 00 8B [06:15:42]Write i2c OK [06:15:42]MH_I2C_Read... [06:15:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:42]Read from MH i2c: E2 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 17 00 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 17 00 00 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DD [06:15:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:15:42]wFMCommunicate OK [06:15:42]CreateOFDProtocolMessage done [06:15:42]OFDSenderStorePacket 64099 [06:15:42]StoreOFDPacket docnum=64099 [06:15:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 47 01 00 00 41 CA 3F 01 72 63 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 31 35 31 32 30 30 31 31 32 06 04 41 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 8F 02 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 63 FA 00 00 35 04 06 00 60 5A 2E E2 78 D9 CD 6E 00 EB 3F 24 4F C2 [06:15:42]CheckFolder [06:15:42]dirname=/storage/ofd_packets [06:15:42]CheckFolder done [06:15:42]ProducePacketName [06:15:42]name=ofd_packets/00064099 [06:15:42]NVStorageSaveData ofd_packets/00064099 [06:15:42]File name is /storage/ofd_packets/00064099 [06:15:42]Write 357 bytes [06:15:42]NVStorageSaveData done [06:15:42]OFDSenderStorePacket done [06:15:42]KKMCreateOFDPacket done [06:15:42]NVStorageSaveData kkm_last_timestamp [06:15:42]File name is /storage/kkm_last_timestamp [06:15:42]Write 4 bytes [06:15:42]NVStorageSaveData done [06:15:42]ExternCall_PrintAddStr [06:15:42]wPrintStart [06:15:42]Write to MH i2c: 01 00 00 01 11 12 [06:15:42]Write i2c OK [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: 01 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: 01 07 00 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: 01 07 00 01 11 00 00 00 00 00 FF 0F 27 [06:15:42]RasterBufferAndPrint [06:15:42]line Счет N : (3)73639 [06:15:42]line ИНН: 02508201610067 [06:15:42]line Контрольно-Кассовый Чек [06:15:42]line ПРОДАЖА [06:15:42]line Товар: 2000151200112 [06:15:42]line АКЦИЯ Слойка треугольная курица 110г [06:15:42]line 1.000 * 53.00 [06:15:42]line = 53.00 [06:15:42]line НДС 12% НСП 1% [06:15:42]line > о реализуемом товаре [06:15:42]line ИТОГО: 53.00 [06:15:42]line НСП 1% : 0.47 [06:15:42]line НДС 12% : 5.63 [06:15:42]line Наличными: 53.00 [06:15:42]line Безнал.: 0.00 [06:15:42]line Место: АЗС № 117 "Партнер Нефть" [06:15:42]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [06:15:42]line СНО: Общий режим [06:15:43]line Чек 19 05.06.2024 06:15 [06:15:43]line Смена: 375 ФФД: 1.0 [06:15:43]line ЗНМ: 0300000031 [06:15:43]line РНМ: 0000000000092737 [06:15:43]line Версия ККМ: 001 [06:15:43]line ФМ: 0000000000875074 [06:15:43]line ФД: 64099 [06:15:43]line ФПД: 105940449917145 [06:15:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T061543&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64099&fm=105940449917145&tin=02508201610067®Number=0000000000092737&sum=5300 [06:15:43]line 0 [06:15:43]OFD Sender: Processing packet 64099 [packets to send 14, broken 13] [06:15:43]ProducePacketName [06:15:43]name=ofd_packets/00064099 [06:15:43]OFD Sender: To server: pG, [06:15:43]CommunicateWithHost lk.salyk.kg:30040 [06:15:43]ConnectInit lk.salyk.kg [06:15:43]written 0, free lines is 4095 [06:15:43]Connected sock=10 [06:15:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 47 01 00 00 41 CA 3F 01 72 63 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 31 35 31 32 30 30 31 31 32 06 04 41 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 8F 02 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 63 FA 00 00 35 04 06 00 60 5A 2E E2 78 D9 CD 6E 00 EB 3F 24 4F C2 [06:15:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 ED E2 47 00 8E DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 63 FA 00 00 F4 03 04 00 9B AE 5F 66 B6 04 01 00 00 D5 CB A5 29 B2 65 B7 8A [06:15:43]CommunicateWithHost err = 0 [06:15:43]CheckOFDResponse [06:15:43]1017 (14) - 77093643461234 [06:15:43]1041 (16) - 0000000000875074 [06:15:43]1040 (4) - 64099 [06:15:43]1012 (4) - 05.06.2024 00:17 [06:15:43]1206 (1) - 0 [06:15:43]OFD Sender: Remove packet 64099 [06:15:43]ProducePacketName [06:15:43]name=ofd_packets/00064099 [06:15:43]NVStorageDeleteData [06:15:43]Write to MH i2c: 01 00 00 2A 11 3B [06:15:43]Write i2c OK [06:15:43]MH_I2C_Read... [06:15:43]Read from MH i2c: 01 [06:15:43]MH_I2C_Read... [06:15:43]Read from MH i2c: 01 07 00 [06:15:43]MH_I2C_Read... [06:15:43]Read from MH i2c: 01 07 00 2A 11 00 00 00 00 00 EF 0C 3D [06:15:43]RasterBufferAndPrint [06:15:43]line [06:15:43]line [06:15:43]line [06:15:43]line [06:15:43]line [06:15:43]written 0, free lines is 3317 [06:15:43]MH_Cut [06:15:43]Write to MH i2c: D1 01 00 31 11 01 14 [06:15:43]Write i2c OK [06:15:43]MH_I2C_Read... [06:15:43]Read from MH i2c: D1 [06:15:43]MH_I2C_Read... [06:15:43]Read from MH i2c: D1 01 00 [06:15:43]MH_I2C_Read... [06:15:43]Read from MH i2c: D1 01 00 31 11 00 13 [06:15:43]Write to MH i2c: 01 00 00 32 11 43 [06:15:43]Write i2c OK [06:15:43]MH_I2C_Read... [06:15:43]OFD Sender: No OFD packet to send [06:15:44]*** Cut start [06:15:44]*** Partial cut [06:15:44]*** CUTSNS_PIN = 1 [06:15:44]*** CUTSNS_PIN = 0 [06:15:44]*** Brake cut motor [06:15:44]Read from MH i2c: 01 [06:15:44]MH_I2C_Read... [06:15:44]*** Stop cut motor [06:15:44]*** Cut end [06:15:44]Read from MH i2c: 01 07 00 [06:15:44]MH_I2C_Read... [06:15:44]Read from MH i2c: 01 07 00 32 11 00 00 00 00 00 FF 0F 58 [06:15:44]process_action close_receipt done [06:15:44]requested_data is exist [06:15:44]produce_requested_data [06:15:44]requested_item fm.sn is exist - process it [06:15:44]wFMCommunicate request_size=4 [06:15:44]MH_SAM_APDU [06:15:44]CAPDU: 80 11 00 00 [06:15:44]Write to MH i2c: E2 08 00 33 11 80 11 00 00 00 00 00 00 BE [06:15:44]Write i2c OK [06:15:44]MH_I2C_Read... [06:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:45]Read from MH i2c: E2 [06:15:45]MH_I2C_Read... [06:15:45]Read from MH i2c: E2 17 00 [06:15:45]MH_I2C_Read... [06:15:45]Read from MH i2c: E2 17 00 33 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 10 [06:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:15:45]wFMCommunicate OK [06:15:45]requested_item fd.num is exist - process it [06:15:45]SAM_PROTO_GetFieldsCounters [06:15:45]wFMCommunicate request_size=4 [06:15:45]MH_SAM_APDU [06:15:45]CAPDU: 80 13 00 00 [06:15:45]Write to MH i2c: E2 08 00 34 11 80 13 00 00 00 00 00 00 C1 [06:15:45]Write i2c OK [06:15:45]MH_I2C_Read... [06:15:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:15:45]Read from MH i2c: E2 [06:15:45]MH_I2C_Read... [06:15:45]Read from MH i2c: E2 62 00 [06:15:45]MH_I2C_Read... [06:15:45]Read from MH i2c: E2 62 00 34 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 63 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [06:15:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 63 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:15:45]wFMCommunicate OK [06:15:45]SAM_PROTO_GetFieldsCounters done [06:15:45]requested_item shift.num is exist - process it [06:15:45]requested_item shift.opened is exist - process it [06:15:45]req_shift_opened [06:15:45]FM_GetShiftState [06:15:45]SAM_PROTO_GetShiftState [06:15:45]wFMCommunicate request_size=4 [06:15:45]MH_SAM_APDU [06:15:45]CAPDU: 80 13 01 00 [06:15:45]Write to MH i2c: E2 08 00 35 11 80 13 01 00 00 00 00 00 C3 [06:15:45]Write i2c OK [06:15:45]MH_I2C_Read... [06:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:45]Read from MH i2c: E2 [06:15:45]MH_I2C_Read... [06:15:45]Read from MH i2c: E2 0E 00 [06:15:45]MH_I2C_Read... [06:15:45]Read from MH i2c: E2 0E 00 35 11 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 04 [06:15:45]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [06:15:45]wFMCommunicate OK [06:15:45]SAM_PROTO_GetShiftState done [06:15:45]FM_GetShiftState done [06:15:45]req_shift_opened done [06:15:45]requested_item shift.open_date is exist - process it [06:15:45]req_shift_open_date [06:15:45]req_shift_open_date done [06:15:45]produce_requested_data done [06:15:45]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64099,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [06:15:45]process_action_free close_receipt [06:15:45]json_value_free [06:15:45]json_value_free done [06:15:45]process_json_proto returns [06:15:45]Send response to host [06:15:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64099,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [06:15:45]free response buf [06:15:45]execute_script done [06:15:45]execute_script returns [06:15:45]free content buf [06:15:45]Sock 8.Close socket [06:15:45]Sock 8.Thread stoped [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:57]accept exits with 9 [06:32:57]New connection [06:32:57]New thread 3067133284 created [06:32:57]Thread 3067276644 joined [06:32:57]Waiting for new connection... [06:32:57] Sock 9.Parse request [06:32:57]Sock 9.Check first char [06:32:57]Sock 9.First char is OK [06:32:57]request: POST /json_proto HTTP/1.0 [06:32:57]Method: POST [06:32:57]URL: /json_proto [06:32:57]Method is POST - this is cgi request [06:32:57]url: /json_proto [06:32:57]query_string will be loaded in cgi processing [06:32:57]execute_cgi json_proto POST (null) [06:32:57]execute_cgi path=json_proto method=POST [06:32:57]POST find Content-Length [06:32:57]Host: 172.17.60.69:8080 [06:32:57]Content-Length: 1039 [06:32:57]Content-Type: application/json [06:32:57] [06:32:57]POST finish read [06:32:57]Found Content-Length = 1039 [06:32:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73638", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:32:57]execute_script... [06:32: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)73638", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:32:57]POST & json_proto [06:32:57]process_json_proto [06:32:57]json parsed OK: [06:32:57]protocol is kg_v1.0 [06:32:57]action value=close_receipt [06:32:57]process_action close_receipt [06:32:57]cmd_close_receipt [06:32:57]MH_GetDate [06:32:57]Write to MH i2c: F0 00 00 36 11 36 [06:32:57]Write i2c OK [06:32:57]MH_I2C_Read... [06:32:57]Read from MH i2c: F0 [06:32:57]MH_I2C_Read... [06:32:57]Read from MH i2c: F0 09 00 [06:32:57]MH_I2C_Read... [06:32:57]Read from MH i2c: F0 09 00 36 11 00 9B 06 60 66 D2 83 5F 66 C0 [06:32:57]GetLastDocTimeStamp 1717568143 [06:32:57]current date 1717569179 [06:32:57]FM_GetShiftState [06:32:57]SAM_PROTO_GetShiftState [06:32:57]wFMCommunicate request_size=4 [06:32:57]MH_SAM_APDU [06:32:57]CAPDU: 80 13 01 00 [06:32:57]Write to MH i2c: E2 08 00 37 11 80 13 01 00 00 00 00 00 C5 [06:32:57]Write i2c OK [06:32:57]MH_I2C_Read... [06:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:32:57]Read from MH i2c: E2 [06:32:57]MH_I2C_Read... [06:32:57]Read from MH i2c: E2 0E 00 [06:32:57]MH_I2C_Read... [06:32:57]Read from MH i2c: E2 0E 00 37 11 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 06 [06:32:57]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [06:32:57]wFMCommunicate OK [06:32:57]SAM_PROTO_GetShiftState done [06:32:57]FM_GetShiftState done [06:32:57]opened in 1717545925 [06:32:57]opened+sec_in_day 1717632325 [06:32:57]quantity*price = 12500 [06:32:57]sum+1 = 12501 [06:32:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 20 05.06.2024 06:32 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64100 ФПД: 232230959241255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T063259&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64100&fm=232230959241255&tin=02508201610067®Number=0000000000092737&sum=13900 0 [06:32:58]StoreToDocumentArchive [06:32:58]shift 375 fd 64100 [06:32:58]save to /storage/0375/doc_00064100 [06:32:58]save last doc name /storage/0375/doc_00064100 to /storage/kkm_last_doc_name [06:32:58]save OK [06:32:58]Clear old archive folders... [06:32:58]ProcessDocumentItem done err = 0, tmpTLVsize=429 [06:32:58]tlvbuf is 0110ED20 [06:32:58]SAM_PROTO_ClearQueue [06:32:58]wFMCommunicate request_size=4 [06:32:58]MH_SAM_APDU [06:32:58]CAPDU: 80 09 00 00 [06:32:58]Write to MH i2c: E2 08 00 44 11 80 09 00 00 00 00 00 00 C7 [06:32:58]Write i2c OK [06:32:58]MH_I2C_Read... [06:32:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:32:58]Read from MH i2c: E2 [06:32:58]MH_I2C_Read... [06:32:58]Read from MH i2c: E2 03 00 [06:32:58]MH_I2C_Read... [06:32:58]Read from MH i2c: E2 03 00 44 11 00 90 00 C9 [06:32:58]RAPDU: 90 00 [06:32:58]wFMCommunicate OK [06:32:58]SAM_PROTO_ClearQueue done [06:32:58]KKMCreateOFDPacket [06:32:58]OFDProtocolAddRootSTLVToBuf [06:32:58]FM_MakeSignedData [06:32:58]FM_MakeSignedData [06:32:58]SAM_PROTO_SignData [06:32:58]wFMCommunicate request_size=4 [06:32:58]MH_SAM_APDU [06:32:58]CAPDU: 80 0D 01 02 [06:32:58]Write to MH i2c: E2 08 00 45 11 80 0D 01 02 00 00 00 00 CF [06:32:58]Write i2c OK [06:32:58]MH_I2C_Read... [06:32:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:32:58]Read from MH i2c: E2 [06:32:58]MH_I2C_Read... [06:32:58]Read from MH i2c: E2 03 00 [06:32:58]MH_I2C_Read... [06:32:58]Read from MH i2c: E2 03 00 45 11 00 90 00 CA [06:32:58]RAPDU: 90 00 [06:32:58]wFMCommunicate OK [06:32:58]wFMCommunicate request_size=255 [06:32:58]MH_SAM_APDU [06:32:58]CAPDU: 80 0D 02 02 FA 03 00 AD 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 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 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 [06:32:58]Write to MH i2c: E2 02 01 46 11 80 0D 02 02 FA 00 03 00 AD 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 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 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 29 [06:32:58]Write i2c OK [06:32:58]MH_I2C_Read... [06:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:32:58]Read from MH i2c: E2 [06:32:58]MH_I2C_Read... [06:32:58]Read from MH i2c: E2 03 00 [06:32:58]MH_I2C_Read... [06:32:58]Read from MH i2c: E2 03 00 46 11 00 90 00 CB [06:32:58]RAPDU: 90 00 [06:32:58]wFMCommunicate OK [06:32:58]wFMCommunicate request_size=188 [06:32:58]MH_SAM_APDU [06:32:58]CAPDU: 80 0D 02 02 B7 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 9B 06 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 64 FA 00 00 35 04 06 00 D3 36 7B D4 D8 27 [06:32:58]Write to MH i2c: E2 BF 00 47 11 80 0D 02 02 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 9B 06 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 64 FA 00 00 35 04 06 00 D3 36 7B D4 D8 27 00 00 28 [06:32:58]Write i2c OK [06:32:58]MH_I2C_Read... [06:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:32:58]Read from MH i2c: E2 [06:32:58]MH_I2C_Read... [06:32:58]Read from MH i2c: E2 03 00 [06:32:58]MH_I2C_Read... [06:32:58]Read from MH i2c: E2 03 00 47 11 00 90 00 CC [06:32:58]RAPDU: 90 00 [06:32:58]wFMCommunicate OK [06:32:58]wFMCommunicate request_size=4 [06:32:58]MH_SAM_APDU [06:32:58]CAPDU: 80 0D 03 02 [06:32:58]Write to MH i2c: E2 08 00 48 11 80 0D 03 02 00 00 00 00 D4 [06:32:58]Write i2c OK [06:32:58]MH_I2C_Read... [06:32:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:32:58]Read from MH i2c: E2 [06:32:58]MH_I2C_Read... [06:32:58]Read from MH i2c: E2 0B 00 [06:32:58]MH_I2C_Read... [06:32:58]Read from MH i2c: E2 0B 00 48 11 00 33 59 87 54 56 2C 48 15 90 00 1B [06:32:58]RAPDU: 33 59 87 54 56 2C 48 15 90 00 [06:32:58]wFMCommunicate OK [06:32:58]SAM_PROTO_SignData done [06:32:58]FM_MakeSignedData done [06:32:58]CreateOFDProtocolMessage [06:32:58]wFMCommunicate request_size=4 [06:32:58]MH_SAM_APDU [06:32:58]CAPDU: 80 11 00 00 [06:32:58]Write to MH i2c: E2 08 00 49 11 80 11 00 00 00 00 00 00 D4 [06:32:58]Write i2c OK [06:32:58]MH_I2C_Read... [06:32:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:32:59]Read from MH i2c: E2 [06:32:59]MH_I2C_Read... [06:32:59]Read from MH i2c: E2 17 00 [06:32:59]MH_I2C_Read... [06:32:59]Read from MH i2c: E2 17 00 49 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 26 [06:32:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:32:59]wFMCommunicate OK [06:32:59]CreateOFDProtocolMessage done [06:32:59]OFDSenderStorePacket 64100 [06:32:59]StoreOFDPacket docnum=64100 [06:32:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 C1 01 00 00 EE 10 B9 01 F0 0B 5A 03 01 00 03 00 AD 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 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 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 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 9B 06 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 64 FA 00 00 35 04 06 00 D3 36 7B D4 D8 27 33 59 87 54 56 2C 48 15 [06:32:59]CheckFolder [06:32:59]dirname=/storage/ofd_packets [06:32:59]CheckFolder done [06:32:59]ProducePacketName [06:32:59]name=ofd_packets/00064100 [06:32:59]NVStorageSaveData ofd_packets/00064100 [06:32:59]File name is /storage/ofd_packets/00064100 [06:32:59]Write 479 bytes [06:32:59]NVStorageSaveData done [06:32:59]OFDSenderStorePacket done [06:32:59]KKMCreateOFDPacket done [06:32:59]NVStorageSaveData kkm_last_timestamp [06:32:59]File name is /storage/kkm_last_timestamp [06:32:59]Write 4 bytes [06:32:59]NVStorageSaveData done [06:32:59]ExternCall_PrintAddStr [06:32:59]wPrintStart [06:32:59]Write to MH i2c: 01 00 00 4A 11 5B [06:32:59]OFD Sender: Processing packet 64100 [packets to send 14, broken 13] [06:32:59]ProducePacketName [06:32:59]name=ofd_packets/00064100 [06:32:59]OFD Sender: To server: pG, [06:32:59]Write i2c OK [06:32:59]CommunicateWithHost lk.salyk.kg:30040 [06:32:59]MH_I2C_Read... [06:32:59]ConnectInit lk.salyk.kg [06:32:59]Read from MH i2c: 01 [06:32:59]MH_I2C_Read... [06:32:59]Read from MH i2c: 01 07 00 [06:32:59]MH_I2C_Read... [06:32:59]Read from MH i2c: 01 07 00 4A 11 00 00 00 00 00 FF 0F 70 [06:32:59]RasterBufferAndPrint [06:32:59]line Счет N : (3)73638 [06:32:59]line ИНН: 02508201610067 [06:32:59]line Контрольно-Кассовый Чек [06:32:59]line ПРОДАЖА [06:32:59]line Товар: 4870202521254 [06:32:59]line Чай холодный MAXI черный со вкусом клубн [06:32:59]line 1.000 * 125.00 [06:32:59]line = 125.00 [06:32:59]line НДС 12% НСП 1% [06:32:59]line > о реализуемом товаре [06:32:59]line Товар: 2000053020015 [06:32:59]line Бумажные стаканы 250мл 1шт [06:32:59]line 2.000 * 7.00 [06:32:59]line = 14.00 [06:32:59]line НДС 12% НСП 1% [06:32:59]line > о реализуемом товаре [06:32:59]line ИТОГО: 139.00 [06:32:59]line НСП 1% : 1.23 [06:32:59]line НДС 12% : 14.76 [06:32:59]line Наличными: 139.00 [06:32:59]line Безнал.: 0.00 [06:32:59]line Место: АЗС № 117 "Партнер Нефть" [06:32:59]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [06:32:59]line СНО: Общий режим [06:32:59]line Чек 20 05.06.2024 06:32 [06:32:59]line Смена: 375 ФФД: 1.0 [06:32:59]line ЗНМ: 0300000031 [06:32:59]line РНМ: 0000000000092737 [06:32:59]line Версия ККМ: 001 [06:32:59]line ФМ: 0000000000875074 [06:32:59]line ФД: 64100 [06:32:59]line ФПД: 232230959241255 [06:32:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T063259&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64100&fm=232230959241255&tin=02508201610067®Number=0000000000092737&sum=13900 [06:32:59]line 0 [06:32:59]written 0, free lines is 4095 [06:32:59]Connected sock=10 [06:32:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 C1 01 00 00 EE 10 B9 01 F0 0B 5A 03 01 00 03 00 AD 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 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 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 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 9B 06 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 64 FA 00 00 35 04 06 00 D3 36 7B D4 D8 27 33 59 87 54 56 2C 48 15 [06:32:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 65 D1 47 00 21 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 64 FA 00 00 F4 03 04 00 A7 B2 5F 66 B6 04 01 00 00 BC C5 F6 6D 03 2F 0E 18 [06:32:59]CommunicateWithHost err = 0 [06:32:59]CheckOFDResponse [06:32:59]1017 (14) - 77093643461234 [06:32:59]1041 (16) - 0000000000875074 [06:32:59]1040 (4) - 64100 [06:32:59]1012 (4) - 05.06.2024 00:34 [06:32:59]1206 (1) - 0 [06:32:59]OFD Sender: Remove packet 64100 [06:32:59]ProducePacketName [06:32:59]name=ofd_packets/00064100 [06:32:59]NVStorageDeleteData [06:32:59]Write to MH i2c: 01 00 00 7A 11 8B [06:32:59]Write i2c OK [06:32:59]MH_I2C_Read... [06:32:59]Read from MH i2c: 01 [06:32:59]MH_I2C_Read... [06:32:59]Read from MH i2c: 01 07 00 [06:32:59]MH_I2C_Read... [06:32:59]Read from MH i2c: 01 07 00 7A 11 00 00 00 00 00 7B 0C 19 [06:32:59]RasterBufferAndPrint [06:32:59]line [06:32:59]line [06:32:59]line [06:32:59]line [06:32:59]line [06:32:59]written 0, free lines is 3201 [06:32:59]MH_Cut [06:32:59]Write to MH i2c: D1 01 00 81 11 01 64 [06:32:59]Write i2c OK [06:32:59]MH_I2C_Read... [06:32:59]Read from MH i2c: D1 [06:32:59]MH_I2C_Read... [06:32:59]Read from MH i2c: D1 01 00 [06:32:59]MH_I2C_Read... [06:32:59]Read from MH i2c: D1 01 00 81 11 00 63 [06:32:59]Write to MH i2c: 01 00 00 82 11 93 [06:32:59]Write i2c OK [06:32:59]MH_I2C_Read... [06:33:00]OFD Sender: No OFD packet to send [06:33:00]*** Cut start [06:33:00]*** Partial cut [06:33:00]*** CUTSNS_PIN = 1 [06:33:00]*** CUTSNS_PIN = 0 [06:33:01]*** Brake cut motor [06:33:01]Read from MH i2c: 01 [06:33:01]MH_I2C_Read... [06:33:01]*** Stop cut motor [06:33:01]*** Cut end [06:33:01]Read from MH i2c: 01 07 00 [06:33:01]MH_I2C_Read... [06:33:01]Read from MH i2c: 01 07 00 82 11 00 00 00 00 00 FF 0F A8 [06:33:01]process_action close_receipt done [06:33:01]requested_data is exist [06:33:01]produce_requested_data [06:33:01]requested_item fm.sn is exist - process it [06:33:01]wFMCommunicate request_size=4 [06:33:01]MH_SAM_APDU [06:33:01]CAPDU: 80 11 00 00 [06:33:01]Write to MH i2c: E2 08 00 83 11 80 11 00 00 00 00 00 00 0E [06:33:01]Write i2c OK [06:33:01]MH_I2C_Read... [06:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:01]Read from MH i2c: E2 [06:33:01]MH_I2C_Read... [06:33:01]Read from MH i2c: E2 17 00 [06:33:01]MH_I2C_Read... [06:33:01]Read from MH i2c: E2 17 00 83 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 60 [06:33:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:33:01]wFMCommunicate OK [06:33:01]requested_item fd.num is exist - process it [06:33:01]SAM_PROTO_GetFieldsCounters [06:33:01]wFMCommunicate request_size=4 [06:33:01]MH_SAM_APDU [06:33:01]CAPDU: 80 13 00 00 [06:33:01]Write to MH i2c: E2 08 00 84 11 80 13 00 00 00 00 00 00 11 [06:33:01]Write i2c OK [06:33:01]MH_I2C_Read... [06:33:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:33:01]Read from MH i2c: E2 [06:33:01]MH_I2C_Read... [06:33:01]Read from MH i2c: E2 62 00 [06:33:01]MH_I2C_Read... [06:33:01]Read from MH i2c: E2 62 00 84 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 64 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [06:33:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 64 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:33:01]wFMCommunicate OK [06:33:01]SAM_PROTO_GetFieldsCounters done [06:33:01]requested_item shift.num is exist - process it [06:33:01]requested_item shift.opened is exist - process it [06:33:01]req_shift_opened [06:33:01]FM_GetShiftState [06:33:01]SAM_PROTO_GetShiftState [06:33:01]wFMCommunicate request_size=4 [06:33:01]MH_SAM_APDU [06:33:01]CAPDU: 80 13 01 00 [06:33:01]Write to MH i2c: E2 08 00 85 11 80 13 01 00 00 00 00 00 13 [06:33:01]Write i2c OK [06:33:01]MH_I2C_Read... [06:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:01]Read from MH i2c: E2 [06:33:01]MH_I2C_Read... [06:33:01]Read from MH i2c: E2 0E 00 [06:33:01]MH_I2C_Read... [06:33:01]Read from MH i2c: E2 0E 00 85 11 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 54 [06:33:01]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [06:33:01]wFMCommunicate OK [06:33:01]SAM_PROTO_GetShiftState done [06:33:01]FM_GetShiftState done [06:33:01]req_shift_opened done [06:33:01]requested_item shift.open_date is exist - process it [06:33:01]req_shift_open_date [06:33:01]req_shift_open_date done [06:33:01]produce_requested_data done [06:33:01]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64100,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [06:33:01]process_action_free close_receipt [06:33:01]json_value_free [06:33:01]json_value_free done [06:33:01]process_json_proto returns [06:33:01]Send response to host [06:33:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64100,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [06:33:01]free response buf [06:33:01]execute_script done [06:33:01]execute_script returns [06:33:01]free content buf [06:33:01]Sock 9.Close socket [06:33:01]Sock 9.Thread stoped [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:20]accept exits with 8 [06:51:20]New connection [06:51:20]New thread 3067276644 created [06:51:20]Thread 3067133284 joined [06:51:20]Waiting for new connection... [06:51:20] Sock 8.Parse request [06:51:20]Sock 8.Check first char [06:51:20]Sock 8.First char is OK [06:51:20]request: POST /json_proto HTTP/1.0 [06:51:20]Method: POST [06:51:20]URL: /json_proto [06:51:20]Method is POST - this is cgi request [06:51:20]url: /json_proto [06:51:20]query_string will be loaded in cgi processing [06:51:20]execute_cgi json_proto POST (null) [06:51:20]execute_cgi path=json_proto method=POST [06:51:20]POST find Content-Length [06:51:20]Host: 172.17.60.69:8080 [06:51:20]Content-Length: 621 [06:51:20]Content-Type: application/json [06:51:20] [06:51:20]POST finish read [06:51:20]Found Content-Length = 621 [06:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73641", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red 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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:20]execute_script... [06: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)73641", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red 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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:20]POST & json_proto [06:51:20]process_json_proto [06:51:20]json parsed OK: [06:51:20]protocol is kg_v1.0 [06:51:20]action value=close_receipt [06:51:20]process_action close_receipt [06:51:20]cmd_close_receipt [06:51:20]MH_GetDate [06:51:20]Write to MH i2c: F0 00 00 86 11 86 [06:51:20]Write i2c OK [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: F0 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: F0 09 00 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: F0 09 00 86 11 00 EA 0A 60 66 D2 83 5F 66 63 [06:51:20]GetLastDocTimeStamp 1717569179 [06:51:20]current date 1717570282 [06:51:20]FM_GetShiftState [06:51:20]SAM_PROTO_GetShiftState [06:51:20]wFMCommunicate request_size=4 [06:51:20]MH_SAM_APDU [06:51:20]CAPDU: 80 13 01 00 [06:51:20]Write to MH i2c: E2 08 00 87 11 80 13 01 00 00 00 00 00 15 [06:51:20]Write i2c OK [06:51:20]MH_I2C_Read... [06:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:20]Read from MH i2c: E2 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: E2 0E 00 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: E2 0E 00 87 11 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 56 [06:51:20]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [06:51:20]wFMCommunicate OK [06:51:20]SAM_PROTO_GetShiftState done [06:51:20]FM_GetShiftState done [06:51:20]opened in 1717545925 [06:51:20]opened+sec_in_day 1717632325 [06:51:20]quantity*price = 15000 [06:51:20]sum+1 = 15001 [06:51:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 21 05.06.2024 06:51 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64101 ФПД: 166621825092985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T065122&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64101&fm=166621825092985&tin=02508201610067®Number=0000000000092737&sum=15000 0 [06:51:21]StoreToDocumentArchive [06:51:21]shift 375 fd 64101 [06:51:21]save to /storage/0375/doc_00064101 [06:51:21]save last doc name /storage/0375/doc_00064101 to /storage/kkm_last_doc_name [06:51:21]save OK [06:51:21]Clear old archive folders... [06:51:21]ProcessDocumentItem done err = 0, tmpTLVsize=274 [06:51:21]tlvbuf is 01088D30 [06:51:21]SAM_PROTO_ClearQueue [06:51:21]wFMCommunicate request_size=4 [06:51:21]MH_SAM_APDU [06:51:21]CAPDU: 80 09 00 00 [06:51:21]Write to MH i2c: E2 08 00 94 11 80 09 00 00 00 00 00 00 17 [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:51:21]Read from MH i2c: E2 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 94 11 00 90 00 19 [06:51:21]RAPDU: 90 00 [06:51:21]wFMCommunicate OK [06:51:21]SAM_PROTO_ClearQueue done [06:51:21]KKMCreateOFDPacket [06:51:21]OFDProtocolAddRootSTLVToBuf [06:51:21]FM_MakeSignedData [06:51:21]FM_MakeSignedData [06:51:21]SAM_PROTO_SignData [06:51:21]wFMCommunicate request_size=4 [06:51:21]MH_SAM_APDU [06:51:21]CAPDU: 80 0D 01 02 [06:51:21]Write to MH i2c: E2 08 00 95 11 80 0D 01 02 00 00 00 00 1F [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:51:21]Read from MH i2c: E2 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 95 11 00 90 00 1A [06:51:21]RAPDU: 90 00 [06:51:21]wFMCommunicate OK [06:51:21]wFMCommunicate request_size=255 [06:51:21]MH_SAM_APDU [06:51:21]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 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 52 65 64 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 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 15 00 00 00 F4 03 04 00 EA 0A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [06:51:21]Write to MH i2c: E2 02 01 96 11 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 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 52 65 64 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 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 15 00 00 00 F4 03 04 00 EA 0A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 81 [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:21]Read from MH i2c: E2 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 96 11 00 90 00 1B [06:51:21]RAPDU: 90 00 [06:51:21]wFMCommunicate OK [06:51:21]wFMCommunicate request_size=33 [06:51:21]MH_SAM_APDU [06:51:21]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 65 FA 00 00 35 04 06 00 97 8A AA B2 4D 79 [06:51:21]Write to MH i2c: E2 24 00 97 11 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 65 FA 00 00 35 04 06 00 97 8A AA B2 4D 79 00 00 52 [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:21]Read from MH i2c: E2 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 97 11 00 90 00 1C [06:51:21]RAPDU: 90 00 [06:51:21]wFMCommunicate OK [06:51:21]wFMCommunicate request_size=4 [06:51:21]MH_SAM_APDU [06:51:21]CAPDU: 80 0D 03 02 [06:51:21]Write to MH i2c: E2 08 00 98 11 80 0D 03 02 00 00 00 00 24 [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:51:21]Read from MH i2c: E2 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 0B 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 0B 00 98 11 00 CA 0F C1 D1 E6 FC 5D C9 90 00 98 [06:51:21]RAPDU: CA 0F C1 D1 E6 FC 5D C9 90 00 [06:51:21]wFMCommunicate OK [06:51:21]SAM_PROTO_SignData done [06:51:21]FM_MakeSignedData done [06:51:21]CreateOFDProtocolMessage [06:51:21]wFMCommunicate request_size=4 [06:51:21]MH_SAM_APDU [06:51:21]CAPDU: 80 11 00 00 [06:51:21]Write to MH i2c: E2 08 00 99 11 80 11 00 00 00 00 00 00 24 [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:21]Read from MH i2c: E2 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 17 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 17 00 99 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 76 [06:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:51:21]wFMCommunicate OK [06:51:21]CreateOFDProtocolMessage done [06:51:21]OFDSenderStorePacket 64101 [06:51:21]StoreOFDPacket docnum=64101 [06:51:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 D0 50 1E 01 3D 74 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 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 52 65 64 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 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 15 00 00 00 F4 03 04 00 EA 0A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 65 FA 00 00 35 04 06 00 97 8A AA B2 4D 79 CA 0F C1 D1 E6 FC 5D C9 [06:51:21]CheckFolder [06:51:21]dirname=/storage/ofd_packets [06:51:21]CheckFolder done [06:51:21]ProducePacketName [06:51:21]name=ofd_packets/00064101 [06:51:21]NVStorageSaveData ofd_packets/00064101 [06:51:21]File name is /storage/ofd_packets/00064101 [06:51:21]Write 324 bytes [06:51:21]NVStorageSaveData done [06:51:21]OFDSenderStorePacket done [06:51:21]KKMCreateOFDPacket done [06:51:21]NVStorageSaveData kkm_last_timestamp [06:51:21]File name is /storage/kkm_last_timestamp [06:51:21]Write 4 bytes [06:51:21]NVStorageSaveData done [06:51:21]ExternCall_PrintAddStr [06:51:21]wPrintStart [06:51:21]Write to MH i2c: 01 00 00 9A 11 AB [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: 01 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: 01 07 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: 01 07 00 9A 11 00 00 00 00 00 FF 0F C0 [06:51:21]RasterBufferAndPrint [06:51:21]line Счет N : (3)73641 [06:51:21]line ИНН: 02508201610067 [06:51:21]line Контрольно-Кассовый Чек [06:51:21]line ПРОДАЖА [06:51:21]line Товар: 46230614 [06:51:21]line Сигареты Richmond Red Edition [06:51:21]line 1.000 * 150.00 [06:51:21]line = 150.00 [06:51:21]line НДС 12% НСП 1% [06:51:21]line > о реализуемом товаре [06:51:21]line ИТОГО: 150.00 [06:51:21]line НСП 1% : 1.33 [06:51:21]line НДС 12% : 15.93 [06:51:21]line Наличными: 150.00 [06:51:21]line Безнал.: 0.00 [06:51:21]line Место: АЗС № 117 "Партнер Нефть" [06:51:21]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [06:51:21]line СНО: Общий режим [06:51:21]line Чек 21 05.06.2024 06:51 [06:51:21]line Смена: 375 ФФД: 1.0 [06:51:21]line ЗНМ: 0300000031 [06:51:21]line РНМ: 0000000000092737 [06:51:21]line Версия ККМ: 001 [06:51:21]line ФМ: 0000000000875074 [06:51:22]line ФД: 64101 [06:51:22]line ФПД: 166621825092985 [06:51:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T065122&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64101&fm=166621825092985&tin=02508201610067®Number=0000000000092737&sum=15000 [06:51:22]line 0 [06:51:22]OFD Sender: Processing packet 64101 [packets to send 14, broken 13] [06:51:22]ProducePacketName [06:51:22]name=ofd_packets/00064101 [06:51:22]OFD Sender: To server: pG, [06:51:22]CommunicateWithHost lk.salyk.kg:30040 [06:51:22]ConnectInit lk.salyk.kg [06:51:22]written 0, free lines is 4095 [06:51:22]Connected sock=10 [06:51:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 D0 50 1E 01 3D 74 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 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 52 65 64 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 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 15 00 00 00 F4 03 04 00 EA 0A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 65 FA 00 00 35 04 06 00 97 8A AA B2 4D 79 CA 0F C1 D1 E6 FC 5D C9 [06:51:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 F5 DE 47 00 10 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 65 FA 00 00 F4 03 04 00 F6 B6 5F 66 B6 04 01 00 00 CA DF A1 DE 01 A1 70 CB [06:51:22]CommunicateWithHost err = 0 [06:51:22]CheckOFDResponse [06:51:22]1017 (14) - 77093643461234 [06:51:22]1041 (16) - 0000000000875074 [06:51:22]1040 (4) - 64101 [06:51:22]1012 (4) - 05.06.2024 00:53 [06:51:22]1206 (1) - 0 [06:51:22]OFD Sender: Remove packet 64101 [06:51:22]ProducePacketName [06:51:22]name=ofd_packets/00064101 [06:51:22]NVStorageDeleteData [06:51:22]Write to MH i2c: 01 00 00 C3 11 D4 [06:51:22]Write i2c OK [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: 01 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: 01 07 00 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: 01 07 00 C3 11 00 00 00 00 00 D1 0C B8 [06:51:22]RasterBufferAndPrint [06:51:22]line [06:51:22]line [06:51:22]line [06:51:22]line [06:51:22]line [06:51:22]written 0, free lines is 3288 [06:51:22]MH_Cut [06:51:22]Write to MH i2c: D1 01 00 CA 11 01 AD [06:51:22]Write i2c OK [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: D1 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: D1 01 00 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: D1 01 00 CA 11 00 AC [06:51:22]Write to MH i2c: 01 00 00 CB 11 DC [06:51:22]Write i2c OK [06:51:22]MH_I2C_Read... [06:51:22]OFD Sender: No OFD packet to send [06:51:23]*** Cut start [06:51:23]*** Partial cut [06:51:23]*** CUTSNS_PIN = 1 [06:51:23]*** CUTSNS_PIN = 0 [06:51:23]*** Brake cut motor [06:51:23]Read from MH i2c: 01 [06:51:23]MH_I2C_Read... [06:51:23]*** Stop cut motor [06:51:23]*** Cut end [06:51:23]Read from MH i2c: 01 07 00 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: 01 07 00 CB 11 00 00 00 00 00 FF 0F F1 [06:51:23]process_action close_receipt done [06:51:23]requested_data is exist [06:51:23]produce_requested_data [06:51:23]requested_item fm.sn is exist - process it [06:51:23]wFMCommunicate request_size=4 [06:51:23]MH_SAM_APDU [06:51:23]CAPDU: 80 11 00 00 [06:51:23]Write to MH i2c: E2 08 00 CC 11 80 11 00 00 00 00 00 00 57 [06:51:23]Write i2c OK [06:51:23]MH_I2C_Read... [06:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:24]Read from MH i2c: E2 [06:51:24]MH_I2C_Read... [06:51:24]Read from MH i2c: E2 17 00 [06:51:24]MH_I2C_Read... [06:51:24]Read from MH i2c: E2 17 00 CC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A9 [06:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:51:24]wFMCommunicate OK [06:51:24]requested_item fd.num is exist - process it [06:51:24]SAM_PROTO_GetFieldsCounters [06:51:24]wFMCommunicate request_size=4 [06:51:24]MH_SAM_APDU [06:51:24]CAPDU: 80 13 00 00 [06:51:24]Write to MH i2c: E2 08 00 CD 11 80 13 00 00 00 00 00 00 5A [06:51:24]Write i2c OK [06:51:24]MH_I2C_Read... [06:51:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:24]Read from MH i2c: E2 [06:51:24]MH_I2C_Read... [06:51:24]Read from MH i2c: E2 62 00 [06:51:24]MH_I2C_Read... [06:51:24]Read from MH i2c: E2 62 00 CD 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 65 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [06:51:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 65 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:51:24]wFMCommunicate OK [06:51:24]SAM_PROTO_GetFieldsCounters done [06:51:24]requested_item shift.num is exist - process it [06:51:24]requested_item shift.opened is exist - process it [06:51:24]req_shift_opened [06:51:24]FM_GetShiftState [06:51:24]SAM_PROTO_GetShiftState [06:51:24]wFMCommunicate request_size=4 [06:51:24]MH_SAM_APDU [06:51:24]CAPDU: 80 13 01 00 [06:51:24]Write to MH i2c: E2 08 00 CE 11 80 13 01 00 00 00 00 00 5C [06:51:24]Write i2c OK [06:51:24]MH_I2C_Read... [06:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:24]Read from MH i2c: E2 [06:51:24]MH_I2C_Read... [06:51:24]Read from MH i2c: E2 0E 00 [06:51:24]MH_I2C_Read... [06:51:24]Read from MH i2c: E2 0E 00 CE 11 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 9D [06:51:24]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [06:51:24]wFMCommunicate OK [06:51:24]SAM_PROTO_GetShiftState done [06:51:24]FM_GetShiftState done [06:51:24]req_shift_opened done [06:51:24]requested_item shift.open_date is exist - process it [06:51:24]req_shift_open_date [06:51:24]req_shift_open_date done [06:51:24]produce_requested_data done [06:51:24]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64101,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [06:51:24]process_action_free close_receipt [06:51:24]json_value_free [06:51:24]json_value_free done [06:51:24]process_json_proto returns [06:51:24]Send response to host [06:51:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64101,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [06:51:24]free response buf [06:51:24]execute_script done [06:51:24]execute_script returns [06:51:24]free content buf [06:51:24]Sock 8.Close socket [06:51:24]Sock 8.Thread stoped [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:45]accept exits with 9 [06:54:45]New connection [06:54:45]New thread 3067133284 created [06:54:45]Thread 3067276644 joined [06:54:45]Waiting for new connection... [06:54:45] Sock 9.Parse request [06:54:45]Sock 9.Check first char [06:54:45]Sock 9.First char is OK [06:54:45]request: POST /json_proto HTTP/1.0 [06:54:45]Method: POST [06:54:45]URL: /json_proto [06:54:45]Method is POST - this is cgi request [06:54:45]url: /json_proto [06:54:45]query_string will be loaded in cgi processing [06:54:45]execute_cgi json_proto POST (null) [06:54:45]execute_cgi path=json_proto method=POST [06:54:45]POST find Content-Length [06:54:45]Host: 172.17.60.69:8080 [06:54:45]Content-Length: 620 [06:54:45]Content-Type: application/json [06:54:45] [06:54:45]POST finish read [06:54:45]Found Content-Length = 620 [06:54:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73642", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign 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" ] } } [06:54:45]execute_script... [06:54: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)73642", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign 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" ] } } [06:54:45]POST & json_proto [06:54:45]process_json_proto [06:54:45]json parsed OK: [06:54:45]protocol is kg_v1.0 [06:54:45]action value=close_receipt [06:54:45]process_action close_receipt [06:54:45]cmd_close_receipt [06:54:45]MH_GetDate [06:54:45]Write to MH i2c: F0 00 00 CF 11 CF [06:54:45]Write i2c OK [06:54:45]MH_I2C_Read... [06:54:45]Read from MH i2c: F0 [06:54:45]MH_I2C_Read... [06:54:45]Read from MH i2c: F0 09 00 [06:54:45]MH_I2C_Read... [06:54:45]Read from MH i2c: F0 09 00 CF 11 00 B7 0B 60 66 D2 83 5F 66 7A [06:54:45]GetLastDocTimeStamp 1717570282 [06:54:45]current date 1717570487 [06:54:45]FM_GetShiftState [06:54:45]SAM_PROTO_GetShiftState [06:54:45]wFMCommunicate request_size=4 [06:54:45]MH_SAM_APDU [06:54:45]CAPDU: 80 13 01 00 [06:54:45]Write to MH i2c: E2 08 00 D0 11 80 13 01 00 00 00 00 00 5E [06:54:45]Write i2c OK [06:54:45]MH_I2C_Read... [06:54:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:54:45]Read from MH i2c: E2 [06:54:45]MH_I2C_Read... [06:54:45]Read from MH i2c: E2 0E 00 [06:54:45]MH_I2C_Read... [06:54:45]Read from MH i2c: E2 0E 00 D0 11 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 9F [06:54:45]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [06:54:45]wFMCommunicate OK [06:54:45]SAM_PROTO_GetShiftState done [06:54:45]FM_GetShiftState done [06:54:45]opened in 1717545925 [06:54:45]opened+sec_in_day 1717632325 [06:54:45]quantity*price = 13000 [06:54:45]sum+1 = 13001 [06:54:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 22 05.06.2024 06:54 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64102 ФПД: 164082842183716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T065447&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64102&fm=164082842183716&tin=02508201610067®Number=0000000000092737&sum=13000 0 [06:54:46]StoreToDocumentArchive [06:54:46]shift 375 fd 64102 [06:54:46]save to /storage/0375/doc_00064102 [06:54:46]save last doc name /storage/0375/doc_00064102 to /storage/kkm_last_doc_name [06:54:46]save OK [06:54:46]Clear old archive folders... [06:54:46]ProcessDocumentItem done err = 0, tmpTLVsize=273 [06:54:46]tlvbuf is 00FF6370 [06:54:46]SAM_PROTO_ClearQueue [06:54:46]wFMCommunicate request_size=4 [06:54:46]MH_SAM_APDU [06:54:46]CAPDU: 80 09 00 00 [06:54:46]Write to MH i2c: E2 08 00 DD 11 80 09 00 00 00 00 00 00 60 [06:54:46]Write i2c OK [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: E2 [06:54:46]MH_I2C_Read... [06:54:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:54:46]Read from MH i2c: E2 03 00 [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: E2 03 00 DD 11 00 90 00 62 [06:54:46]RAPDU: 90 00 [06:54:46]wFMCommunicate OK [06:54:46]SAM_PROTO_ClearQueue done [06:54:46]KKMCreateOFDPacket [06:54:46]OFDProtocolAddRootSTLVToBuf [06:54:46]FM_MakeSignedData [06:54:46]FM_MakeSignedData [06:54:46]SAM_PROTO_SignData [06:54:46]wFMCommunicate request_size=4 [06:54:46]MH_SAM_APDU [06:54:46]CAPDU: 80 0D 01 02 [06:54:46]Write to MH i2c: E2 08 00 DE 11 80 0D 01 02 00 00 00 00 68 [06:54:46]Write i2c OK [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: E2 [06:54:46]MH_I2C_Read... [06:54:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:54:46]Read from MH i2c: E2 03 00 [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: E2 03 00 DE 11 00 90 00 63 [06:54:46]RAPDU: 90 00 [06:54:46]wFMCommunicate OK [06:54:46]wFMCommunicate request_size=255 [06:54:46]MH_SAM_APDU [06:54:46]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 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 16 00 00 00 F4 03 04 00 B7 0B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [06:54:46]Write to MH i2c: E2 02 01 DF 11 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 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 16 00 00 00 F4 03 04 00 B7 0B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 7B [06:54:46]Write i2c OK [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: E2 [06:54:46]MH_I2C_Read... [06:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:54:46]Read from MH i2c: E2 03 00 [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: E2 03 00 DF 11 00 90 00 64 [06:54:46]RAPDU: 90 00 [06:54:46]wFMCommunicate OK [06:54:46]wFMCommunicate request_size=32 [06:54:46]MH_SAM_APDU [06:54:46]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 66 FA 00 00 35 04 06 00 95 3B 83 85 A8 24 [06:54:46]Write to MH i2c: E2 23 00 E0 11 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 66 FA 00 00 35 04 06 00 95 3B 83 85 A8 24 00 00 CB [06:54:46]Write i2c OK [06:54:46]MH_I2C_Read... [06:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:54:46]Read from MH i2c: E2 [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: E2 03 00 [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: E2 03 00 E0 11 00 90 00 65 [06:54:46]RAPDU: 90 00 [06:54:46]wFMCommunicate OK [06:54:46]wFMCommunicate request_size=4 [06:54:46]MH_SAM_APDU [06:54:46]CAPDU: 80 0D 03 02 [06:54:46]Write to MH i2c: E2 08 00 E1 11 80 0D 03 02 00 00 00 00 6D [06:54:46]Write i2c OK [06:54:46]MH_I2C_Read... [06:54:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:54:46]Read from MH i2c: E2 [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: E2 0B 00 [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: E2 0B 00 E1 11 00 A6 D0 2D 74 E1 41 D2 48 90 00 C1 [06:54:46]RAPDU: A6 D0 2D 74 E1 41 D2 48 90 00 [06:54:46]wFMCommunicate OK [06:54:46]SAM_PROTO_SignData done [06:54:46]FM_MakeSignedData done [06:54:46]CreateOFDProtocolMessage [06:54:46]wFMCommunicate request_size=4 [06:54:46]MH_SAM_APDU [06:54:46]CAPDU: 80 11 00 00 [06:54:46]Write to MH i2c: E2 08 00 E2 11 80 11 00 00 00 00 00 00 6D [06:54:46]Write i2c OK [06:54:46]MH_I2C_Read... [06:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:54:46]Read from MH i2c: E2 [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: E2 17 00 [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: E2 17 00 E2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 BF [06:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:54:46]wFMCommunicate OK [06:54:46]CreateOFDProtocolMessage done [06:54:46]OFDSenderStorePacket 64102 [06:54:46]StoreOFDPacket docnum=64102 [06:54:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 4A FF 1D 01 D1 C8 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 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 16 00 00 00 F4 03 04 00 B7 0B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 66 FA 00 00 35 04 06 00 95 3B 83 85 A8 24 A6 D0 2D 74 E1 41 D2 48 [06:54:46]CheckFolder [06:54:46]dirname=/storage/ofd_packets [06:54:46]CheckFolder done [06:54:46]ProducePacketName [06:54:46]name=ofd_packets/00064102 [06:54:46]NVStorageSaveData ofd_packets/00064102 [06:54:46]File name is /storage/ofd_packets/00064102 [06:54:46]Write 323 bytes [06:54:46]NVStorageSaveData done [06:54:46]OFDSenderStorePacket done [06:54:46]KKMCreateOFDPacket done [06:54:46]NVStorageSaveData kkm_last_timestamp [06:54:46]File name is /storage/kkm_last_timestamp [06:54:46]Write 4 bytes [06:54:46]NVStorageSaveData done [06:54:46]ExternCall_PrintAddStr [06:54:46]wPrintStart [06:54:46]Write to MH i2c: 01 00 00 E3 11 F4 [06:54:46]Write i2c OK [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: 01 [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: 01 07 00 [06:54:46]MH_I2C_Read... [06:54:46]Read from MH i2c: 01 07 00 E3 11 00 00 00 00 00 FF 0F 09 [06:54:46]RasterBufferAndPrint [06:54:46]line Счет N : (3)73642 [06:54:46]line ИНН: 02508201610067 [06:54:46]line Контрольно-Кассовый Чек [06:54:46]line ПРОДАЖА [06:54:46]line Товар: 4780014240406 [06:54:46]line Сигареты Sovereign Blue [06:54:46]line 1.000 * 130.00 [06:54:46]line = 130.00 [06:54:46]line НДС 12% НСП 1% [06:54:46]line > о реализуемом товаре [06:54:46]line ИТОГО: 130.00 [06:54:46]line НСП 1% : 1.15 [06:54:46]line НДС 12% : 13.80 [06:54:46]line Наличными: 130.00 [06:54:46]line Безнал.: 0.00 [06:54:46]line Место: АЗС № 117 "Партнер Нефть" [06:54:46]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [06:54:46]line СНО: Общий режим [06:54:46]line Чек 22 05.06.2024 06:54 [06:54:46]line Смена: 375 ФФД: 1.0 [06:54:46]line ЗНМ: 0300000031 [06:54:46]line РНМ: 0000000000092737 [06:54:46]line Версия ККМ: 001 [06:54:46]line ФМ: 0000000000875074 [06:54:46]line ФД: 64102 [06:54:46]line ФПД: 164082842183716 [06:54:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T065447&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64102&fm=164082842183716&tin=02508201610067®Number=0000000000092737&sum=13000 [06:54:46]line 0 [06:54:46]written 0, free lines is 4095 [06:54:46]OFD Sender: Processing packet 64102 [packets to send 14, broken 13] [06:54:46]ProducePacketName [06:54:46]name=ofd_packets/00064102 [06:54:46]OFD Sender: To server: pG, [06:54:46]CommunicateWithHost lk.salyk.kg:30040 [06:54:46]ConnectInit lk.salyk.kg [06:54:46]Connected sock=10 [06:54:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 4A FF 1D 01 D1 C8 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 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 16 00 00 00 F4 03 04 00 B7 0B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 66 FA 00 00 35 04 06 00 95 3B 83 85 A8 24 A6 D0 2D 74 E1 41 D2 48 [06:54:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 AF 18 47 00 17 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 66 FA 00 00 F4 03 04 00 C3 B7 5F 66 B6 04 01 00 00 8E FC 52 60 C8 1B 3D 2D [06:54:47]CommunicateWithHost err = 0 [06:54:47]CheckOFDResponse [06:54:47]1017 (14) - 77093643461234 [06:54:47]1041 (16) - 0000000000875074 [06:54:47]1040 (4) - 64102 [06:54:47]1012 (4) - 05.06.2024 00:56 [06:54:47]1206 (1) - 0 [06:54:47]OFD Sender: Remove packet 64102 [06:54:47]ProducePacketName [06:54:47]name=ofd_packets/00064102 [06:54:47]NVStorageDeleteData [06:54:47]Write to MH i2c: 01 00 00 0B 12 1D [06:54:47]Write i2c OK [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: 01 [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: 01 07 00 [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: 01 07 00 0B 12 00 00 00 00 00 03 0D 34 [06:54:47]RasterBufferAndPrint [06:54:47]line [06:54:47]line [06:54:47]line [06:54:47]line [06:54:47]line [06:54:47]written 0, free lines is 3336 [06:54:47]MH_Cut [06:54:47]Write to MH i2c: D1 01 00 12 12 01 F6 [06:54:47]Write i2c OK [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: D1 [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: D1 01 00 [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: D1 01 00 12 12 00 F5 [06:54:47]Write to MH i2c: 01 00 00 13 12 25 [06:54:47]Write i2c OK [06:54:47]MH_I2C_Read... [06:54:47]OFD Sender: No OFD packet to send [06:54:47]*** Cut start [06:54:47]*** Partial cut [06:54:47]*** CUTSNS_PIN = 1 [06:54:47]*** CUTSNS_PIN = 0 [06:54:48]*** Brake cut motor [06:54:48]Read from MH i2c: 01 [06:54:48]MH_I2C_Read... [06:54:48]*** Stop cut motor [06:54:48]*** Cut end [06:54:48]Read from MH i2c: 01 07 00 [06:54:48]MH_I2C_Read... [06:54:48]Read from MH i2c: 01 07 00 13 12 00 00 00 00 00 FF 0F 3A [06:54:48]process_action close_receipt done [06:54:48]requested_data is exist [06:54:48]produce_requested_data [06:54:48]requested_item fm.sn is exist - process it [06:54:48]wFMCommunicate request_size=4 [06:54:48]MH_SAM_APDU [06:54:48]CAPDU: 80 11 00 00 [06:54:48]Write to MH i2c: E2 08 00 14 12 80 11 00 00 00 00 00 00 A0 [06:54:48]Write i2c OK [06:54:48]MH_I2C_Read... [06:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:54:48]Read from MH i2c: E2 [06:54:48]MH_I2C_Read... [06:54:48]Read from MH i2c: E2 17 00 [06:54:48]MH_I2C_Read... [06:54:48]Read from MH i2c: E2 17 00 14 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F2 [06:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:54:48]wFMCommunicate OK [06:54:48]requested_item fd.num is exist - process it [06:54:48]SAM_PROTO_GetFieldsCounters [06:54:48]wFMCommunicate request_size=4 [06:54:48]MH_SAM_APDU [06:54:48]CAPDU: 80 13 00 00 [06:54:48]Write to MH i2c: E2 08 00 15 12 80 13 00 00 00 00 00 00 A3 [06:54:48]Write i2c OK [06:54:48]MH_I2C_Read... [06:54:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:54:48]Read from MH i2c: E2 [06:54:48]MH_I2C_Read... [06:54:48]Read from MH i2c: E2 62 00 [06:54:48]MH_I2C_Read... [06:54:48]Read from MH i2c: E2 62 00 15 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 66 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [06:54:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 66 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:54:48]wFMCommunicate OK [06:54:48]SAM_PROTO_GetFieldsCounters done [06:54:48]requested_item shift.num is exist - process it [06:54:48]requested_item shift.opened is exist - process it [06:54:48]req_shift_opened [06:54:48]FM_GetShiftState [06:54:48]SAM_PROTO_GetShiftState [06:54:48]wFMCommunicate request_size=4 [06:54:48]MH_SAM_APDU [06:54:48]CAPDU: 80 13 01 00 [06:54:48]Write to MH i2c: E2 08 00 16 12 80 13 01 00 00 00 00 00 A5 [06:54:48]Write i2c OK [06:54:48]MH_I2C_Read... [06:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:54:48]Read from MH i2c: E2 [06:54:48]MH_I2C_Read... [06:54:48]Read from MH i2c: E2 0E 00 [06:54:48]MH_I2C_Read... [06:54:48]Read from MH i2c: E2 0E 00 16 12 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 E6 [06:54:48]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [06:54:48]wFMCommunicate OK [06:54:48]SAM_PROTO_GetShiftState done [06:54:48]FM_GetShiftState done [06:54:48]req_shift_opened done [06:54:48]requested_item shift.open_date is exist - process it [06:54:48]req_shift_open_date [06:54:48]req_shift_open_date done [06:54:48]produce_requested_data done [06:54:48]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64102,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [06:54:48]process_action_free close_receipt [06:54:48]json_value_free [06:54:48]json_value_free done [06:54:48]process_json_proto returns [06:54:48]Send response to host [06:54:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64102,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [06:54:48]free response buf [06:54:48]execute_script done [06:54:48]execute_script returns [06:54:48]free content buf [06:54:48]Sock 9.Close socket [06:54:48]Sock 9.Thread stoped [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]accept exits with 8 [07:04:13]New connection [07:04:13]New thread 3067276644 created [07:04:13]Thread 3067133284 joined [07:04:13]Waiting for new connection... [07:04:13] Sock 8.Parse request [07:04:13]Sock 8.Check first char [07:04:13]Sock 8.First char is OK [07:04:13]request: POST /json_proto HTTP/1.0 [07:04:13]Method: POST [07:04:13]URL: /json_proto [07:04:13]Method is POST - this is cgi request [07:04:13]url: /json_proto [07:04:13]query_string will be loaded in cgi processing [07:04:13]execute_cgi json_proto POST (null) [07:04:13]execute_cgi path=json_proto method=POST [07:04:13]POST find Content-Length [07:04:13]Host: 172.17.60.69:8080 [07:04:13]Content-Length: 623 [07:04:13]Content-Type: application/json [07:04:13] [07:04:13]POST finish read [07:04:13]Found Content-Length = 623 [07:04:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73643", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal 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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:04:13]execute_script... [07:04:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73643", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal 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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:04:13]POST & json_proto [07:04:13]process_json_proto [07:04:13]json parsed OK: [07:04:13]protocol is kg_v1.0 [07:04:13]action value=close_receipt [07:04:13]process_action close_receipt [07:04:13]cmd_close_receipt [07:04:13]MH_GetDate [07:04:13]Write to MH i2c: F0 00 00 17 12 18 [07:04:13]Write i2c OK [07:04:13]MH_I2C_Read... [07:04:13]Read from MH i2c: F0 [07:04:13]MH_I2C_Read... [07:04:13]Read from MH i2c: F0 09 00 [07:04:13]MH_I2C_Read... [07:04:13]Read from MH i2c: F0 09 00 17 12 00 EF 0D 60 66 D2 83 5F 66 FD [07:04:13]GetLastDocTimeStamp 1717570487 [07:04:13]current date 1717571055 [07:04:13]FM_GetShiftState [07:04:13]SAM_PROTO_GetShiftState [07:04:13]wFMCommunicate request_size=4 [07:04:13]MH_SAM_APDU [07:04:13]CAPDU: 80 13 01 00 [07:04:13]Write to MH i2c: E2 08 00 18 12 80 13 01 00 00 00 00 00 A7 [07:04:13]Write i2c OK [07:04:13]MH_I2C_Read... [07:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:04:13]Read from MH i2c: E2 [07:04:13]MH_I2C_Read... [07:04:13]Read from MH i2c: E2 0E 00 [07:04:13]MH_I2C_Read... [07:04:13]Read from MH i2c: E2 0E 00 18 12 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 E8 [07:04:13]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [07:04:13]wFMCommunicate OK [07:04:13]SAM_PROTO_GetShiftState done [07:04:13]FM_GetShiftState done [07:04:13]opened in 1717545925 [07:04:13]opened+sec_in_day 1717632325 [07:04:13]quantity*price = 15000 [07:04:13]sum+1 = 15001 [07:04:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 23 05.06.2024 07:04 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64103 ФПД: 227444350949791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T070415&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64103&fm=227444350949791&tin=02508201610067®Number=0000000000092737&sum=15000 0 [07:04:14]StoreToDocumentArchive [07:04:14]shift 375 fd 64103 [07:04:14]save to /storage/0375/doc_00064103 [07:04:14]save last doc name /storage/0375/doc_00064103 to /storage/kkm_last_doc_name [07:04:14]save OK [07:04:14]Clear old archive folders... [07:04:14]ProcessDocumentItem done err = 0, tmpTLVsize=276 [07:04:14]tlvbuf is 00FAE030 [07:04:14]SAM_PROTO_ClearQueue [07:04:14]wFMCommunicate request_size=4 [07:04:14]MH_SAM_APDU [07:04:14]CAPDU: 80 09 00 00 [07:04:14]Write to MH i2c: E2 08 00 25 12 80 09 00 00 00 00 00 00 A9 [07:04:14]Write i2c OK [07:04:14]MH_I2C_Read... [07:04:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:04:14]Read from MH i2c: E2 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: E2 03 00 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: E2 03 00 25 12 00 90 00 AB [07:04:14]RAPDU: 90 00 [07:04:14]wFMCommunicate OK [07:04:14]SAM_PROTO_ClearQueue done [07:04:14]KKMCreateOFDPacket [07:04:14]OFDProtocolAddRootSTLVToBuf [07:04:14]FM_MakeSignedData [07:04:14]FM_MakeSignedData [07:04:14]SAM_PROTO_SignData [07:04:14]wFMCommunicate request_size=4 [07:04:14]MH_SAM_APDU [07:04:14]CAPDU: 80 0D 01 02 [07:04:14]Write to MH i2c: E2 08 00 26 12 80 0D 01 02 00 00 00 00 B1 [07:04:14]Write i2c OK [07:04:14]MH_I2C_Read... [07:04:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:04:14]Read from MH i2c: E2 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: E2 03 00 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: E2 03 00 26 12 00 90 00 AC [07:04:14]RAPDU: 90 00 [07:04:14]wFMCommunicate OK [07:04:14]wFMCommunicate request_size=255 [07:04:14]MH_SAM_APDU [07:04:14]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 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 52 6F 79 61 6C 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 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 17 00 00 00 F4 03 04 00 EF 0D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [07:04:14]Write to MH i2c: E2 02 01 27 12 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 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 52 6F 79 61 6C 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 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 17 00 00 00 F4 03 04 00 EF 0D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 00 00 BD [07:04:14]Write i2c OK [07:04:14]MH_I2C_Read... [07:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:04:14]Read from MH i2c: E2 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: E2 03 00 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: E2 03 00 27 12 00 90 00 AD [07:04:14]RAPDU: 90 00 [07:04:14]wFMCommunicate OK [07:04:14]wFMCommunicate request_size=35 [07:04:14]MH_SAM_APDU [07:04:14]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 67 FA 00 00 35 04 06 00 CE DC 03 BE 99 9F [07:04:14]Write to MH i2c: E2 26 00 28 12 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 67 FA 00 00 35 04 06 00 CE DC 03 BE 99 9F 00 00 AA [07:04:14]Write i2c OK [07:04:14]MH_I2C_Read... [07:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:04:14]Read from MH i2c: E2 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: E2 03 00 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: E2 03 00 28 12 00 90 00 AE [07:04:14]RAPDU: 90 00 [07:04:14]wFMCommunicate OK [07:04:14]wFMCommunicate request_size=4 [07:04:14]MH_SAM_APDU [07:04:14]CAPDU: 80 0D 03 02 [07:04:14]Write to MH i2c: E2 08 00 29 12 80 0D 03 02 00 00 00 00 B6 [07:04:14]Write i2c OK [07:04:14]MH_I2C_Read... [07:04:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:04:14]Read from MH i2c: E2 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: E2 0B 00 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: E2 0B 00 29 12 00 89 4A 0A DD 06 39 B6 BD 90 00 23 [07:04:14]RAPDU: 89 4A 0A DD 06 39 B6 BD 90 00 [07:04:14]wFMCommunicate OK [07:04:14]SAM_PROTO_SignData done [07:04:14]FM_MakeSignedData done [07:04:14]CreateOFDProtocolMessage [07:04:14]wFMCommunicate request_size=4 [07:04:14]MH_SAM_APDU [07:04:14]CAPDU: 80 11 00 00 [07:04:14]Write to MH i2c: E2 08 00 2A 12 80 11 00 00 00 00 00 00 B6 [07:04:14]Write i2c OK [07:04:14]MH_I2C_Read... [07:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:04:14]Read from MH i2c: E2 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: E2 17 00 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: E2 17 00 2A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 08 [07:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:04:14]wFMCommunicate OK [07:04:14]CreateOFDProtocolMessage done [07:04:14]OFDSenderStorePacket 64103 [07:04:14]StoreOFDPacket docnum=64103 [07:04:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 E2 0C 20 01 4F 8E 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 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 52 6F 79 61 6C 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 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 17 00 00 00 F4 03 04 00 EF 0D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 67 FA 00 00 35 04 06 00 CE DC 03 BE 99 9F 89 4A 0A DD 06 39 B6 BD [07:04:14]CheckFolder [07:04:14]dirname=/storage/ofd_packets [07:04:14]CheckFolder done [07:04:14]ProducePacketName [07:04:14]name=ofd_packets/00064103 [07:04:14]NVStorageSaveData ofd_packets/00064103 [07:04:14]File name is /storage/ofd_packets/00064103 [07:04:14]Write 326 bytes [07:04:14]NVStorageSaveData done [07:04:14]OFDSenderStorePacket done [07:04:14]KKMCreateOFDPacket done [07:04:14]NVStorageSaveData kkm_last_timestamp [07:04:14]File name is /storage/kkm_last_timestamp [07:04:14]Write 4 bytes [07:04:14]NVStorageSaveData done [07:04:14]ExternCall_PrintAddStr [07:04:14]wPrintStart [07:04:14]Write to MH i2c: 01 00 00 2B 12 3D [07:04:14]Write i2c OK [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: 01 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: 01 07 00 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: 01 07 00 2B 12 00 00 00 00 00 FF 0F 52 [07:04:14]RasterBufferAndPrint [07:04:14]line Счет N : (3)73643 [07:04:14]line ИНН: 02508201610067 [07:04:14]line Контрольно-Кассовый Чек [07:04:14]line ПРОДАЖА [07:04:14]line Товар: 48747073 [07:04:14]line Сигареты Richmond Royal Edition [07:04:14]line 1.000 * 150.00 [07:04:14]line = 150.00 [07:04:14]line НДС 12% НСП 1% [07:04:14]line > о реализуемом товаре [07:04:14]line ИТОГО: 150.00 [07:04:14]line НСП 1% : 1.33 [07:04:14]line НДС 12% : 15.93 [07:04:14]line Наличными: 150.00 [07:04:14]line Безнал.: 0.00 [07:04:14]line Место: АЗС № 117 "Партнер Нефть" [07:04:14]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:04:14]line СНО: Общий режим [07:04:14]line Чек 23 05.06.2024 07:04 [07:04:15]line Смена: 375 ФФД: 1.0 [07:04:15]line ЗНМ: 0300000031 [07:04:15]line РНМ: 0000000000092737 [07:04:15]line Версия ККМ: 001 [07:04:15]line ФМ: 0000000000875074 [07:04:15]line ФД: 64103 [07:04:15]line ФПД: 227444350949791 [07:04:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T070415&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64103&fm=227444350949791&tin=02508201610067®Number=0000000000092737&sum=15000 [07:04:15]line 0 [07:04:15]OFD Sender: Processing packet 64103 [packets to send 14, broken 13] [07:04:15]ProducePacketName [07:04:15]name=ofd_packets/00064103 [07:04:15]OFD Sender: To server: pG, [07:04:15]CommunicateWithHost lk.salyk.kg:30040 [07:04:15]ConnectInit lk.salyk.kg [07:04:15]written 0, free lines is 4095 [07:04:15]Connected sock=10 [07:04:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 E2 0C 20 01 4F 8E 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 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 52 6F 79 61 6C 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 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 17 00 00 00 F4 03 04 00 EF 0D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 67 FA 00 00 35 04 06 00 CE DC 03 BE 99 9F 89 4A 0A DD 06 39 B6 BD [07:04:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 16 F1 47 00 87 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 67 FA 00 00 F4 03 04 00 FB B9 5F 66 B6 04 01 00 00 69 6E FF 6D 63 81 64 01 [07:04:15]CommunicateWithHost err = 0 [07:04:15]CheckOFDResponse [07:04:15]1017 (14) - 77093643461234 [07:04:15]1041 (16) - 0000000000875074 [07:04:15]1040 (4) - 64103 [07:04:15]1012 (4) - 05.06.2024 01:06 [07:04:15]1206 (1) - 0 [07:04:15]OFD Sender: Remove packet 64103 [07:04:15]ProducePacketName [07:04:15]name=ofd_packets/00064103 [07:04:15]NVStorageDeleteData [07:04:15]Write to MH i2c: 01 00 00 54 12 66 [07:04:15]Write i2c OK [07:04:15]MH_I2C_Read... [07:04:15]Read from MH i2c: 01 [07:04:15]MH_I2C_Read... [07:04:15]Read from MH i2c: 01 07 00 [07:04:15]MH_I2C_Read... [07:04:15]Read from MH i2c: 01 07 00 54 12 00 00 00 00 00 CA 0C 43 [07:04:15]RasterBufferAndPrint [07:04:15]line [07:04:15]line [07:04:15]line [07:04:15]line [07:04:15]line [07:04:15]written 0, free lines is 3279 [07:04:15]MH_Cut [07:04:15]Write to MH i2c: D1 01 00 5B 12 01 3F [07:04:15]Write i2c OK [07:04:15]MH_I2C_Read... [07:04:15]Read from MH i2c: D1 [07:04:15]MH_I2C_Read... [07:04:15]Read from MH i2c: D1 01 00 [07:04:15]MH_I2C_Read... [07:04:15]Read from MH i2c: D1 01 00 5B 12 00 3E [07:04:15]Write to MH i2c: 01 00 00 5C 12 6E [07:04:15]Write i2c OK [07:04:15]MH_I2C_Read... [07:04:15]OFD Sender: No OFD packet to send [07:04:16]*** Cut start [07:04:16]*** Partial cut [07:04:16]*** CUTSNS_PIN = 1 [07:04:16]*** CUTSNS_PIN = 0 [07:04:16]*** Brake cut motor [07:04:16]Read from MH i2c: 01 [07:04:16]MH_I2C_Read... [07:04:16]*** Stop cut motor [07:04:16]*** Cut end [07:04:16]Read from MH i2c: 01 07 00 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: 01 07 00 5C 12 00 00 00 00 00 FF 0F 83 [07:04:16]process_action close_receipt done [07:04:16]requested_data is exist [07:04:16]produce_requested_data [07:04:16]requested_item fm.sn is exist - process it [07:04:16]wFMCommunicate request_size=4 [07:04:16]MH_SAM_APDU [07:04:16]CAPDU: 80 11 00 00 [07:04:16]Write to MH i2c: E2 08 00 5D 12 80 11 00 00 00 00 00 00 E9 [07:04:16]Write i2c OK [07:04:16]MH_I2C_Read... [07:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:04:17]Read from MH i2c: E2 [07:04:17]MH_I2C_Read... [07:04:17]Read from MH i2c: E2 17 00 [07:04:17]MH_I2C_Read... [07:04:17]Read from MH i2c: E2 17 00 5D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3B [07:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:04:17]wFMCommunicate OK [07:04:17]requested_item fd.num is exist - process it [07:04:17]SAM_PROTO_GetFieldsCounters [07:04:17]wFMCommunicate request_size=4 [07:04:17]MH_SAM_APDU [07:04:17]CAPDU: 80 13 00 00 [07:04:17]Write to MH i2c: E2 08 00 5E 12 80 13 00 00 00 00 00 00 EC [07:04:17]Write i2c OK [07:04:17]MH_I2C_Read... [07:04:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:04:17]Read from MH i2c: E2 [07:04:17]MH_I2C_Read... [07:04:17]Read from MH i2c: E2 62 00 [07:04:17]MH_I2C_Read... [07:04:17]Read from MH i2c: E2 62 00 5E 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 67 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [07:04:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 67 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:04:17]wFMCommunicate OK [07:04:17]SAM_PROTO_GetFieldsCounters done [07:04:17]requested_item shift.num is exist - process it [07:04:17]requested_item shift.opened is exist - process it [07:04:17]req_shift_opened [07:04:17]FM_GetShiftState [07:04:17]SAM_PROTO_GetShiftState [07:04:17]wFMCommunicate request_size=4 [07:04:17]MH_SAM_APDU [07:04:17]CAPDU: 80 13 01 00 [07:04:17]Write to MH i2c: E2 08 00 5F 12 80 13 01 00 00 00 00 00 EE [07:04:17]Write i2c OK [07:04:17]MH_I2C_Read... [07:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:04:17]Read from MH i2c: E2 [07:04:17]MH_I2C_Read... [07:04:17]Read from MH i2c: E2 0E 00 [07:04:17]MH_I2C_Read... [07:04:17]Read from MH i2c: E2 0E 00 5F 12 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 2F [07:04:17]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [07:04:17]wFMCommunicate OK [07:04:17]SAM_PROTO_GetShiftState done [07:04:17]FM_GetShiftState done [07:04:17]req_shift_opened done [07:04:17]requested_item shift.open_date is exist - process it [07:04:17]req_shift_open_date [07:04:17]req_shift_open_date done [07:04:17]produce_requested_data done [07:04:17]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64103,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [07:04:17]process_action_free close_receipt [07:04:17]json_value_free [07:04:17]json_value_free done [07:04:17]process_json_proto returns [07:04:17]Send response to host [07:04:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64103,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [07:04:17]free response buf [07:04:17]execute_script done [07:04:17]execute_script returns [07:04:17]free content buf [07:04:17]Sock 8.Close socket [07:04:17]Sock 8.Thread stoped [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:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19: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:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35: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:28]int [07:46:28]Write to MH i2c: 01 00 00 60 12 72 [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 [07:46:28]MH_I2C_Read... [07:46:28]*** FLAG_PRN_PAP1 set [07:46:28]*** FLAG_PRN_PAP1 reset [07:46:28]Read from MH i2c: 01 07 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 07 00 60 12 00 00 00 00 00 FF 0F 87 [07:46:28]state=0 [07:46:28]int [07:46:28]Write to MH i2c: 01 00 00 61 12 73 [07:46:28]*** FLAG_PRN_PAP1 set [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 07 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 07 00 61 12 00 01 00 00 00 FF 0F 89 [07:46:28]state=0 [07:46:28]No paper [07:46:28]int [07:46:28]Write to MH i2c: 01 00 00 62 12 74 [07:46:28]*** FLAG_PRN_PAP2 set [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 07 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 07 00 62 12 00 03 00 00 00 FF 0F 8C [07:46:28]state=0 [07:46:28]No paper [07:46:28]Cover opened [07:46:32]int [07:46:32]Write to MH i2c: 01 00 00 63 12 75 [07:46:32]Write i2c OK [07:46:32]MH_I2C_Read... [07:46:32]Read from MH i2c: 01 [07:46:32]MH_I2C_Read... [07:46:32]Read from MH i2c: 01 07 00 [07:46:32]MH_I2C_Read... [07:46:32]*** FLAG_PRN_PAP2 reset [07:46:32]*** FLAG_PRN_PAP1 reset [07:46:32]Read from MH i2c: 01 07 00 63 12 00 00 00 00 00 FF 0F 8A [07:46:32]state=3 [07:46:32]Cover closed [07:46:32]OFD Sender: No OFD packet to send [07:46:35]accept exits with 9 [07:46:35]New connection [07:46:35]New thread 3067133284 created [07:46:35]Thread 3067276644 joined [07:46:35]Waiting for new connection... [07:46:35] Sock 9.Parse request [07:46:35]Sock 9.Check first char [07:46:35]Sock 9.First char is OK [07:46:35]request: POST /json_proto HTTP/1.0 [07:46:35]Method: POST [07:46:35]URL: /json_proto [07:46:35]Method is POST - this is cgi request [07:46:35]url: /json_proto [07:46:35]query_string will be loaded in cgi processing [07:46:35]execute_cgi json_proto POST (null) [07:46:35]execute_cgi path=json_proto method=POST [07:46:35]POST find Content-Length [07:46:35]Host: 172.17.60.69:8080 [07:46:35]Content-Length: 1103 [07:46:35]Content-Type: application/json [07:46:35] [07:46:35]POST finish read [07:46:35]Found Content-Length = 1103 [07:46:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73644", "tax_sys" : 0, "items" : [ { "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:35]execute_script... [07:46: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)73644", "tax_sys" : 0, "items" : [ { "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:35]POST & json_proto [07:46:35]process_json_proto [07:46:35]json parsed OK: [07:46:35]protocol is kg_v1.0 [07:46:35]action value=close_receipt [07:46:35]process_action close_receipt [07:46:35]cmd_close_receipt [07:46:35]MH_GetDate [07:46:35]Write to MH i2c: F0 00 00 64 12 65 [07:46:35]Write i2c OK [07:46:35]MH_I2C_Read... [07:46:35]Read from MH i2c: F0 [07:46:35]MH_I2C_Read... [07:46:35]Read from MH i2c: F0 09 00 [07:46:35]MH_I2C_Read... [07:46:35]Read from MH i2c: F0 09 00 64 12 00 DD 17 60 66 D2 83 5F 66 42 [07:46:35]GetLastDocTimeStamp 1717571055 [07:46:35]current date 1717573597 [07:46:35]FM_GetShiftState [07:46:35]SAM_PROTO_GetShiftState [07:46:35]wFMCommunicate request_size=4 [07:46:35]MH_SAM_APDU [07:46:35]CAPDU: 80 13 01 00 [07:46:35]Write to MH i2c: E2 08 00 65 12 80 13 01 00 00 00 00 00 F4 [07:46:35]Write i2c OK [07:46:35]MH_I2C_Read... [07:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:35]Read from MH i2c: E2 [07:46:35]MH_I2C_Read... [07:46:35]Read from MH i2c: E2 0E 00 [07:46:35]MH_I2C_Read... [07:46:35]Read from MH i2c: E2 0E 00 65 12 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 35 [07:46:35]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [07:46:35]wFMCommunicate OK [07:46:35]SAM_PROTO_GetShiftState done [07:46:35]FM_GetShiftState done [07:46:35]opened in 1717545925 [07:46:35]opened+sec_in_day 1717632325 [07:46:35]quantity*price = 3500 [07:46:35]sum+1 = 3501 [07:46:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 0.00 Безнал.: 160.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 24 05.06.2024 07:46 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64104 ФПД: 259815546657456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T074637&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64104&fm=259815546657456&tin=02508201610067®Number=0000000000092737&sum=16000 0 [07:46:36]StoreToDocumentArchive [07:46:36]shift 375 fd 64104 [07:46:36]save to /storage/0375/doc_00064104 [07:46:36]save last doc name /storage/0375/doc_00064104 to /storage/kkm_last_doc_name [07:46:36]save OK [07:46:36]Clear old archive folders... [07:46:36]ProcessDocumentItem done err = 0, tmpTLVsize=387 [07:46:36]tlvbuf is 0108C640 [07:46:36]SAM_PROTO_ClearQueue [07:46:36]wFMCommunicate request_size=4 [07:46:36]MH_SAM_APDU [07:46:36]CAPDU: 80 09 00 00 [07:46:36]Write to MH i2c: E2 08 00 72 12 80 09 00 00 00 00 00 00 F6 [07:46:36]Write i2c OK [07:46:36]MH_I2C_Read... [07:46:36]Read from MH i2c: E2 [07:46:36]MH_I2C_Read... [07:46:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:36]Read from MH i2c: E2 03 00 [07:46:36]MH_I2C_Read... [07:46:36]Read from MH i2c: E2 03 00 72 12 00 90 00 F8 [07:46:36]RAPDU: 90 00 [07:46:36]wFMCommunicate OK [07:46:36]SAM_PROTO_ClearQueue done [07:46:36]KKMCreateOFDPacket [07:46:36]OFDProtocolAddRootSTLVToBuf [07:46:36]FM_MakeSignedData [07:46:36]FM_MakeSignedData [07:46:36]SAM_PROTO_SignData [07:46:36]wFMCommunicate request_size=4 [07:46:36]MH_SAM_APDU [07:46:36]CAPDU: 80 0D 01 02 [07:46:36]Write to MH i2c: E2 08 00 73 12 80 0D 01 02 00 00 00 00 FE [07:46:36]Write i2c OK [07:46:36]MH_I2C_Read... [07:46:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:36]Read from MH i2c: E2 [07:46:36]MH_I2C_Read... [07:46:36]Read from MH i2c: E2 03 00 [07:46:36]MH_I2C_Read... [07:46:36]Read from MH i2c: E2 03 00 73 12 00 90 00 F9 [07:46:36]RAPDU: 90 00 [07:46:36]wFMCommunicate OK [07:46:36]wFMCommunicate request_size=255 [07:46:36]MH_SAM_APDU [07:46:36]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [07:46:36]Write to MH i2c: E2 02 01 74 12 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 AD [07:46:36]Write i2c OK [07:46:36]MH_I2C_Read... [07:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:36]Read from MH i2c: E2 [07:46:36]MH_I2C_Read... [07:46:36]Read from MH i2c: E2 03 00 [07:46:36]MH_I2C_Read... [07:46:36]Read from MH i2c: E2 03 00 74 12 00 90 00 FA [07:46:36]RAPDU: 90 00 [07:46:36]wFMCommunicate OK [07:46:36]wFMCommunicate request_size=146 [07:46:36]MH_SAM_APDU [07:46:36]CAPDU: 80 0D 02 02 8D 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 DD 17 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 68 FA 00 00 35 04 06 00 EC 4D 05 5D 9A B0 [07:46:36]Write to MH i2c: E2 95 00 75 12 80 0D 02 02 8D 00 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 DD 17 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 68 FA 00 00 35 04 06 00 EC 4D 05 5D 9A B0 00 00 D9 [07:46:36]Write i2c OK [07:46:36]MH_I2C_Read... [07:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:37]Read from MH i2c: E2 [07:46:37]MH_I2C_Read... [07:46:37]Read from MH i2c: E2 03 00 [07:46:37]MH_I2C_Read... [07:46:37]Read from MH i2c: E2 03 00 75 12 00 90 00 FB [07:46:37]RAPDU: 90 00 [07:46:37]wFMCommunicate OK [07:46:37]wFMCommunicate request_size=4 [07:46:37]MH_SAM_APDU [07:46:37]CAPDU: 80 0D 03 02 [07:46:37]Write to MH i2c: E2 08 00 76 12 80 0D 03 02 00 00 00 00 03 [07:46:37]Write i2c OK [07:46:37]MH_I2C_Read... [07:46:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:37]Read from MH i2c: E2 [07:46:37]MH_I2C_Read... [07:46:37]Read from MH i2c: E2 0B 00 [07:46:37]MH_I2C_Read... [07:46:37]Read from MH i2c: E2 0B 00 76 12 00 8F CC 75 6B 21 68 24 1F 90 00 0B [07:46:37]RAPDU: 8F CC 75 6B 21 68 24 1F 90 00 [07:46:37]wFMCommunicate OK [07:46:37]SAM_PROTO_SignData done [07:46:37]FM_MakeSignedData done [07:46:37]CreateOFDProtocolMessage [07:46:37]wFMCommunicate request_size=4 [07:46:37]MH_SAM_APDU [07:46:37]CAPDU: 80 11 00 00 [07:46:37]Write to MH i2c: E2 08 00 77 12 80 11 00 00 00 00 00 00 03 [07:46:37]Write i2c OK [07:46:37]MH_I2C_Read... [07:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:37]Read from MH i2c: E2 [07:46:37]MH_I2C_Read... [07:46:37]Read from MH i2c: E2 17 00 [07:46:37]MH_I2C_Read... [07:46:37]Read from MH i2c: E2 17 00 77 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 55 [07:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:46:37]wFMCommunicate OK [07:46:37]CreateOFDProtocolMessage done [07:46:37]OFDSenderStorePacket 64104 [07:46:37]StoreOFDPacket docnum=64104 [07:46:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 97 01 00 00 A1 C6 8F 01 77 C6 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 DD 17 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 68 FA 00 00 35 04 06 00 EC 4D 05 5D 9A B0 8F CC 75 6B 21 68 24 1F [07:46:37]CheckFolder [07:46:37]dirname=/storage/ofd_packets [07:46:37]CheckFolder done [07:46:37]ProducePacketName [07:46:37]name=ofd_packets/00064104 [07:46:37]NVStorageSaveData ofd_packets/00064104 [07:46:37]File name is /storage/ofd_packets/00064104 [07:46:37]Write 437 bytes [07:46:37]NVStorageSaveData done [07:46:37]OFDSenderStorePacket done [07:46:37]KKMCreateOFDPacket done [07:46:37]NVStorageSaveData kkm_last_timestamp [07:46:37]File name is /storage/kkm_last_timestamp [07:46:37]Write 4 bytes [07:46:37]NVStorageSaveData done [07:46:37]ExternCall_PrintAddStr [07:46:37]wPrintStart [07:46:37]Write to MH i2c: 01 00 00 78 12 8A [07:46:37]OFD Sender: Processing packet 64104 [packets to send 14, broken 13] [07:46:37]ProducePacketName [07:46:37]name=ofd_packets/00064104 [07:46:37]Write i2c OK [07:46:37]MH_I2C_Read... [07:46:37]Read from MH i2c: 01 [07:46:37]MH_I2C_Read... [07:46:37]OFD Sender: To server: pG, [07:46:37]CommunicateWithHost lk.salyk.kg:30040 [07:46:37]ConnectInit lk.salyk.kg [07:46:37]Read from MH i2c: 01 07 00 [07:46:37]MH_I2C_Read... [07:46:37]Read from MH i2c: 01 07 00 78 12 00 00 00 00 00 FF 0F 9F [07:46:37]RasterBufferAndPrint [07:46:37]line Счет N : (3)73644 [07:46:37]line ИНН: 02508201610067 [07:46:37]line Контрольно-Кассовый Чек [07:46:37]line ПРОДАЖА [07:46:37]line Товар: 2000032710015 [07:46:37]line Сочник DC творог 75г [07:46:37]line 1.000 * 35.00 [07:46:37]line = 35.00 [07:46:37]line НДС 12% НСП 1% [07:46:37]line > о реализуемом товаре [07:46:37]line Товар: 2000036220012 [07:46:37]line Кофе Капучино XL(GABB TRADE) [07:46:37]line 1.000 * 125.00 [07:46:37]line = 125.00 [07:46:37]line НДС 12% НСП 1% [07:46:37]line > о реализуемом товаре [07:46:37]line ИТОГО: 160.00 [07:46:37]line НСП 1% : 1.42 [07:46:37]line НДС 12% : 16.99 [07:46:37]line Наличными: 0.00 [07:46:37]line Безнал.: 160.00 [07:46:37]line Место: АЗС № 117 "Партнер Нефть" [07:46:37]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:46:37]line СНО: Общий режим [07:46:37]line Чек 24 05.06.2024 07:46 [07:46:37]line Смена: 375 ФФД: 1.0 [07:46:37]line ЗНМ: 0300000031 [07:46:37]line РНМ: 0000000000092737 [07:46:37]line Версия ККМ: 001 [07:46:37]line Платежная система: АКБ Кыргызстан [07:46:37]line ФМ: 0000000000875074 [07:46:37]line ФД: 64104 [07:46:37]line ФПД: 259815546657456 [07:46:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T074637&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64104&fm=259815546657456&tin=02508201610067®Number=0000000000092737&sum=16000 [07:46:37]line 0 [07:46:37]written 0, free lines is 4095 [07:46:37]Connected sock=10 [07:46:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 97 01 00 00 A1 C6 8F 01 77 C6 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 DD 17 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 68 FA 00 00 35 04 06 00 EC 4D 05 5D 9A B0 8F CC 75 6B 21 68 24 1F [07:46:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C6 93 47 00 74 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 68 FA 00 00 F4 03 04 00 EA C3 5F 66 B6 04 01 00 00 65 5C D2 9D 90 7D 4B D7 [07:46:37]CommunicateWithHost err = 0 [07:46:37]CheckOFDResponse [07:46:37]1017 (14) - 77093643461234 [07:46:37]1041 (16) - 0000000000875074 [07:46:37]1040 (4) - 64104 [07:46:37]1012 (4) - 05.06.2024 01:48 [07:46:37]1206 (1) - 0 [07:46:37]OFD Sender: Remove packet 64104 [07:46:37]ProducePacketName [07:46:37]name=ofd_packets/00064104 [07:46:37]NVStorageDeleteData [07:46:38]Write to MH i2c: 01 00 00 A9 12 BB [07:46:38]Write i2c OK [07:46:38]MH_I2C_Read... [07:46:38]Read from MH i2c: 01 [07:46:38]MH_I2C_Read... [07:46:38]Read from MH i2c: 01 07 00 [07:46:38]MH_I2C_Read... [07:46:38]Read from MH i2c: 01 07 00 A9 12 00 00 00 00 00 82 0C 50 [07:46:38]RasterBufferAndPrint [07:46:38]line [07:46:38]line [07:46:38]line [07:46:38]line [07:46:38]line [07:46:38]written 0, free lines is 3209 [07:46:38]MH_Cut [07:46:38]Write to MH i2c: D1 01 00 B0 12 01 94 [07:46:38]Write i2c OK [07:46:38]MH_I2C_Read... [07:46:38]Read from MH i2c: D1 [07:46:38]MH_I2C_Read... [07:46:38]Read from MH i2c: D1 01 00 [07:46:38]MH_I2C_Read... [07:46:38]Read from MH i2c: D1 01 00 B0 12 00 93 [07:46:38]Write to MH i2c: 01 00 00 B1 12 C3 [07:46:38]Write i2c OK [07:46:38]MH_I2C_Read... [07:46:38]OFD Sender: No OFD packet to send [07:46:38]*** Cut start [07:46:38]*** Partial cut [07:46:38]*** CUTSNS_PIN = 1 [07:46:38]*** CUTSNS_PIN = 0 [07:46:39]*** Brake cut motor [07:46:39]Read from MH i2c: 01 [07:46:39]MH_I2C_Read... [07:46:39]*** Stop cut motor [07:46:39]*** Cut end [07:46:39]Read from MH i2c: 01 07 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: 01 07 00 B1 12 00 00 00 00 00 FF 0F D8 [07:46:39]process_action close_receipt done [07:46:39]requested_data is exist [07:46:39]produce_requested_data [07:46:39]requested_item fm.sn is exist - process it [07:46:39]wFMCommunicate request_size=4 [07:46:39]MH_SAM_APDU [07:46:39]CAPDU: 80 11 00 00 [07:46:39]Write to MH i2c: E2 08 00 B2 12 80 11 00 00 00 00 00 00 3E [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:39]Read from MH i2c: E2 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 17 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 17 00 B2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 90 [07:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:46:39]wFMCommunicate OK [07:46:39]requested_item fd.num is exist - process it [07:46:39]SAM_PROTO_GetFieldsCounters [07:46:39]wFMCommunicate request_size=4 [07:46:39]MH_SAM_APDU [07:46:39]CAPDU: 80 13 00 00 [07:46:39]Write to MH i2c: E2 08 00 B3 12 80 13 00 00 00 00 00 00 41 [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:39]Read from MH i2c: E2 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 62 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 62 00 B3 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 68 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [07:46:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 68 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:46:39]wFMCommunicate OK [07:46:39]SAM_PROTO_GetFieldsCounters done [07:46:39]requested_item shift.num is exist - process it [07:46:39]requested_item shift.opened is exist - process it [07:46:39]req_shift_opened [07:46:39]FM_GetShiftState [07:46:39]SAM_PROTO_GetShiftState [07:46:39]wFMCommunicate request_size=4 [07:46:39]MH_SAM_APDU [07:46:39]CAPDU: 80 13 01 00 [07:46:39]Write to MH i2c: E2 08 00 B4 12 80 13 01 00 00 00 00 00 43 [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:39]Read from MH i2c: E2 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 0E 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 0E 00 B4 12 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 84 [07:46:39]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [07:46:39]wFMCommunicate OK [07:46:39]SAM_PROTO_GetShiftState done [07:46:39]FM_GetShiftState done [07:46:39]req_shift_opened done [07:46:39]requested_item shift.open_date is exist - process it [07:46:39]req_shift_open_date [07:46:39]req_shift_open_date done [07:46:39]produce_requested_data done [07:46:39]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64104,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [07:46:39]process_action_free close_receipt [07:46:39]json_value_free [07:46:39]json_value_free done [07:46:39]process_json_proto returns [07:46:39]Send response to host [07:46:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64104,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [07:46:39]free response buf [07:46:39]execute_script done [07:46:39]execute_script returns [07:46:39]free content buf [07:46:39]Sock 9.Close socket [07:46:39]Sock 9.Thread stoped [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:47]accept exits with 8 [07:49:47]New connection [07:49:47]New thread 3067276644 created [07:49:47]Thread 3067133284 joined [07:49:47]Waiting for new connection... [07:49:47] Sock 8.Parse request [07:49:47]Sock 8.Check first char [07:49:47]Sock 8.First char is OK [07:49:47]request: POST /json_proto HTTP/1.0 [07:49:47]Method: POST [07:49:47]URL: /json_proto [07:49:47]Method is POST - this is cgi request [07:49:47]url: /json_proto [07:49:47]query_string will be loaded in cgi processing [07:49:47]execute_cgi json_proto POST (null) [07:49:47]execute_cgi path=json_proto method=POST [07:49:47]POST find Content-Length [07:49:47]Host: 172.17.60.69:8080 [07:49:47]Content-Length: 1259 [07:49:47]Content-Type: application/json [07:49:47] [07:49:47]POST finish read [07:49:47]Found Content-Length = 1259 [07:49:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73645", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000482733", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043A\u043B\u0430\u0441\u0441 \u0436/\u0431 0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227737", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 \u0440\u043E\u043B\u043B 15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 219.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:47]execute_script... [07:49:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73645", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000482733", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043A\u043B\u0430\u0441\u0441 \u0436/\u0431 0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227737", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 \u0440\u043E\u043B\u043B 15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 219.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:47]POST & json_proto [07:49:47]process_json_proto [07:49:47]json parsed OK: [07:49:47]protocol is kg_v1.0 [07:49:47]action value=close_receipt [07:49:47]process_action close_receipt [07:49:47]cmd_close_receipt [07:49:47]MH_GetDate [07:49:47]Write to MH i2c: F0 00 00 B5 12 B6 [07:49:47]Write i2c OK [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: F0 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: F0 09 00 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: F0 09 00 B5 12 00 9E 18 60 66 D2 83 5F 66 55 [07:49:47]GetLastDocTimeStamp 1717573597 [07:49:47]current date 1717573790 [07:49:47]FM_GetShiftState [07:49:47]SAM_PROTO_GetShiftState [07:49:47]wFMCommunicate request_size=4 [07:49:47]MH_SAM_APDU [07:49:47]CAPDU: 80 13 01 00 [07:49:47]Write to MH i2c: E2 08 00 B6 12 80 13 01 00 00 00 00 00 45 [07:49:47]Write i2c OK [07:49:47]MH_I2C_Read... [07:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:47]Read from MH i2c: E2 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 0E 00 [07:49:47]MH_I2C_Read... [07:49:47]Read from MH i2c: E2 0E 00 B6 12 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 86 [07:49:47]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [07:49:47]wFMCommunicate OK [07:49:47]SAM_PROTO_GetShiftState done [07:49:47]FM_GetShiftState done [07:49:47]opened in 1717545925 [07:49:47]opened+sec_in_day 1717632325 [07:49:47]quantity*price = 8500 [07:49:47]sum+1 = 8501 [07:49:47]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000482733 Напиток Nitro Fr газ класс ж/б 0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46227737 Р/ж mentos pure fresh арбуз ролл 15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 219.00 НСП 1% : 1.93 НДС 12% : 23.26 Наличными: 219.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 25 05.06.2024 07:49 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64105 ФПД: 235925316512653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T074950&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64105&fm=235925316512653&tin=02508201610067®Number=0000000000092737&sum=21900 0 [07:49:48]StoreToDocumentArchive [07:49:48]shift 375 fd 64105 [07:49:48]save to /storage/0375/doc_00064105 [07:49:48]save last doc name /storage/0375/doc_00064105 to /storage/kkm_last_doc_name [07:49:48]save OK [07:49:48]Clear old archive folders... [07:49:48]ProcessDocumentItem done err = 0, tmpTLVsize=542 [07:49:48]tlvbuf is 0110C130 [07:49:48]SAM_PROTO_ClearQueue [07:49:48]wFMCommunicate request_size=4 [07:49:48]MH_SAM_APDU [07:49:48]CAPDU: 80 09 00 00 [07:49:48]Write to MH i2c: E2 08 00 C3 12 80 09 00 00 00 00 00 00 47 [07:49:48]Write i2c OK [07:49:48]MH_I2C_Read... [07:49:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:48]Read from MH i2c: E2 [07:49:48]MH_I2C_Read... [07:49:48]Read from MH i2c: E2 03 00 [07:49:48]MH_I2C_Read... [07:49:48]Read from MH i2c: E2 03 00 C3 12 00 90 00 49 [07:49:48]RAPDU: 90 00 [07:49:48]wFMCommunicate OK [07:49:48]SAM_PROTO_ClearQueue done [07:49:48]KKMCreateOFDPacket [07:49:48]OFDProtocolAddRootSTLVToBuf [07:49:48]FM_MakeSignedData [07:49:48]FM_MakeSignedData [07:49:48]SAM_PROTO_SignData [07:49:48]wFMCommunicate request_size=4 [07:49:48]MH_SAM_APDU [07:49:48]CAPDU: 80 0D 01 02 [07:49:48]Write to MH i2c: E2 08 00 C4 12 80 0D 01 02 00 00 00 00 4F [07:49:48]Write i2c OK [07:49:48]MH_I2C_Read... [07:49:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:48]Read from MH i2c: E2 [07:49:48]MH_I2C_Read... [07:49:48]Read from MH i2c: E2 03 00 [07:49:48]MH_I2C_Read... [07:49:48]Read from MH i2c: E2 03 00 C4 12 00 90 00 4A [07:49:48]RAPDU: 90 00 [07:49:48]wFMCommunicate OK [07:49:48]wFMCommunicate request_size=255 [07:49:48]MH_SAM_APDU [07:49:48]CAPDU: 80 0D 02 02 FA 03 00 1E 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 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 BA D0 BB D0 B0 D1 81 D1 81 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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 [07:49:49]Write to MH i2c: E2 02 01 C5 12 80 0D 02 02 FA 00 03 00 1E 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 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 BA D0 BB D0 B0 D1 81 D1 81 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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 00 00 55 [07:49:49]Write i2c OK [07:49:49]MH_I2C_Read... [07:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:49]Read from MH i2c: E2 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: E2 03 00 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: E2 03 00 C5 12 00 90 00 4B [07:49:49]RAPDU: 90 00 [07:49:49]wFMCommunicate OK [07:49:49]wFMCommunicate request_size=255 [07:49:49]MH_SAM_APDU [07:49:49]CAPDU: 80 0D 02 02 FA 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 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9E 18 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [07:49:49]Write to MH i2c: E2 02 01 C6 12 80 0D 02 02 FA 00 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 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9E 18 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 08 [07:49:49]Write i2c OK [07:49:49]MH_I2C_Read... [07:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:49]Read from MH i2c: E2 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: E2 03 00 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: E2 03 00 C6 12 00 90 00 4C [07:49:49]RAPDU: 90 00 [07:49:49]wFMCommunicate OK [07:49:49]wFMCommunicate request_size=51 [07:49:49]MH_SAM_APDU [07:49:49]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 69 FA 00 00 35 04 06 00 D6 92 A4 AF 2B 8D [07:49:49]Write to MH i2c: E2 36 00 C7 12 80 0D 02 02 2E 00 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 69 FA 00 00 35 04 06 00 D6 92 A4 AF 2B 8D 00 00 BC [07:49:49]Write i2c OK [07:49:49]MH_I2C_Read... [07:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:49]Read from MH i2c: E2 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: E2 03 00 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: E2 03 00 C7 12 00 90 00 4D [07:49:49]RAPDU: 90 00 [07:49:49]wFMCommunicate OK [07:49:49]wFMCommunicate request_size=4 [07:49:49]MH_SAM_APDU [07:49:49]CAPDU: 80 0D 03 02 [07:49:49]Write to MH i2c: E2 08 00 C8 12 80 0D 03 02 00 00 00 00 55 [07:49:49]Write i2c OK [07:49:49]MH_I2C_Read... [07:49:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:49]Read from MH i2c: E2 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: E2 0B 00 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: E2 0B 00 C8 12 00 A0 BC 8F 43 E8 74 05 2A 90 00 0F [07:49:49]RAPDU: A0 BC 8F 43 E8 74 05 2A 90 00 [07:49:49]wFMCommunicate OK [07:49:49]SAM_PROTO_SignData done [07:49:49]FM_MakeSignedData done [07:49:49]CreateOFDProtocolMessage [07:49:49]wFMCommunicate request_size=4 [07:49:49]MH_SAM_APDU [07:49:49]CAPDU: 80 11 00 00 [07:49:49]Write to MH i2c: E2 08 00 C9 12 80 11 00 00 00 00 00 00 55 [07:49:49]Write i2c OK [07:49:49]MH_I2C_Read... [07:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:49]Read from MH i2c: E2 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: E2 17 00 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: E2 17 00 C9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A7 [07:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:49:49]wFMCommunicate OK [07:49:49]CreateOFDProtocolMessage done [07:49:49]OFDSenderStorePacket 64105 [07:49:49]StoreOFDPacket docnum=64105 [07:49:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 32 02 00 00 E7 6E 2A 02 47 90 5A 03 01 00 03 00 1E 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 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 BA D0 BB D0 B0 D1 81 D1 81 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 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 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9E 18 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 69 FA 00 00 35 04 06 00 D6 92 A4 AF 2B 8D A0 BC 8F 43 E8 74 05 2A [07:49:49]CheckFolder [07:49:49]dirname=/storage/ofd_packets [07:49:49]CheckFolder done [07:49:49]ProducePacketName [07:49:49]name=ofd_packets/00064105 [07:49:49]NVStorageSaveData ofd_packets/00064105 [07:49:49]File name is /storage/ofd_packets/00064105 [07:49:49]Write 592 bytes [07:49:49]NVStorageSaveData done [07:49:49]OFDSenderStorePacket done [07:49:49]KKMCreateOFDPacket done [07:49:49]NVStorageSaveData kkm_last_timestamp [07:49:49]File name is /storage/kkm_last_timestamp [07:49:49]Write 4 bytes [07:49:49]NVStorageSaveData done [07:49:49]ExternCall_PrintAddStr [07:49:49]wPrintStart [07:49:49]Write to MH i2c: 01 00 00 CA 12 DC [07:49:49]Write i2c OK [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: 01 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: 01 07 00 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: 01 07 00 CA 12 00 00 00 00 00 FF 0F F1 [07:49:49]RasterBufferAndPrint [07:49:49]line Счет N : (3)73645 [07:49:49]line ИНН: 02508201610067 [07:49:49]line Контрольно-Кассовый Чек [07:49:49]line ПРОДАЖА [07:49:49]line Товар: 4700000480364 [07:49:49]line Напиток энерг Nitro экзотик 0.45 ж/б [07:49:49]line 1.000 * 85.00 [07:49:49]line = 85.00 [07:49:49]line НДС 12% НСП 1% [07:49:49]line > о реализуемом товаре [07:49:49]line Товар: 4700000482733 [07:49:49]line Напиток Nitro Fr газ класс ж/б 0,45л [07:49:49]line 1.000 * 85.00 [07:49:49]line = 85.00 [07:49:49]line НДС 12% НСП 1% [07:49:49]line > о реализуемом товаре [07:49:49]line Товар: 46227737 [07:49:49]line Р/ж mentos pure fresh арбуз ролл 15,5г [07:49:49]line 1.000 * 49.00 [07:49:49]line = 49.00 [07:49:49]line НДС 12% НСП 1% [07:49:49]line > о реализуемом товаре [07:49:49]line ИТОГО: 219.00 [07:49:49]line НСП 1% : 1.93 [07:49:49]line НДС 12% : 23.26 [07:49:49]line Наличными: 219.00 [07:49:49]line Безнал.: 0.00 [07:49:49]line Место: АЗС № 117 "Партнер Нефть" [07:49:49]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:49:49]line СНО: Общий режим [07:49:49]line Чек 25 05.06.2024 07:49 [07:49:49]line Смена: 375 ФФД: 1.0 [07:49:49]line ЗНМ: 0300000031 [07:49:49]line РНМ: 0000000000092737 [07:49:49]line Версия ККМ: 001 [07:49:49]line ФМ: 0000000000875074 [07:49:49]line ФД: 64105 [07:49:49]line ФПД: 235925316512653 [07:49:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T074950&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64105&fm=235925316512653&tin=02508201610067®Number=0000000000092737&sum=21900 [07:49:50]line 0 [07:49:50]OFD Sender: Processing packet 64105 [packets to send 14, broken 13] [07:49:50]ProducePacketName [07:49:50]name=ofd_packets/00064105 [07:49:50]OFD Sender: To server: pG, [07:49:50]CommunicateWithHost lk.salyk.kg:30040 [07:49:50]ConnectInit lk.salyk.kg [07:49:50]written 0, free lines is 4095 [07:49:50]Connected sock=11 [07:49:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 32 02 00 00 E7 6E 2A 02 47 90 5A 03 01 00 03 00 1E 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 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 BA D0 BB D0 B0 D1 81 D1 81 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 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 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9E 18 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 69 FA 00 00 35 04 06 00 D6 92 A4 AF 2B 8D A0 BC 8F 43 E8 74 05 2A [07:49:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 8F A2 47 00 47 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 69 FA 00 00 F4 03 04 00 AA C4 5F 66 B6 04 01 00 00 32 2A 7C 79 C0 BF A2 90 [07:49:50]CommunicateWithHost err = 0 [07:49:50]CheckOFDResponse [07:49:50]1017 (14) - 77093643461234 [07:49:50]1041 (16) - 0000000000875074 [07:49:50]1040 (4) - 64105 [07:49:50]1012 (4) - 05.06.2024 01:51 [07:49:50]1206 (1) - 0 [07:49:50]OFD Sender: Remove packet 64105 [07:49:50]ProducePacketName [07:49:50]name=ofd_packets/00064105 [07:49:50]NVStorageDeleteData [07:49:50]Write to MH i2c: 01 00 00 01 13 14 [07:49:50]Write i2c OK [07:49:50]MH_I2C_Read... [07:49:50]Read from MH i2c: 01 [07:49:50]MH_I2C_Read... [07:49:50]Read from MH i2c: 01 07 00 [07:49:50]MH_I2C_Read... [07:49:50]Read from MH i2c: 01 07 00 01 13 00 00 00 00 00 0A 0C 31 [07:49:50]RasterBufferAndPrint [07:49:50]line [07:49:50]line [07:49:50]line [07:49:50]line [07:49:50]line [07:49:50]written 0, free lines is 3087 [07:49:50]MH_Cut [07:49:50]Write to MH i2c: D1 01 00 08 13 01 ED [07:49:50]Write i2c OK [07:49:50]MH_I2C_Read... [07:49:50]Read from MH i2c: D1 [07:49:50]MH_I2C_Read... [07:49:50]Read from MH i2c: D1 01 00 [07:49:50]MH_I2C_Read... [07:49:50]Read from MH i2c: D1 01 00 08 13 00 EC [07:49:50]Write to MH i2c: 01 00 00 09 13 1C [07:49:50]Write i2c OK [07:49:50]MH_I2C_Read... [07:49:51]OFD Sender: No OFD packet to send [07:49:51]*** Cut start [07:49:51]*** Partial cut [07:49:51]*** CUTSNS_PIN = 1 [07:49:51]*** CUTSNS_PIN = 0 [07:49:52]*** Brake cut motor [07:49:52]Read from MH i2c: 01 [07:49:52]MH_I2C_Read... [07:49:52]*** Stop cut motor [07:49:52]*** Cut end [07:49:52]Read from MH i2c: 01 07 00 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: 01 07 00 09 13 00 00 00 00 00 FF 0F 31 [07:49:52]process_action close_receipt done [07:49:52]requested_data is exist [07:49:52]produce_requested_data [07:49:52]requested_item fm.sn is exist - process it [07:49:52]wFMCommunicate request_size=4 [07:49:52]MH_SAM_APDU [07:49:52]CAPDU: 80 11 00 00 [07:49:52]Write to MH i2c: E2 08 00 0A 13 80 11 00 00 00 00 00 00 97 [07:49:52]Write i2c OK [07:49:52]MH_I2C_Read... [07:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:52]Read from MH i2c: E2 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: E2 17 00 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: E2 17 00 0A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E9 [07:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:49:52]wFMCommunicate OK [07:49:52]requested_item fd.num is exist - process it [07:49:52]SAM_PROTO_GetFieldsCounters [07:49:52]wFMCommunicate request_size=4 [07:49:52]MH_SAM_APDU [07:49:52]CAPDU: 80 13 00 00 [07:49:52]Write to MH i2c: E2 08 00 0B 13 80 13 00 00 00 00 00 00 9A [07:49:52]Write i2c OK [07:49:52]MH_I2C_Read... [07:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:52]Read from MH i2c: E2 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: E2 62 00 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: E2 62 00 0B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 69 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [07:49:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 69 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:49:52]wFMCommunicate OK [07:49:52]SAM_PROTO_GetFieldsCounters done [07:49:52]requested_item shift.num is exist - process it [07:49:52]requested_item shift.opened is exist - process it [07:49:52]req_shift_opened [07:49:52]FM_GetShiftState [07:49:52]SAM_PROTO_GetShiftState [07:49:52]wFMCommunicate request_size=4 [07:49:52]MH_SAM_APDU [07:49:52]CAPDU: 80 13 01 00 [07:49:52]Write to MH i2c: E2 08 00 0C 13 80 13 01 00 00 00 00 00 9C [07:49:52]Write i2c OK [07:49:52]MH_I2C_Read... [07:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:52]Read from MH i2c: E2 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: E2 0E 00 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: E2 0E 00 0C 13 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 DD [07:49:52]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [07:49:52]wFMCommunicate OK [07:49:52]SAM_PROTO_GetShiftState done [07:49:52]FM_GetShiftState done [07:49:52]req_shift_opened done [07:49:52]requested_item shift.open_date is exist - process it [07:49:52]req_shift_open_date [07:49:52]req_shift_open_date done [07:49:52]produce_requested_data done [07:49:52]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64105,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [07:49:52]process_action_free close_receipt [07:49:52]json_value_free [07:49:52]json_value_free done [07:49:52]process_json_proto returns [07:49:52]Send response to host [07:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64105,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [07:49:52]free response buf [07:49:52]execute_script done [07:49:52]execute_script returns [07:49:52]free content buf [07:49:52]Sock 8.Close socket [07:49:52]Sock 8.Thread stoped [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:35]accept exits with 9 [07:56:35]New connection [07:56:35]New thread 3067133284 created [07:56:35]Thread 3067276644 joined [07:56:35]Waiting for new connection... [07:56:35] Sock 9.Parse request [07:56:35]Sock 9.Check first char [07:56:35]Sock 9.First char is OK [07:56:35]request: POST /json_proto HTTP/1.0 [07:56:35]Method: POST [07:56:35]URL: /json_proto [07:56:35]Method is POST - this is cgi request [07:56:35]url: /json_proto [07:56:35]query_string will be loaded in cgi processing [07:56:35]execute_cgi json_proto POST (null) [07:56:35]execute_cgi path=json_proto method=POST [07:56:35]POST find Content-Length [07:56:35]Host: 172.17.60.69:8080 [07:56:35]Content-Length: 831 [07:56:35]Content-Type: application/json [07:56:35] [07:56:35]POST finish read [07:56:35]Found Content-Length = 831 [07:56:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73646", "tax_sys" : 0, "items" : [ { "code": "4011100156364", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles \u0444\u0440\u0443\u043A\u0442\u044B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:35]execute_script... [07:56: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)73646", "tax_sys" : 0, "items" : [ { "code": "4011100156364", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles \u0444\u0440\u0443\u043A\u0442\u044B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:35]POST & json_proto [07:56:35]process_json_proto [07:56:35]json parsed OK: [07:56:35]protocol is kg_v1.0 [07:56:35]action value=close_receipt [07:56:35]process_action close_receipt [07:56:35]cmd_close_receipt [07:56:35]MH_GetDate [07:56:35]Write to MH i2c: F0 00 00 0D 13 0F [07:56:35]Write i2c OK [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: F0 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: F0 09 00 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: F0 09 00 0D 13 00 35 1A 60 66 D2 83 5F 66 47 [07:56:35]GetLastDocTimeStamp 1717573790 [07:56:35]current date 1717574197 [07:56:35]FM_GetShiftState [07:56:35]SAM_PROTO_GetShiftState [07:56:35]wFMCommunicate request_size=4 [07:56:35]MH_SAM_APDU [07:56:35]CAPDU: 80 13 01 00 [07:56:35]Write to MH i2c: E2 08 00 0E 13 80 13 01 00 00 00 00 00 9E [07:56:35]Write i2c OK [07:56:35]MH_I2C_Read... [07:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:35]Read from MH i2c: E2 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: E2 0E 00 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: E2 0E 00 0E 13 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 DF [07:56:35]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [07:56:35]wFMCommunicate OK [07:56:35]SAM_PROTO_GetShiftState done [07:56:35]FM_GetShiftState done [07:56:35]opened in 1717545925 [07:56:35]opened+sec_in_day 1717632325 [07:56:35]quantity*price = 6000 [07:56:35]sum+1 = 6001 [07:56:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 26 05.06.2024 07:56 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64106 ФПД: 210380307076200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T075637&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64106&fm=210380307076200&tin=02508201610067®Number=0000000000092737&sum=6000 0 [07:56:36]StoreToDocumentArchive [07:56:36]shift 375 fd 64106 [07:56:36]save to /storage/0375/doc_00064106 [07:56:36]save last doc name /storage/0375/doc_00064106 to /storage/kkm_last_doc_name [07:56:36]save OK [07:56:36]Clear old archive folders... [07:56:36]ProcessDocumentItem done err = 0, tmpTLVsize=274 [07:56:36]tlvbuf is 0107E200 [07:56:36]SAM_PROTO_ClearQueue [07:56:36]wFMCommunicate request_size=4 [07:56:36]MH_SAM_APDU [07:56:36]CAPDU: 80 09 00 00 [07:56:36]Write to MH i2c: E2 08 00 1B 13 80 09 00 00 00 00 00 00 A0 [07:56:36]Write i2c OK [07:56:36]MH_I2C_Read... [07:56:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:36]Read from MH i2c: E2 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 03 00 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 03 00 1B 13 00 90 00 A2 [07:56:36]RAPDU: 90 00 [07:56:36]wFMCommunicate OK [07:56:36]SAM_PROTO_ClearQueue done [07:56:36]KKMCreateOFDPacket [07:56:36]OFDProtocolAddRootSTLVToBuf [07:56:36]FM_MakeSignedData [07:56:36]FM_MakeSignedData [07:56:36]SAM_PROTO_SignData [07:56:36]wFMCommunicate request_size=4 [07:56:36]MH_SAM_APDU [07:56:36]CAPDU: 80 0D 01 02 [07:56:36]Write to MH i2c: E2 08 00 1C 13 80 0D 01 02 00 00 00 00 A8 [07:56:36]Write i2c OK [07:56:36]MH_I2C_Read... [07:56:36]OFD Sender: No OFD packet to send [07:56:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:36]Read from MH i2c: E2 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 03 00 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [07:56:36]RAPDU: 90 00 [07:56:36]wFMCommunicate OK [07:56:36]wFMCommunicate request_size=255 [07:56:36]MH_SAM_APDU [07:56:36]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 30 31 31 31 30 30 31 35 36 33 36 34 06 04 20 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 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 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 35 1A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [07:56:36]Write to MH i2c: E2 02 01 1D 13 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 30 31 31 31 30 30 31 35 36 33 36 34 06 04 20 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 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 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 35 1A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 2E [07:56:36]Write i2c OK [07:56:36]MH_I2C_Read... [07:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:36]Read from MH i2c: E2 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 03 00 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [07:56:36]RAPDU: 90 00 [07:56:36]wFMCommunicate OK [07:56:36]wFMCommunicate request_size=33 [07:56:36]MH_SAM_APDU [07:56:36]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6A FA 00 00 35 04 06 00 BF 56 FB 78 94 68 [07:56:36]Write to MH i2c: E2 24 00 1E 13 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6A FA 00 00 35 04 06 00 BF 56 FB 78 94 68 00 00 21 [07:56:36]Write i2c OK [07:56:36]MH_I2C_Read... [07:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:36]Read from MH i2c: E2 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 03 00 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [07:56:36]RAPDU: 90 00 [07:56:36]wFMCommunicate OK [07:56:36]wFMCommunicate request_size=4 [07:56:36]MH_SAM_APDU [07:56:36]CAPDU: 80 0D 03 02 [07:56:36]Write to MH i2c: E2 08 00 1F 13 80 0D 03 02 00 00 00 00 AD [07:56:36]Write i2c OK [07:56:36]MH_I2C_Read... [07:56:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:36]Read from MH i2c: E2 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 0B 00 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 0B 00 1F 13 00 0F 2F 3C 40 7A 3B 6A 02 90 00 89 [07:56:36]RAPDU: 0F 2F 3C 40 7A 3B 6A 02 90 00 [07:56:36]wFMCommunicate OK [07:56:36]SAM_PROTO_SignData done [07:56:36]FM_MakeSignedData done [07:56:36]CreateOFDProtocolMessage [07:56:36]wFMCommunicate request_size=4 [07:56:36]MH_SAM_APDU [07:56:36]CAPDU: 80 11 00 00 [07:56:36]Write to MH i2c: E2 08 00 20 13 80 11 00 00 00 00 00 00 AD [07:56:36]Write i2c OK [07:56:36]MH_I2C_Read... [07:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:36]Read from MH i2c: E2 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 17 00 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 17 00 20 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FF [07:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:56:36]wFMCommunicate OK [07:56:36]CreateOFDProtocolMessage done [07:56:36]OFDSenderStorePacket 64106 [07:56:36]StoreOFDPacket docnum=64106 [07:56:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 F5 83 1E 01 B3 51 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 30 31 31 31 30 30 31 35 36 33 36 34 06 04 20 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 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 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 35 1A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6A FA 00 00 35 04 06 00 BF 56 FB 78 94 68 0F 2F 3C 40 7A 3B 6A 02 [07:56:36]CheckFolder [07:56:36]dirname=/storage/ofd_packets [07:56:36]CheckFolder done [07:56:36]ProducePacketName [07:56:36]name=ofd_packets/00064106 [07:56:36]NVStorageSaveData ofd_packets/00064106 [07:56:36]File name is /storage/ofd_packets/00064106 [07:56:36]Write 324 bytes [07:56:36]NVStorageSaveData done [07:56:36]OFDSenderStorePacket done [07:56:36]KKMCreateOFDPacket done [07:56:36]NVStorageSaveData kkm_last_timestamp [07:56:36]File name is /storage/kkm_last_timestamp [07:56:36]Write 4 bytes [07:56:36]NVStorageSaveData done [07:56:36]ExternCall_PrintAddStr [07:56:36]wPrintStart [07:56:36]Write to MH i2c: 01 00 00 21 13 34 [07:56:36]Write i2c OK [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: 01 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: 01 07 00 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: 01 07 00 21 13 00 00 00 00 00 FF 0F 49 [07:56:36]RasterBufferAndPrint [07:56:36]line Счет N : (3)73646 [07:56:36]line ИНН: 02508201610067 [07:56:36]line Контрольно-Кассовый Чек [07:56:36]line ПРОДАЖА [07:56:36]line Товар: 4011100156364 [07:56:36]line Драже Skittles фрукты [07:56:36]line 1.000 * 60.00 [07:56:36]line = 60.00 [07:56:36]line НДС 12% НСП 1% [07:56:36]line > о реализуемом товаре [07:56:36]line ИТОГО: 60.00 [07:56:36]line НСП 1% : 0.53 [07:56:36]line НДС 12% : 6.37 [07:56:36]line Наличными: 0.00 [07:56:36]line Безнал.: 60.00 [07:56:36]line Место: АЗС № 117 "Партнер Нефть" [07:56:36]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:56:36]line СНО: Общий режим [07:56:36]line Чек 26 05.06.2024 07:56 [07:56:36]line Смена: 375 ФФД: 1.0 [07:56:36]line ЗНМ: 0300000031 [07:56:36]line РНМ: 0000000000092737 [07:56:36]line Версия ККМ: 001 [07:56:36]line Платежная система: АКБ Кыргызстан [07:56:36]line ФМ: 0000000000875074 [07:56:36]line ФД: 64106 [07:56:36]line ФПД: 210380307076200 [07:56:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T075637&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64106&fm=210380307076200&tin=02508201610067®Number=0000000000092737&sum=6000 [07:56:36]line 0 [07:56:37]written 0, free lines is 4095 [07:56:37]OFD Sender: Processing packet 64106 [packets to send 14, broken 13] [07:56:37]ProducePacketName [07:56:37]name=ofd_packets/00064106 [07:56:37]OFD Sender: To server: pG, [07:56:37]CommunicateWithHost lk.salyk.kg:30040 [07:56:37]ConnectInit lk.salyk.kg [07:56:37]Connected sock=10 [07:56:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 F5 83 1E 01 B3 51 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 30 31 31 31 30 30 31 35 36 33 36 34 06 04 20 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 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 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 35 1A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6A FA 00 00 35 04 06 00 BF 56 FB 78 94 68 0F 2F 3C 40 7A 3B 6A 02 [07:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 8E 9C 47 00 91 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6A FA 00 00 F4 03 04 00 41 C6 5F 66 B6 04 01 00 00 A4 73 9E 51 8D A6 09 82 [07:56:37]CommunicateWithHost err = 0 [07:56:37]CheckOFDResponse [07:56:37]1017 (14) - 77093643461234 [07:56:37]1041 (16) - 0000000000875074 [07:56:37]1040 (4) - 64106 [07:56:37]1012 (4) - 05.06.2024 01:58 [07:56:37]1206 (1) - 0 [07:56:37]OFD Sender: Remove packet 64106 [07:56:37]ProducePacketName [07:56:37]name=ofd_packets/00064106 [07:56:37]NVStorageDeleteData [07:56:37]Write to MH i2c: 01 00 00 4B 13 5E [07:56:37]Write i2c OK [07:56:37]MH_I2C_Read... [07:56:37]Read from MH i2c: 01 [07:56:37]MH_I2C_Read... [07:56:37]Read from MH i2c: 01 07 00 [07:56:37]MH_I2C_Read... [07:56:37]Read from MH i2c: 01 07 00 4B 13 00 00 00 00 00 E3 0C 54 [07:56:37]RasterBufferAndPrint [07:56:37]line [07:56:37]line [07:56:37]line [07:56:37]line [07:56:37]line [07:56:37]written 0, free lines is 3305 [07:56:37]MH_Cut [07:56:37]Write to MH i2c: D1 01 00 52 13 01 37 [07:56:37]Write i2c OK [07:56:37]MH_I2C_Read... [07:56:37]Read from MH i2c: D1 [07:56:37]MH_I2C_Read... [07:56:37]Read from MH i2c: D1 01 00 [07:56:37]MH_I2C_Read... [07:56:37]Read from MH i2c: D1 01 00 52 13 00 36 [07:56:37]Write to MH i2c: 01 00 00 53 13 66 [07:56:37]Write i2c OK [07:56:37]MH_I2C_Read... [07:56:38]OFD Sender: No OFD packet to send [07:56:38]*** Cut start [07:56:38]*** Partial cut [07:56:38]*** CUTSNS_PIN = 1 [07:56:38]*** CUTSNS_PIN = 0 [07:56:38]*** Brake cut motor [07:56:39]Read from MH i2c: 01 [07:56:39]MH_I2C_Read... [07:56:39]*** Stop cut motor [07:56:39]*** Cut end [07:56:39]Read from MH i2c: 01 07 00 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: 01 07 00 53 13 00 00 00 00 00 FF 0F 7B [07:56:39]process_action close_receipt done [07:56:39]requested_data is exist [07:56:39]produce_requested_data [07:56:39]requested_item fm.sn is exist - process it [07:56:39]wFMCommunicate request_size=4 [07:56:39]MH_SAM_APDU [07:56:39]CAPDU: 80 11 00 00 [07:56:39]Write to MH i2c: E2 08 00 54 13 80 11 00 00 00 00 00 00 E1 [07:56:39]Write i2c OK [07:56:39]MH_I2C_Read... [07:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:39]Read from MH i2c: E2 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 17 00 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 17 00 54 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 33 [07:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:56:39]wFMCommunicate OK [07:56:39]requested_item fd.num is exist - process it [07:56:39]SAM_PROTO_GetFieldsCounters [07:56:39]wFMCommunicate request_size=4 [07:56:39]MH_SAM_APDU [07:56:39]CAPDU: 80 13 00 00 [07:56:39]Write to MH i2c: E2 08 00 55 13 80 13 00 00 00 00 00 00 E4 [07:56:39]Write i2c OK [07:56:39]MH_I2C_Read... [07:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:39]Read from MH i2c: E2 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 62 00 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 62 00 55 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6A FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [07:56:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6A FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:56:39]wFMCommunicate OK [07:56:39]SAM_PROTO_GetFieldsCounters done [07:56:39]requested_item shift.num is exist - process it [07:56:39]requested_item shift.opened is exist - process it [07:56:39]req_shift_opened [07:56:39]FM_GetShiftState [07:56:39]SAM_PROTO_GetShiftState [07:56:39]wFMCommunicate request_size=4 [07:56:39]MH_SAM_APDU [07:56:39]CAPDU: 80 13 01 00 [07:56:39]Write to MH i2c: E2 08 00 56 13 80 13 01 00 00 00 00 00 E6 [07:56:39]Write i2c OK [07:56:39]MH_I2C_Read... [07:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:39]Read from MH i2c: E2 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 0E 00 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 0E 00 56 13 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 27 [07:56:39]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [07:56:39]wFMCommunicate OK [07:56:39]SAM_PROTO_GetShiftState done [07:56:39]FM_GetShiftState done [07:56:39]req_shift_opened done [07:56:39]requested_item shift.open_date is exist - process it [07:56:39]req_shift_open_date [07:56:39]req_shift_open_date done [07:56:39]produce_requested_data done [07:56:39]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64106,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [07:56:39]process_action_free close_receipt [07:56:39]json_value_free [07:56:39]json_value_free done [07:56:39]process_json_proto returns [07:56:39]Send response to host [07:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64106,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [07:56:39]free response buf [07:56:39]execute_script done [07:56:39]execute_script returns [07:56:39]free content buf [07:56:39]Sock 9.Close socket [07:56:39]Sock 9.Thread stoped [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]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:04]accept exits with 8 [07:58:04]New connection [07:58:04]New thread 3067276644 created [07:58:04]Thread 3067133284 joined [07:58:04]Waiting for new connection... [07:58:04] Sock 8.Parse request [07:58:04]Sock 8.Check first char [07:58:04]Sock 8.First char is OK [07:58:04]request: POST /json_proto HTTP/1.0 [07:58:04]Method: POST [07:58:04]URL: /json_proto [07:58:04]Method is POST - this is cgi request [07:58:04]url: /json_proto [07:58:04]query_string will be loaded in cgi processing [07:58:04]execute_cgi json_proto POST (null) [07:58:04]execute_cgi path=json_proto method=POST [07:58:04]POST find Content-Length [07:58:04]Host: 172.17.60.69:8080 [07:58:04]Content-Length: 667 [07:58:04]Content-Type: application/json [07:58:04] [07:58:04]POST finish read [07:58:04]Found Content-Length = 667 [07:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73647", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "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" ] } } [07:58:04]execute_script... [07:58: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)73647", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "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" ] } } [07:58:04]POST & json_proto [07:58:04]process_json_proto [07:58:04]json parsed OK: [07:58:04]protocol is kg_v1.0 [07:58:04]action value=close_receipt [07:58:04]process_action close_receipt [07:58:04]cmd_close_receipt [07:58:04]MH_GetDate [07:58:04]Write to MH i2c: F0 00 00 57 13 59 [07:58:04]Write i2c OK [07:58:04]MH_I2C_Read... [07:58:04]Read from MH i2c: F0 [07:58:04]MH_I2C_Read... [07:58:04]Read from MH i2c: F0 09 00 [07:58:04]MH_I2C_Read... [07:58:04]Read from MH i2c: F0 09 00 57 13 00 8F 1A 60 66 D2 83 5F 66 EB [07:58:04]GetLastDocTimeStamp 1717574197 [07:58:04]current date 1717574287 [07:58:04]FM_GetShiftState [07:58:04]SAM_PROTO_GetShiftState [07:58:04]wFMCommunicate request_size=4 [07:58:04]MH_SAM_APDU [07:58:04]CAPDU: 80 13 01 00 [07:58:04]Write to MH i2c: E2 08 00 58 13 80 13 01 00 00 00 00 00 E8 [07:58:04]Write i2c OK [07:58:04]MH_I2C_Read... [07:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:04]Read from MH i2c: E2 [07:58:04]MH_I2C_Read... [07:58:04]Read from MH i2c: E2 0E 00 [07:58:04]MH_I2C_Read... [07:58:04]Read from MH i2c: E2 0E 00 58 13 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 29 [07:58:04]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [07:58:04]wFMCommunicate OK [07:58:04]SAM_PROTO_GetShiftState done [07:58:04]FM_GetShiftState done [07:58:04]opened in 1717545925 [07:58:04]opened+sec_in_day 1717632325 [07:58:04]quantity*price = 11000 [07:58:04]sum+1 = 11001 [07:58:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 27 05.06.2024 07:58 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64107 ФПД: 22670096973383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T075807&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64107&fm=22670096973383&tin=02508201610067®Number=0000000000092737&sum=11000 0 [07:58:05]StoreToDocumentArchive [07:58:05]shift 375 fd 64107 [07:58:05]save to /storage/0375/doc_00064107 [07:58:05]save last doc name /storage/0375/doc_00064107 to /storage/kkm_last_doc_name [07:58:05]save OK [07:58:05]Clear old archive folders... [07:58:05]ProcessDocumentItem done err = 0, tmpTLVsize=296 [07:58:05]tlvbuf is 00FB3380 [07:58:05]SAM_PROTO_ClearQueue [07:58:05]wFMCommunicate request_size=4 [07:58:05]MH_SAM_APDU [07:58:05]CAPDU: 80 09 00 00 [07:58:05]Write to MH i2c: E2 08 00 65 13 80 09 00 00 00 00 00 00 EA [07:58:05]Write i2c OK [07:58:05]MH_I2C_Read... [07:58:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:05]Read from MH i2c: E2 [07:58:05]MH_I2C_Read... [07:58:05]Read from MH i2c: E2 03 00 [07:58:05]MH_I2C_Read... [07:58:05]Read from MH i2c: E2 03 00 65 13 00 90 00 EC [07:58:05]RAPDU: 90 00 [07:58:05]wFMCommunicate OK [07:58:05]SAM_PROTO_ClearQueue done [07:58:05]KKMCreateOFDPacket [07:58:05]OFDProtocolAddRootSTLVToBuf [07:58:05]FM_MakeSignedData [07:58:05]FM_MakeSignedData [07:58:05]SAM_PROTO_SignData [07:58:05]wFMCommunicate request_size=4 [07:58:05]MH_SAM_APDU [07:58:05]CAPDU: 80 0D 01 02 [07:58:05]Write to MH i2c: E2 08 00 66 13 80 0D 01 02 00 00 00 00 F2 [07:58:05]Write i2c OK [07:58:05]MH_I2C_Read... [07:58:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:05]Read from MH i2c: E2 [07:58:05]MH_I2C_Read... [07:58:05]Read from MH i2c: E2 03 00 [07:58:05]MH_I2C_Read... [07:58:05]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [07:58:05]RAPDU: 90 00 [07:58:05]wFMCommunicate OK [07:58:05]wFMCommunicate request_size=255 [07:58:05]MH_SAM_APDU [07:58:05]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 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 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 1B 00 00 00 F4 03 04 00 8F 1A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [07:58:05]Write to MH i2c: E2 02 01 67 13 80 0D 02 02 FA 00 03 00 28 01 1E 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 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 1B 00 00 00 F4 03 04 00 8F 1A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 83 [07:58:06]Write i2c OK [07:58:06]MH_I2C_Read... [07:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:06]Read from MH i2c: E2 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 03 00 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 03 00 67 13 00 90 00 EE [07:58:06]RAPDU: 90 00 [07:58:06]wFMCommunicate OK [07:58:06]wFMCommunicate request_size=55 [07:58:06]MH_SAM_APDU [07:58:06]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6B FA 00 00 35 04 06 00 14 9E 4B 13 BE 47 [07:58:06]Write to MH i2c: E2 3A 00 68 13 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6B FA 00 00 35 04 06 00 14 9E 4B 13 BE 47 00 00 CA [07:58:06]Write i2c OK [07:58:06]MH_I2C_Read... [07:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:06]Read from MH i2c: E2 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 03 00 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [07:58:06]RAPDU: 90 00 [07:58:06]wFMCommunicate OK [07:58:06]wFMCommunicate request_size=4 [07:58:06]MH_SAM_APDU [07:58:06]CAPDU: 80 0D 03 02 [07:58:06]Write to MH i2c: E2 08 00 69 13 80 0D 03 02 00 00 00 00 F7 [07:58:06]Write i2c OK [07:58:06]MH_I2C_Read... [07:58:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:06]Read from MH i2c: E2 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 0B 00 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 0B 00 69 13 00 16 B3 F1 4F 3A FA 7C BD 90 00 6E [07:58:06]RAPDU: 16 B3 F1 4F 3A FA 7C BD 90 00 [07:58:06]wFMCommunicate OK [07:58:06]SAM_PROTO_SignData done [07:58:06]FM_MakeSignedData done [07:58:06]CreateOFDProtocolMessage [07:58:06]wFMCommunicate request_size=4 [07:58:06]MH_SAM_APDU [07:58:06]CAPDU: 80 11 00 00 [07:58:06]Write to MH i2c: E2 08 00 6A 13 80 11 00 00 00 00 00 00 F7 [07:58:06]Write i2c OK [07:58:06]MH_I2C_Read... [07:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:06]Read from MH i2c: E2 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 17 00 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 17 00 6A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 49 [07:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:58:06]wFMCommunicate OK [07:58:06]CreateOFDProtocolMessage done [07:58:06]OFDSenderStorePacket 64107 [07:58:06]StoreOFDPacket docnum=64107 [07:58:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3C 01 00 00 E4 90 34 01 CF 92 5A 03 01 00 03 00 28 01 1E 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 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 1B 00 00 00 F4 03 04 00 8F 1A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6B FA 00 00 35 04 06 00 14 9E 4B 13 BE 47 16 B3 F1 4F 3A FA 7C BD [07:58:06]CheckFolder [07:58:06]dirname=/storage/ofd_packets [07:58:06]CheckFolder done [07:58:06]ProducePacketName [07:58:06]name=ofd_packets/00064107 [07:58:06]NVStorageSaveData ofd_packets/00064107 [07:58:06]File name is /storage/ofd_packets/00064107 [07:58:06]Write 346 bytes [07:58:06]NVStorageSaveData done [07:58:06]OFDSenderStorePacket done [07:58:06]KKMCreateOFDPacket done [07:58:06]NVStorageSaveData kkm_last_timestamp [07:58:06]File name is /storage/kkm_last_timestamp [07:58:06]Write 4 bytes [07:58:06]NVStorageSaveData done [07:58:06]ExternCall_PrintAddStr [07:58:06]wPrintStart [07:58:06]Write to MH i2c: 01 00 00 6B 13 7E [07:58:06]OFD Sender: Processing packet 64107 [packets to send 14, broken 13] [07:58:06]ProducePacketName [07:58:06]name=ofd_packets/00064107 [07:58:06]OFD Sender: To server: pG, [07:58:06]CommunicateWithHost lk.salyk.kg:30040 [07:58:06]ConnectInit lk.salyk.kg [07:58:06]Write i2c OK [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: 01 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: 01 07 00 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: 01 07 00 6B 13 00 00 00 00 00 FF 0F 93 [07:58:06]RasterBufferAndPrint [07:58:06]line Счет N : (3)73647 [07:58:06]line ИНН: 02508201610067 [07:58:06]line Контрольно-Кассовый Чек [07:58:06]line ПРОДАЖА [07:58:06]line Товар: 4870002329951 [07:58:06]line Напиток Lipton IceTea 1л зел чай Regular [07:58:06]line 1.000 * 110.00 [07:58:06]line = 110.00 [07:58:06]line НДС 12% НСП 1% [07:58:06]line > о реализуемом товаре [07:58:06]line ИТОГО: 110.00 [07:58:06]line НСП 1% : 0.97 [07:58:06]line НДС 12% : 11.68 [07:58:06]line Наличными: 110.00 [07:58:06]line Безнал.: 0.00 [07:58:06]line Место: АЗС № 117 "Партнер Нефть" [07:58:06]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:58:06]line СНО: Общий режим [07:58:06]line Чек 27 05.06.2024 07:58 [07:58:06]line Смена: 375 ФФД: 1.0 [07:58:06]line ЗНМ: 0300000031 [07:58:06]line РНМ: 0000000000092737 [07:58:06]line Версия ККМ: 001 [07:58:06]line ФМ: 0000000000875074 [07:58:06]line ФД: 64107 [07:58:06]line ФПД: 22670096973383 [07:58:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T075807&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64107&fm=22670096973383&tin=02508201610067®Number=0000000000092737&sum=11000 [07:58:06]line 0 [07:58:06]Connected sock=10 [07:58:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3C 01 00 00 E4 90 34 01 CF 92 5A 03 01 00 03 00 28 01 1E 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 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 1B 00 00 00 F4 03 04 00 8F 1A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6B FA 00 00 35 04 06 00 14 9E 4B 13 BE 47 16 B3 F1 4F 3A FA 7C BD [07:58:06]written 0, free lines is 4095 [07:58:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 41 C6 47 00 FD 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6B FA 00 00 F4 03 04 00 9B C6 5F 66 B6 04 01 00 00 21 D4 12 F0 A2 48 00 67 [07:58:07]CommunicateWithHost err = 0 [07:58:07]CheckOFDResponse [07:58:07]1017 (14) - 77093643461234 [07:58:07]1041 (16) - 0000000000875074 [07:58:07]1040 (4) - 64107 [07:58:07]1012 (4) - 05.06.2024 01:59 [07:58:07]1206 (1) - 0 [07:58:07]OFD Sender: Remove packet 64107 [07:58:07]ProducePacketName [07:58:07]name=ofd_packets/00064107 [07:58:07]NVStorageDeleteData [07:58:07]Write to MH i2c: 01 00 00 94 13 A7 [07:58:07]Write i2c OK [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: 01 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: 01 07 00 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: 01 07 00 94 13 00 00 00 00 00 E2 0C 9C [07:58:07]RasterBufferAndPrint [07:58:07]line [07:58:07]line [07:58:07]line [07:58:07]line [07:58:07]line [07:58:07]written 0, free lines is 3307 [07:58:07]MH_Cut [07:58:07]Write to MH i2c: D1 01 00 9B 13 01 80 [07:58:07]Write i2c OK [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: D1 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: D1 01 00 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: D1 01 00 9B 13 00 7F [07:58:07]Write to MH i2c: 01 00 00 9C 13 AF [07:58:07]Write i2c OK [07:58:07]MH_I2C_Read... [07:58:07]OFD Sender: No OFD packet to send [07:58:08]*** Cut start [07:58:08]*** Partial cut [07:58:08]*** CUTSNS_PIN = 1 [07:58:08]*** CUTSNS_PIN = 0 [07:58:08]*** Brake cut motor [07:58:08]Read from MH i2c: 01 [07:58:08]MH_I2C_Read... [07:58:08]*** Stop cut motor [07:58:08]*** Cut end [07:58:08]Read from MH i2c: 01 07 00 [07:58:08]MH_I2C_Read... [07:58:08]Read from MH i2c: 01 07 00 9C 13 00 00 00 00 00 FF 0F C4 [07:58:08]process_action close_receipt done [07:58:08]requested_data is exist [07:58:08]produce_requested_data [07:58:08]requested_item fm.sn is exist - process it [07:58:08]wFMCommunicate request_size=4 [07:58:08]MH_SAM_APDU [07:58:08]CAPDU: 80 11 00 00 [07:58:08]Write to MH i2c: E2 08 00 9D 13 80 11 00 00 00 00 00 00 2A [07:58:08]Write i2c OK [07:58:08]MH_I2C_Read... [07:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:08]Read from MH i2c: E2 [07:58:08]MH_I2C_Read... [07:58:08]Read from MH i2c: E2 17 00 [07:58:08]MH_I2C_Read... [07:58:08]Read from MH i2c: E2 17 00 9D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7C [07:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:58:08]wFMCommunicate OK [07:58:08]requested_item fd.num is exist - process it [07:58:08]SAM_PROTO_GetFieldsCounters [07:58:08]wFMCommunicate request_size=4 [07:58:08]MH_SAM_APDU [07:58:08]CAPDU: 80 13 00 00 [07:58:08]Write to MH i2c: E2 08 00 9E 13 80 13 00 00 00 00 00 00 2D [07:58:08]Write i2c OK [07:58:08]MH_I2C_Read... [07:58:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:08]Read from MH i2c: E2 [07:58:08]MH_I2C_Read... [07:58:08]Read from MH i2c: E2 62 00 [07:58:08]MH_I2C_Read... [07:58:08]Read from MH i2c: E2 62 00 9E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6B FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [07:58:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6B FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:08]wFMCommunicate OK [07:58:08]SAM_PROTO_GetFieldsCounters done [07:58:08]requested_item shift.num is exist - process it [07:58:08]requested_item shift.opened is exist - process it [07:58:08]req_shift_opened [07:58:08]FM_GetShiftState [07:58:08]SAM_PROTO_GetShiftState [07:58:08]wFMCommunicate request_size=4 [07:58:08]MH_SAM_APDU [07:58:08]CAPDU: 80 13 01 00 [07:58:08]Write to MH i2c: E2 08 00 9F 13 80 13 01 00 00 00 00 00 2F [07:58:08]Write i2c OK [07:58:08]MH_I2C_Read... [07:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:08]Read from MH i2c: E2 [07:58:08]MH_I2C_Read... [07:58:08]Read from MH i2c: E2 0E 00 [07:58:08]MH_I2C_Read... [07:58:08]Read from MH i2c: E2 0E 00 9F 13 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 70 [07:58:08]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [07:58:08]wFMCommunicate OK [07:58:08]SAM_PROTO_GetShiftState done [07:58:08]FM_GetShiftState done [07:58:08]req_shift_opened done [07:58:08]requested_item shift.open_date is exist - process it [07:58:08]req_shift_open_date [07:58:08]req_shift_open_date done [07:58:08]produce_requested_data done [07:58:08]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64107,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [07:58:08]process_action_free close_receipt [07:58:08]json_value_free [07:58:08]json_value_free done [07:58:08]process_json_proto returns [07:58:08]Send response to host [07:58:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64107,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [07:58:08]free response buf [07:58:08]execute_script done [07:58:08]execute_script returns [07:58:08]free content buf [07:58:08]Sock 8.Close socket [07:58:08]Sock 8.Thread stoped [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:23]accept exits with 9 [08:03:23]New connection [08:03:23]New thread 3067133284 created [08:03:23]Thread 3067276644 joined [08:03:23]Waiting for new connection... [08:03:23] Sock 9.Parse request [08:03:23]Sock 9.Check first char [08:03:23]Sock 9.First char is OK [08:03:23]request: POST /json_proto HTTP/1.0 [08:03:23]Method: POST [08:03:23]URL: /json_proto [08:03:23]Method is POST - this is cgi request [08:03:23]url: /json_proto [08:03:23]query_string will be loaded in cgi processing [08:03:23]execute_cgi json_proto POST (null) [08:03:23]execute_cgi path=json_proto method=POST [08:03:23]POST find Content-Length [08:03:23]Host: 172.17.60.69:8080 [08:03:23]Content-Length: 670 [08:03:23]Content-Type: application/json [08:03:23] [08:03:23]POST finish read [08:03:23]Found Content-Length = 670 [08:03:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 1.000, "sum" : 72.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 72.00, "total" : 72.00, "payments": [ { "type": 0, "sum" : 72.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:23]execute_script... [08:03:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 1.000, "sum" : 72.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 72.00, "total" : 72.00, "payments": [ { "type": 0, "sum" : 72.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:23]POST & json_proto [08:03:23]process_json_proto [08:03:23]json parsed OK: [08:03:23]protocol is kg_v1.0 [08:03:23]action value=close_receipt [08:03:23]process_action close_receipt [08:03:23]cmd_close_receipt [08:03:23]MH_GetDate [08:03:23]Write to MH i2c: F0 00 00 A0 13 A2 [08:03:23]Write i2c OK [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: F0 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: F0 09 00 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: F0 09 00 A0 13 00 CE 1B 60 66 D2 83 5F 66 74 [08:03:23]GetLastDocTimeStamp 1717574287 [08:03:23]current date 1717574606 [08:03:23]FM_GetShiftState [08:03:23]SAM_PROTO_GetShiftState [08:03:23]wFMCommunicate request_size=4 [08:03:23]MH_SAM_APDU [08:03:23]CAPDU: 80 13 01 00 [08:03:23]Write to MH i2c: E2 08 00 A1 13 80 13 01 00 00 00 00 00 31 [08:03:23]Write i2c OK [08:03:23]MH_I2C_Read... [08:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:23]Read from MH i2c: E2 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: E2 0E 00 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: E2 0E 00 A1 13 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 72 [08:03:23]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:03:23]wFMCommunicate OK [08:03:23]SAM_PROTO_GetShiftState done [08:03:23]FM_GetShiftState done [08:03:23]opened in 1717545925 [08:03:23]opened+sec_in_day 1717632325 [08:03:23]quantity*price = 7290 [08:03:23]sum+1 = 7291 [08:03:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.90 ИТОГО: 72.00 Внесено: 72.00 СДАЧА: 0.00 НСП 1% : 0.64 НДС 12% : 7.74 Наличными: 72.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 28 05.06.2024 08:03 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64108 ФПД: 209604640769382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T080326&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64108&fm=209604640769382&tin=02508201610067®Number=0000000000092737&sum=7200 [08:03:24]StoreToDocumentArchive [08:03:24]shift 375 fd 64108 [08:03:24]save to /storage/0375/doc_00064108 [08:03:24]save last doc name /storage/0375/doc_00064108 to /storage/kkm_last_doc_name [08:03:24]save OK [08:03:24]Clear old archive folders... [08:03:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:03:24]tlvbuf is 0108CBA0 [08:03:24]SAM_PROTO_ClearQueue [08:03:24]wFMCommunicate request_size=4 [08:03:24]MH_SAM_APDU [08:03:24]CAPDU: 80 09 00 00 [08:03:24]Write to MH i2c: E2 08 00 AE 13 80 09 00 00 00 00 00 00 33 [08:03:24]Write i2c OK [08:03:24]MH_I2C_Read... [08:03:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:24]Read from MH i2c: E2 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 03 00 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 03 00 AE 13 00 90 00 35 [08:03:24]RAPDU: 90 00 [08:03:24]wFMCommunicate OK [08:03:24]SAM_PROTO_ClearQueue done [08:03:24]KKMCreateOFDPacket [08:03:24]OFDProtocolAddRootSTLVToBuf [08:03:24]FM_MakeSignedData [08:03:24]FM_MakeSignedData [08:03:24]SAM_PROTO_SignData [08:03:24]wFMCommunicate request_size=4 [08:03:24]MH_SAM_APDU [08:03:24]CAPDU: 80 0D 01 02 [08:03:24]Write to MH i2c: E2 08 00 AF 13 80 0D 01 02 00 00 00 00 3B [08:03:24]Write i2c OK [08:03:24]MH_I2C_Read... [08:03:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:24]Read from MH i2c: E2 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 03 00 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 03 00 AF 13 00 90 00 36 [08:03:24]RAPDU: 90 00 [08:03:24]wFMCommunicate OK [08:03:24]wFMCommunicate request_size=255 [08:03:24]MH_SAM_APDU [08:03:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7A 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 03 00 00 00 00 07 04 06 00 20 1C 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 CE 1B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6C FA 00 00 35 04 06 00 BE A2 62 28 [08:03:24]Write to MH i2c: E2 02 01 B0 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7A 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 03 00 00 00 00 07 04 06 00 20 1C 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 CE 1B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6C FA 00 00 35 04 06 00 BE A2 62 28 00 00 05 [08:03:24]Write i2c OK [08:03:24]MH_I2C_Read... [08:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:25]Read from MH i2c: E2 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [08:03:25]RAPDU: 90 00 [08:03:25]wFMCommunicate OK [08:03:25]wFMCommunicate request_size=7 [08:03:25]MH_SAM_APDU [08:03:25]CAPDU: 80 0D 02 02 02 05 66 [08:03:25]Write to MH i2c: E2 0A 00 B1 13 80 0D 02 02 02 00 05 66 00 00 AD [08:03:25]Write i2c OK [08:03:25]MH_I2C_Read... [08:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:25]Read from MH i2c: E2 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [08:03:25]RAPDU: 90 00 [08:03:25]wFMCommunicate OK [08:03:25]wFMCommunicate request_size=4 [08:03:25]MH_SAM_APDU [08:03:25]CAPDU: 80 0D 03 02 [08:03:25]Write to MH i2c: E2 08 00 B2 13 80 0D 03 02 00 00 00 00 40 [08:03:25]Write i2c OK [08:03:25]MH_I2C_Read... [08:03:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:25]Read from MH i2c: E2 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 0B 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 0B 00 B2 13 00 48 40 AC E2 F2 53 57 6E 90 00 61 [08:03:25]RAPDU: 48 40 AC E2 F2 53 57 6E 90 00 [08:03:25]wFMCommunicate OK [08:03:25]SAM_PROTO_SignData done [08:03:25]FM_MakeSignedData done [08:03:25]CreateOFDProtocolMessage [08:03:25]wFMCommunicate request_size=4 [08:03:25]MH_SAM_APDU [08:03:25]CAPDU: 80 11 00 00 [08:03:25]Write to MH i2c: E2 08 00 B3 13 80 11 00 00 00 00 00 00 40 [08:03:25]Write i2c OK [08:03:25]MH_I2C_Read... [08:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:25]Read from MH i2c: E2 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 17 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 17 00 B3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 92 [08:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:03:25]wFMCommunicate OK [08:03:25]CreateOFDProtocolMessage done [08:03:25]OFDSenderStorePacket 64108 [08:03:25]StoreOFDPacket docnum=64108 [08:03:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 DA 2F 04 01 A3 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7A 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 03 00 00 00 00 07 04 06 00 20 1C 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 CE 1B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6C FA 00 00 35 04 06 00 BE A2 62 28 05 66 48 40 AC E2 F2 53 57 6E [08:03:25]CheckFolder [08:03:25]dirname=/storage/ofd_packets [08:03:25]CheckFolder done [08:03:25]ProducePacketName [08:03:25]name=ofd_packets/00064108 [08:03:25]NVStorageSaveData ofd_packets/00064108 [08:03:25]File name is /storage/ofd_packets/00064108 [08:03:25]Write 298 bytes [08:03:25]NVStorageSaveData done [08:03:25]OFDSenderStorePacket done [08:03:25]KKMCreateOFDPacket done [08:03:25]NVStorageSaveData kkm_last_timestamp [08:03:25]File name is /storage/kkm_last_timestamp [08:03:25]Write 4 bytes [08:03:25]NVStorageSaveData done [08:03:25]ExternCall_PrintAddStr [08:03:25]wPrintStart [08:03:25]Write to MH i2c: 01 00 00 B4 13 C7 [08:03:25]Write i2c OK [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: 01 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: 01 07 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: 01 07 00 B4 13 00 00 00 00 00 FF 0F DC [08:03:25]RasterBufferAndPrint [08:03:25]line Счет N : (1)545374 [08:03:25]line ИНН: 02508201610067 [08:03:25]line Контрольно-Кассовый Чек [08:03:25]line ПРОДАЖА [08:03:25]line ТРК (МРК, ГНК) : 51 [08:03:25]line Товар: 2710194210 [08:03:25]line ДТ-К-5 [08:03:25]line 1.000 * 72.90 [08:03:25]line = 72.90 [08:03:25]line НДС 12% НСП 1% [08:03:25]line > о реализуемом товаре [08:03:25]line ОКРУГЛЕНИЕ: -0.90 [08:03:25]line ИТОГО: 72.00 [08:03:25]line Внесено: 72.00 [08:03:25]line СДАЧА: 0.00 [08:03:25]line НСП 1% : 0.64 [08:03:25]line НДС 12% : 7.74 [08:03:25]line Наличными: 72.00 [08:03:25]line Безнал.: 0.00 [08:03:25]line Место: АЗС № 117 "Партнер Нефть" [08:03:25]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:03:25]line СНО: Общий режим [08:03:25]line Чек 28 05.06.2024 08:03 [08:03:25]line Смена: 375 ФФД: 1.0 [08:03:25]line ЗНМ: 0300000031 [08:03:25]line РНМ: 0000000000092737 [08:03:25]line Версия ККМ: 001 [08:03:25]line ФМ: 0000000000875074 [08:03:25]line ФД: 64108 [08:03:25]line ФПД: 209604640769382 [08:03:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T080326&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64108&fm=209604640769382&tin=02508201610067®Number=0000000000092737&sum=7200 [08:03:25]OFD Sender: Processing packet 64108 [packets to send 14, broken 13] [08:03:25]ProducePacketName [08:03:25]name=ofd_packets/00064108 [08:03:25]OFD Sender: To server: pG, [08:03:25]CommunicateWithHost lk.salyk.kg:30040 [08:03:25]ConnectInit lk.salyk.kg [08:03:25]written 0, free lines is 4095 [08:03:25]Connected sock=10 [08:03:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 DA 2F 04 01 A3 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7A 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 03 00 00 00 00 07 04 06 00 20 1C 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 CE 1B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6C FA 00 00 35 04 06 00 BE A2 62 28 05 66 48 40 AC E2 F2 53 57 6E [08:03:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 51 F8 47 00 DA 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6C FA 00 00 F4 03 04 00 DA C7 5F 66 B6 04 01 00 00 7C FA 24 47 9E 2A 4A 43 [08:03:25]CommunicateWithHost err = 0 [08:03:25]CheckOFDResponse [08:03:25]1017 (14) - 77093643461234 [08:03:25]1041 (16) - 0000000000875074 [08:03:25]1040 (4) - 64108 [08:03:25]1012 (4) - 05.06.2024 02:05 [08:03:25]1206 (1) - 0 [08:03:25]OFD Sender: Remove packet 64108 [08:03:25]ProducePacketName [08:03:25]name=ofd_packets/00064108 [08:03:25]NVStorageDeleteData [08:03:26]Write to MH i2c: 01 00 00 DF 13 F2 [08:03:26]Write i2c OK [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: 01 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: 01 07 00 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: 01 07 00 DF 13 00 00 00 00 00 E1 0C E6 [08:03:26]RasterBufferAndPrint [08:03:26]line [08:03:26]line [08:03:26]line [08:03:26]line [08:03:26]line [08:03:26]written 0, free lines is 3303 [08:03:26]MH_Cut [08:03:26]Write to MH i2c: D1 01 00 E6 13 01 CB [08:03:26]Write i2c OK [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: D1 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: D1 01 00 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: D1 01 00 E6 13 00 CA [08:03:26]Write to MH i2c: 01 00 00 E7 13 FA [08:03:26]Write i2c OK [08:03:26]MH_I2C_Read... [08:03:26]OFD Sender: No OFD packet to send [08:03:26]*** Cut start [08:03:26]*** Partial cut [08:03:26]*** CUTSNS_PIN = 1 [08:03:26]*** CUTSNS_PIN = 0 [08:03:27]*** Brake cut motor [08:03:27]Read from MH i2c: 01 [08:03:27]MH_I2C_Read... [08:03:27]*** Stop cut motor [08:03:27]*** Cut end [08:03:27]Read from MH i2c: 01 07 00 [08:03:27]MH_I2C_Read... [08:03:27]Read from MH i2c: 01 07 00 E7 13 00 00 00 00 00 FF 0F 0F [08:03:27]process_action close_receipt done [08:03:27]requested_data is exist [08:03:27]produce_requested_data [08:03:27]requested_item fm.sn is exist - process it [08:03:27]wFMCommunicate request_size=4 [08:03:27]MH_SAM_APDU [08:03:27]CAPDU: 80 11 00 00 [08:03:27]Write to MH i2c: E2 08 00 E8 13 80 11 00 00 00 00 00 00 75 [08:03:27]Write i2c OK [08:03:27]MH_I2C_Read... [08:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:27]Read from MH i2c: E2 [08:03:27]MH_I2C_Read... [08:03:27]Read from MH i2c: E2 17 00 [08:03:27]MH_I2C_Read... [08:03:27]Read from MH i2c: E2 17 00 E8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C7 [08:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:03:27]wFMCommunicate OK [08:03:27]requested_item fd.num is exist - process it [08:03:27]SAM_PROTO_GetFieldsCounters [08:03:27]wFMCommunicate request_size=4 [08:03:27]MH_SAM_APDU [08:03:27]CAPDU: 80 13 00 00 [08:03:27]Write to MH i2c: E2 08 00 E9 13 80 13 00 00 00 00 00 00 78 [08:03:27]Write i2c OK [08:03:27]MH_I2C_Read... [08:03:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:27]Read from MH i2c: E2 [08:03:27]MH_I2C_Read... [08:03:27]Read from MH i2c: E2 62 00 [08:03:27]MH_I2C_Read... [08:03:27]Read from MH i2c: E2 62 00 E9 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6C FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [08:03:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6C FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:27]wFMCommunicate OK [08:03:27]SAM_PROTO_GetFieldsCounters done [08:03:27]requested_item shift.num is exist - process it [08:03:27]requested_item shift.opened is exist - process it [08:03:27]req_shift_opened [08:03:27]FM_GetShiftState [08:03:27]SAM_PROTO_GetShiftState [08:03:27]wFMCommunicate request_size=4 [08:03:27]MH_SAM_APDU [08:03:27]CAPDU: 80 13 01 00 [08:03:27]Write to MH i2c: E2 08 00 EA 13 80 13 01 00 00 00 00 00 7A [08:03:27]Write i2c OK [08:03:27]MH_I2C_Read... [08:03:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:27]Read from MH i2c: E2 [08:03:27]MH_I2C_Read... [08:03:27]Read from MH i2c: E2 0E 00 [08:03:27]MH_I2C_Read... [08:03:27]Read from MH i2c: E2 0E 00 EA 13 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 BB [08:03:27]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:03:27]wFMCommunicate OK [08:03:27]SAM_PROTO_GetShiftState done [08:03:27]FM_GetShiftState done [08:03:27]req_shift_opened done [08:03:27]requested_item shift.open_date is exist - process it [08:03:27]req_shift_open_date [08:03:27]req_shift_open_date done [08:03:27]produce_requested_data done [08:03:27]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64108,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [08:03:27]process_action_free close_receipt [08:03:27]json_value_free [08:03:27]json_value_free done [08:03:27]process_json_proto returns [08:03:27]Send response to host [08:03:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64108,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [08:03:27]free response buf [08:03:27]execute_script done [08:03:27]execute_script returns [08:03:27]free content buf [08:03:27]Sock 9.Close socket [08:03:27]Sock 9.Thread stoped [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:09]accept exits with 8 [08:04:09]New connection [08:04:09]New thread 3067276644 created [08:04:09]Thread 3067133284 joined [08:04:09]Waiting for new connection... [08:04:09] Sock 8.Parse request [08:04:09]Sock 8.Check first char [08:04:09]Sock 8.First char is OK [08:04:09]request: POST /json_proto HTTP/1.0 [08:04:09]Method: POST [08:04:09]URL: /json_proto [08:04:09]Method is POST - this is cgi request [08:04:09]url: /json_proto [08:04:09]query_string will be loaded in cgi processing [08:04:09]execute_cgi json_proto POST (null) [08:04:09]execute_cgi path=json_proto method=POST [08:04:09]POST find Content-Length [08:04:09]Host: 172.17.60.69:8080 [08:04:09]Content-Length: 645 [08:04:09]Content-Type: application/json [08:04:09] [08:04:09]POST finish read [08:04:09]Found Content-Length = 645 [08:04:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73648", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\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" ] } } [08:04:09]execute_script... [08:04:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73648", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\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" ] } } [08:04:09]POST & json_proto [08:04:09]process_json_proto [08:04:09]json parsed OK: [08:04:09]protocol is kg_v1.0 [08:04:09]action value=close_receipt [08:04:09]process_action close_receipt [08:04:09]cmd_close_receipt [08:04:09]MH_GetDate [08:04:09]Write to MH i2c: F0 00 00 EB 13 ED [08:04:09]Write i2c OK [08:04:09]MH_I2C_Read... [08:04:09]Read from MH i2c: F0 [08:04:09]MH_I2C_Read... [08:04:09]Read from MH i2c: F0 09 00 [08:04:09]MH_I2C_Read... [08:04:09]Read from MH i2c: F0 09 00 EB 13 00 FB 1B 60 66 D2 83 5F 66 EC [08:04:09]GetLastDocTimeStamp 1717574606 [08:04:09]current date 1717574651 [08:04:09]FM_GetShiftState [08:04:09]SAM_PROTO_GetShiftState [08:04:09]wFMCommunicate request_size=4 [08:04:09]MH_SAM_APDU [08:04:09]CAPDU: 80 13 01 00 [08:04:09]Write to MH i2c: E2 08 00 EC 13 80 13 01 00 00 00 00 00 7C [08:04:09]Write i2c OK [08:04:09]MH_I2C_Read... [08:04:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:09]Read from MH i2c: E2 [08:04:09]MH_I2C_Read... [08:04:09]Read from MH i2c: E2 0E 00 [08:04:09]MH_I2C_Read... [08:04:09]Read from MH i2c: E2 0E 00 EC 13 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 BD [08:04:09]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:04:09]wFMCommunicate OK [08:04:09]SAM_PROTO_GetShiftState done [08:04:09]FM_GetShiftState done [08:04:09]opened in 1717545925 [08:04:09]opened+sec_in_day 1717632325 [08:04:09]quantity*price = 25000 [08:04:09]sum+1 = 25001 [08:04:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 29 05.06.2024 08:04 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64109 ФПД: 157060515720866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T080411&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64109&fm=157060515720866&tin=02508201610067®Number=0000000000092737&sum=25000 0 [08:04:10]StoreToDocumentArchive [08:04:10]shift 375 fd 64109 [08:04:10]save to /storage/0375/doc_00064109 [08:04:10]save last doc name /storage/0375/doc_00064109 to /storage/kkm_last_doc_name [08:04:10]save OK [08:04:10]Clear old archive folders... [08:04:10]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:04:10]tlvbuf is 00FB3290 [08:04:10]SAM_PROTO_ClearQueue [08:04:10]wFMCommunicate request_size=4 [08:04:10]MH_SAM_APDU [08:04:10]CAPDU: 80 09 00 00 [08:04:10]Write to MH i2c: E2 08 00 F9 13 80 09 00 00 00 00 00 00 7E [08:04:10]Write i2c OK [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: E2 [08:04:10]MH_I2C_Read... [08:04:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:10]Read from MH i2c: E2 03 00 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: E2 03 00 F9 13 00 90 00 80 [08:04:10]RAPDU: 90 00 [08:04:10]wFMCommunicate OK [08:04:10]SAM_PROTO_ClearQueue done [08:04:10]KKMCreateOFDPacket [08:04:10]OFDProtocolAddRootSTLVToBuf [08:04:10]FM_MakeSignedData [08:04:10]FM_MakeSignedData [08:04:10]SAM_PROTO_SignData [08:04:10]wFMCommunicate request_size=4 [08:04:10]MH_SAM_APDU [08:04:10]CAPDU: 80 0D 01 02 [08:04:10]Write to MH i2c: E2 08 00 FA 13 80 0D 01 02 00 00 00 00 86 [08:04:10]Write i2c OK [08:04:10]MH_I2C_Read... [08:04:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:10]Read from MH i2c: E2 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: E2 03 00 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: E2 03 00 FA 13 00 90 00 81 [08:04:10]RAPDU: 90 00 [08:04:10]wFMCommunicate OK [08:04:10]wFMCommunicate request_size=255 [08:04:10]MH_SAM_APDU [08:04:10]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 1D 00 00 00 F4 03 04 00 FB 1B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [08:04:10]Write to MH i2c: E2 02 01 FB 13 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 1D 00 00 00 F4 03 04 00 FB 1B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 96 [08:04:10]Write i2c OK [08:04:10]MH_I2C_Read... [08:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:10]Read from MH i2c: E2 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: E2 03 00 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: E2 03 00 FB 13 00 90 00 82 [08:04:10]RAPDU: 90 00 [08:04:10]wFMCommunicate OK [08:04:10]wFMCommunicate request_size=41 [08:04:10]MH_SAM_APDU [08:04:10]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6D FA 00 00 35 04 06 00 8E D8 80 3F 6E A2 [08:04:10]Write to MH i2c: E2 2C 00 FC 13 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6D FA 00 00 35 04 06 00 8E D8 80 3F 6E A2 00 00 F3 [08:04:10]Write i2c OK [08:04:10]MH_I2C_Read... [08:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:10]Read from MH i2c: E2 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: E2 03 00 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [08:04:10]RAPDU: 90 00 [08:04:10]wFMCommunicate OK [08:04:10]wFMCommunicate request_size=4 [08:04:10]MH_SAM_APDU [08:04:10]CAPDU: 80 0D 03 02 [08:04:10]Write to MH i2c: E2 08 00 FD 13 80 0D 03 02 00 00 00 00 8B [08:04:10]Write i2c OK [08:04:10]MH_I2C_Read... [08:04:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:10]Read from MH i2c: E2 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: E2 0B 00 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: E2 0B 00 FD 13 00 EB 19 0D 8F 67 B3 30 6D 90 00 E3 [08:04:10]RAPDU: EB 19 0D 8F 67 B3 30 6D 90 00 [08:04:10]wFMCommunicate OK [08:04:10]SAM_PROTO_SignData done [08:04:10]FM_MakeSignedData done [08:04:10]CreateOFDProtocolMessage [08:04:10]wFMCommunicate request_size=4 [08:04:10]MH_SAM_APDU [08:04:10]CAPDU: 80 11 00 00 [08:04:10]Write to MH i2c: E2 08 00 FE 13 80 11 00 00 00 00 00 00 8B [08:04:10]Write i2c OK [08:04:10]MH_I2C_Read... [08:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:10]Read from MH i2c: E2 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: E2 17 00 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: E2 17 00 FE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DD [08:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:04:10]wFMCommunicate OK [08:04:10]CreateOFDProtocolMessage done [08:04:10]OFDSenderStorePacket 64109 [08:04:10]StoreOFDPacket docnum=64109 [08:04:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 0A 1D 26 01 B5 AF 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 1D 00 00 00 F4 03 04 00 FB 1B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6D FA 00 00 35 04 06 00 8E D8 80 3F 6E A2 EB 19 0D 8F 67 B3 30 6D [08:04:10]CheckFolder [08:04:10]dirname=/storage/ofd_packets [08:04:10]CheckFolder done [08:04:10]ProducePacketName [08:04:10]name=ofd_packets/00064109 [08:04:10]NVStorageSaveData ofd_packets/00064109 [08:04:10]File name is /storage/ofd_packets/00064109 [08:04:10]Write 332 bytes [08:04:10]NVStorageSaveData done [08:04:10]OFDSenderStorePacket done [08:04:10]KKMCreateOFDPacket done [08:04:10]NVStorageSaveData kkm_last_timestamp [08:04:10]File name is /storage/kkm_last_timestamp [08:04:10]Write 4 bytes [08:04:10]NVStorageSaveData done [08:04:10]ExternCall_PrintAddStr [08:04:10]wPrintStart [08:04:10]Write to MH i2c: 01 00 00 FF 13 12 [08:04:10]Write i2c OK [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: 01 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: 01 07 00 [08:04:10]MH_I2C_Read... [08:04:10]Read from MH i2c: 01 07 00 FF 13 00 00 00 00 00 FF 0F 27 [08:04:10]RasterBufferAndPrint [08:04:10]line Счет N : (3)73648 [08:04:10]line ИНН: 02508201610067 [08:04:10]line Контрольно-Кассовый Чек [08:04:10]line ПРОДАЖА [08:04:10]line Товар: 2000036220012 [08:04:10]line Кофе Капучино XL(GABB TRADE) [08:04:10]line 2.000 * 125.00 [08:04:10]line = 250.00 [08:04:10]line НДС 12% НСП 1% [08:04:10]line > о реализуемом товаре [08:04:10]line ИТОГО: 250.00 [08:04:10]line НСП 1% : 2.21 [08:04:10]line НДС 12% : 26.55 [08:04:10]line Наличными: 250.00 [08:04:10]line Безнал.: 0.00 [08:04:10]line Место: АЗС № 117 "Партнер Нефть" [08:04:10]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:04:10]line СНО: Общий режим [08:04:10]line Чек 29 05.06.2024 08:04 [08:04:10]line Смена: 375 ФФД: 1.0 [08:04:10]line ЗНМ: 0300000031 [08:04:10]line РНМ: 0000000000092737 [08:04:10]line Версия ККМ: 001 [08:04:10]line ФМ: 0000000000875074 [08:04:10]line ФД: 64109 [08:04:10]line ФПД: 157060515720866 [08:04:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T080411&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64109&fm=157060515720866&tin=02508201610067®Number=0000000000092737&sum=25000 [08:04:11]line 0 [08:04:11]OFD Sender: Processing packet 64109 [packets to send 14, broken 13] [08:04:11]ProducePacketName [08:04:11]name=ofd_packets/00064109 [08:04:11]OFD Sender: To server: pG, [08:04:11]CommunicateWithHost lk.salyk.kg:30040 [08:04:11]ConnectInit lk.salyk.kg [08:04:11]written 0, free lines is 4095 [08:04:11]Connected sock=10 [08:04:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 0A 1D 26 01 B5 AF 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 1D 00 00 00 F4 03 04 00 FB 1B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6D FA 00 00 35 04 06 00 8E D8 80 3F 6E A2 EB 19 0D 8F 67 B3 30 6D [08:04:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 E5 BF 47 00 6C B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6D FA 00 00 F4 03 04 00 07 C8 5F 66 B6 04 01 00 00 4E 75 F8 A4 86 51 8F F8 [08:04:11]CommunicateWithHost err = 0 [08:04:11]CheckOFDResponse [08:04:11]1017 (14) - 77093643461234 [08:04:11]1041 (16) - 0000000000875074 [08:04:11]1040 (4) - 64109 [08:04:11]1012 (4) - 05.06.2024 02:05 [08:04:11]1206 (1) - 0 [08:04:11]OFD Sender: Remove packet 64109 [08:04:11]ProducePacketName [08:04:11]name=ofd_packets/00064109 [08:04:11]NVStorageDeleteData [08:04:11]Write to MH i2c: 01 00 00 28 14 3C [08:04:11]Write i2c OK [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: 01 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: 01 07 00 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: 01 07 00 28 14 00 00 00 00 00 ED 0C 3C [08:04:11]RasterBufferAndPrint [08:04:11]line [08:04:11]line [08:04:11]line [08:04:11]line [08:04:11]line [08:04:11]written 0, free lines is 3318 [08:04:11]MH_Cut [08:04:11]Write to MH i2c: D1 01 00 2F 14 01 15 [08:04:11]Write i2c OK [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: D1 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: D1 01 00 [08:04:11]MH_I2C_Read... [08:04:11]Read from MH i2c: D1 01 00 2F 14 00 14 [08:04:11]Write to MH i2c: 01 00 00 30 14 44 [08:04:11]Write i2c OK [08:04:11]MH_I2C_Read... [08:04:11]OFD Sender: No OFD packet to send [08:04:12]*** Cut start [08:04:12]*** Partial cut [08:04:12]*** CUTSNS_PIN = 1 [08:04:12]*** CUTSNS_PIN = 0 [08:04:12]*** Brake cut motor [08:04:12]Read from MH i2c: 01 [08:04:12]MH_I2C_Read... [08:04:12]*** Stop cut motor [08:04:12]*** Cut end [08:04:12]Read from MH i2c: 01 07 00 [08:04:12]MH_I2C_Read... [08:04:12]Read from MH i2c: 01 07 00 30 14 00 00 00 00 00 FF 0F 59 [08:04:12]process_action close_receipt done [08:04:12]requested_data is exist [08:04:12]produce_requested_data [08:04:12]requested_item fm.sn is exist - process it [08:04:12]wFMCommunicate request_size=4 [08:04:12]MH_SAM_APDU [08:04:12]CAPDU: 80 11 00 00 [08:04:12]Write to MH i2c: E2 08 00 31 14 80 11 00 00 00 00 00 00 BF [08:04:12]Write i2c OK [08:04:12]MH_I2C_Read... [08:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:12]Read from MH i2c: E2 [08:04:12]MH_I2C_Read... [08:04:12]Read from MH i2c: E2 17 00 [08:04:12]MH_I2C_Read... [08:04:12]Read from MH i2c: E2 17 00 31 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 11 [08:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:04:12]wFMCommunicate OK [08:04:12]requested_item fd.num is exist - process it [08:04:12]SAM_PROTO_GetFieldsCounters [08:04:12]wFMCommunicate request_size=4 [08:04:12]MH_SAM_APDU [08:04:12]CAPDU: 80 13 00 00 [08:04:12]Write to MH i2c: E2 08 00 32 14 80 13 00 00 00 00 00 00 C2 [08:04:12]Write i2c OK [08:04:12]MH_I2C_Read... [08:04:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:13]Read from MH i2c: E2 [08:04:13]MH_I2C_Read... [08:04:13]Read from MH i2c: E2 62 00 [08:04:13]MH_I2C_Read... [08:04:13]Read from MH i2c: E2 62 00 32 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6D FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [08:04:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6D FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:04:13]wFMCommunicate OK [08:04:13]SAM_PROTO_GetFieldsCounters done [08:04:13]requested_item shift.num is exist - process it [08:04:13]requested_item shift.opened is exist - process it [08:04:13]req_shift_opened [08:04:13]FM_GetShiftState [08:04:13]SAM_PROTO_GetShiftState [08:04:13]wFMCommunicate request_size=4 [08:04:13]MH_SAM_APDU [08:04:13]CAPDU: 80 13 01 00 [08:04:13]Write to MH i2c: E2 08 00 33 14 80 13 01 00 00 00 00 00 C4 [08:04:13]Write i2c OK [08:04:13]MH_I2C_Read... [08:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:13]Read from MH i2c: E2 [08:04:13]MH_I2C_Read... [08:04:13]Read from MH i2c: E2 0E 00 [08:04:13]MH_I2C_Read... [08:04:13]Read from MH i2c: E2 0E 00 33 14 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 05 [08:04:13]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:04:13]wFMCommunicate OK [08:04:13]SAM_PROTO_GetShiftState done [08:04:13]FM_GetShiftState done [08:04:13]req_shift_opened done [08:04:13]requested_item shift.open_date is exist - process it [08:04:13]req_shift_open_date [08:04:13]req_shift_open_date done [08:04:13]produce_requested_data done [08:04:13]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64109,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [08:04:13]process_action_free close_receipt [08:04:13]json_value_free [08:04:13]json_value_free done [08:04:13]process_json_proto returns [08:04:13]Send response to host [08:04:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64109,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [08:04:13]free response buf [08:04:13]execute_script done [08:04:13]execute_script returns [08:04:13]free content buf [08:04:13]Sock 8.Close socket [08:04:13]Sock 8.Thread stoped [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:16]accept exits with 9 [08:06:16]New connection [08:06:16]New thread 3067133284 created [08:06:16]Thread 3067276644 joined [08:06:16]Waiting for new connection... [08:06:16] Sock 9.Parse request [08:06:16]Sock 9.Check first char [08:06:16]Sock 9.First char is OK [08:06:16]request: POST /json_proto HTTP/1.0 [08:06:16]Method: POST [08:06:16]URL: /json_proto [08:06:16]Method is POST - this is cgi request [08:06:16]url: /json_proto [08:06:16]query_string will be loaded in cgi processing [08:06:16]execute_cgi json_proto POST (null) [08:06:16]execute_cgi path=json_proto method=POST [08:06:16]POST find Content-Length [08:06:16]Host: 172.17.60.69:8080 [08:06:16]Content-Length: 854 [08:06:17]Content-Type: application/json [08:06:17] [08:06:17]POST finish read [08:06:17]Found Content-Length = 854 [08:06:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73649", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:17]execute_script... [08:06: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)73649", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:17]POST & json_proto [08:06:17]process_json_proto [08:06:17]json parsed OK: [08:06:17]protocol is kg_v1.0 [08:06:17]action value=close_receipt [08:06:17]process_action close_receipt [08:06:17]cmd_close_receipt [08:06:17]MH_GetDate [08:06:17]Write to MH i2c: F0 00 00 34 14 37 [08:06:17]Write i2c OK [08:06:17]MH_I2C_Read... [08:06:17]Read from MH i2c: F0 [08:06:17]MH_I2C_Read... [08:06:17]Read from MH i2c: F0 09 00 [08:06:17]MH_I2C_Read... [08:06:17]Read from MH i2c: F0 09 00 34 14 00 7B 1C 60 66 D2 83 5F 66 B7 [08:06:17]GetLastDocTimeStamp 1717574651 [08:06:17]current date 1717574779 [08:06:17]FM_GetShiftState [08:06:17]SAM_PROTO_GetShiftState [08:06:17]wFMCommunicate request_size=4 [08:06:17]MH_SAM_APDU [08:06:17]CAPDU: 80 13 01 00 [08:06:17]Write to MH i2c: E2 08 00 35 14 80 13 01 00 00 00 00 00 C6 [08:06:17]Write i2c OK [08:06:17]MH_I2C_Read... [08:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:17]Read from MH i2c: E2 [08:06:17]MH_I2C_Read... [08:06:17]Read from MH i2c: E2 0E 00 [08:06:17]MH_I2C_Read... [08:06:17]Read from MH i2c: E2 0E 00 35 14 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 07 [08:06:17]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:06:17]wFMCommunicate OK [08:06:17]SAM_PROTO_GetShiftState done [08:06:17]FM_GetShiftState done [08:06:17]opened in 1717545925 [08:06:17]opened+sec_in_day 1717632325 [08:06:17]quantity*price = 9500 [08:06:17]sum+1 = 9501 [08:06:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 30 05.06.2024 08:06 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64110 ФПД: 198722825874203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T080619&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64110&fm=198722825874203&tin=02508201610067®Number=0000000000092737&sum=9500 0 [08:06:18]StoreToDocumentArchive [08:06:18]shift 375 fd 64110 [08:06:18]save to /storage/0375/doc_00064110 [08:06:18]save last doc name /storage/0375/doc_00064110 to /storage/kkm_last_doc_name [08:06:18]save OK [08:06:18]Clear old archive folders... [08:06:18]ProcessDocumentItem done err = 0, tmpTLVsize=293 [08:06:18]tlvbuf is 00FA01A0 [08:06:18]SAM_PROTO_ClearQueue [08:06:18]wFMCommunicate request_size=4 [08:06:18]MH_SAM_APDU [08:06:18]CAPDU: 80 09 00 00 [08:06:18]Write to MH i2c: E2 08 00 42 14 80 09 00 00 00 00 00 00 C8 [08:06:18]Write i2c OK [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 [08:06:18]MH_I2C_Read... [08:06:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:18]Read from MH i2c: E2 03 00 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 03 00 42 14 00 90 00 CA [08:06:18]RAPDU: 90 00 [08:06:18]wFMCommunicate OK [08:06:18]SAM_PROTO_ClearQueue done [08:06:18]KKMCreateOFDPacket [08:06:18]OFDProtocolAddRootSTLVToBuf [08:06:18]FM_MakeSignedData [08:06:18]FM_MakeSignedData [08:06:18]SAM_PROTO_SignData [08:06:18]wFMCommunicate request_size=4 [08:06:18]MH_SAM_APDU [08:06:18]CAPDU: 80 0D 01 02 [08:06:18]Write to MH i2c: E2 08 00 43 14 80 0D 01 02 00 00 00 00 D0 [08:06:18]Write i2c OK [08:06:18]MH_I2C_Read... [08:06:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:18]Read from MH i2c: E2 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 03 00 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 03 00 43 14 00 90 00 CB [08:06:18]RAPDU: 90 00 [08:06:18]wFMCommunicate OK [08:06:18]wFMCommunicate request_size=255 [08:06:18]MH_SAM_APDU [08:06:18]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 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 1E 00 00 00 F4 03 04 00 7B 1C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [08:06:18]Write to MH i2c: E2 02 01 44 14 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 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 1E 00 00 00 F4 03 04 00 7B 1C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 63 [08:06:18]Write i2c OK [08:06:18]MH_I2C_Read... [08:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:18]Read from MH i2c: E2 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 03 00 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 03 00 44 14 00 90 00 CC [08:06:18]RAPDU: 90 00 [08:06:18]wFMCommunicate OK [08:06:18]wFMCommunicate request_size=52 [08:06:18]MH_SAM_APDU [08:06:18]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6E FA 00 00 35 04 06 00 B4 BC C3 71 EB 1B [08:06:18]Write to MH i2c: E2 37 00 45 14 80 0D 02 02 2F 00 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6E FA 00 00 35 04 06 00 B4 BC C3 71 EB 1B 00 00 AA [08:06:18]Write i2c OK [08:06:18]MH_I2C_Read... [08:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:18]Read from MH i2c: E2 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 03 00 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 03 00 45 14 00 90 00 CD [08:06:18]RAPDU: 90 00 [08:06:18]wFMCommunicate OK [08:06:18]wFMCommunicate request_size=4 [08:06:18]MH_SAM_APDU [08:06:18]CAPDU: 80 0D 03 02 [08:06:18]Write to MH i2c: E2 08 00 46 14 80 0D 03 02 00 00 00 00 D5 [08:06:18]Write i2c OK [08:06:18]MH_I2C_Read... [08:06:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:18]Read from MH i2c: E2 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 0B 00 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 0B 00 46 14 00 6A 31 19 D6 28 85 41 8E 90 00 DC [08:06:18]RAPDU: 6A 31 19 D6 28 85 41 8E 90 00 [08:06:18]wFMCommunicate OK [08:06:18]SAM_PROTO_SignData done [08:06:18]FM_MakeSignedData done [08:06:18]CreateOFDProtocolMessage [08:06:18]wFMCommunicate request_size=4 [08:06:18]MH_SAM_APDU [08:06:18]CAPDU: 80 11 00 00 [08:06:18]Write to MH i2c: E2 08 00 47 14 80 11 00 00 00 00 00 00 D5 [08:06:18]Write i2c OK [08:06:18]MH_I2C_Read... [08:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:18]Read from MH i2c: E2 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 17 00 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 17 00 47 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 27 [08:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:06:18]wFMCommunicate OK [08:06:18]CreateOFDProtocolMessage done [08:06:18]OFDSenderStorePacket 64110 [08:06:18]StoreOFDPacket docnum=64110 [08:06:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 B2 00 31 01 0D 85 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 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 1E 00 00 00 F4 03 04 00 7B 1C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6E FA 00 00 35 04 06 00 B4 BC C3 71 EB 1B 6A 31 19 D6 28 85 41 8E [08:06:18]CheckFolder [08:06:18]dirname=/storage/ofd_packets [08:06:18]CheckFolder done [08:06:18]ProducePacketName [08:06:18]name=ofd_packets/00064110 [08:06:18]NVStorageSaveData ofd_packets/00064110 [08:06:18]File name is /storage/ofd_packets/00064110 [08:06:18]Write 343 bytes [08:06:18]NVStorageSaveData done [08:06:18]OFDSenderStorePacket done [08:06:18]KKMCreateOFDPacket done [08:06:18]NVStorageSaveData kkm_last_timestamp [08:06:18]File name is /storage/kkm_last_timestamp [08:06:18]Write 4 bytes [08:06:18]NVStorageSaveData done [08:06:18]ExternCall_PrintAddStr [08:06:18]wPrintStart [08:06:18]Write to MH i2c: 01 00 00 48 14 5C [08:06:18]OFD Sender: Processing packet 64110 [packets to send 14, broken 13] [08:06:18]ProducePacketName [08:06:18]name=ofd_packets/00064110 [08:06:18]OFD Sender: To server: pG, [08:06:18]CommunicateWithHost lk.salyk.kg:30040 [08:06:18]ConnectInit lk.salyk.kg [08:06:18]Write i2c OK [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: 01 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: 01 07 00 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: 01 07 00 48 14 00 00 00 00 00 FF 0F 71 [08:06:18]RasterBufferAndPrint [08:06:18]line Счет N : (3)73649 [08:06:18]line ИНН: 02508201610067 [08:06:18]line Контрольно-Кассовый Чек [08:06:18]line ПРОДАЖА [08:06:18]line Товар: 4700000480050 [08:06:18]line Напиток Nitro Energy эн green ж/б 0,45л [08:06:18]line 1.000 * 95.00 [08:06:18]line = 95.00 [08:06:18]line НДС 12% НСП 1% [08:06:18]line > о реализуемом товаре [08:06:18]line ИТОГО: 95.00 [08:06:18]line НСП 1% : 0.84 [08:06:18]line НДС 12% : 10.09 [08:06:18]line Наличными: 0.00 [08:06:18]line Безнал.: 95.00 [08:06:18]line Место: АЗС № 117 "Партнер Нефть" [08:06:18]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:06:18]line СНО: Общий режим [08:06:18]line Чек 30 05.06.2024 08:06 [08:06:18]line Смена: 375 ФФД: 1.0 [08:06:18]line ЗНМ: 0300000031 [08:06:18]line РНМ: 0000000000092737 [08:06:18]line Версия ККМ: 001 [08:06:18]line Платежная система: АКБ Кыргызстан [08:06:18]line ФМ: 0000000000875074 [08:06:18]line ФД: 64110 [08:06:18]line ФПД: 198722825874203 [08:06:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T080619&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64110&fm=198722825874203&tin=02508201610067®Number=0000000000092737&sum=9500 [08:06:19]line 0 [08:06:19]Connected sock=10 [08:06:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 B2 00 31 01 0D 85 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 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 1E 00 00 00 F4 03 04 00 7B 1C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6E FA 00 00 35 04 06 00 B4 BC C3 71 EB 1B 6A 31 19 D6 28 85 41 8E [08:06:19]written 0, free lines is 4095 [08:06:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 1A 0E 47 00 63 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6E FA 00 00 F4 03 04 00 87 C8 5F 66 B6 04 01 00 00 1D D8 AC 8F 05 F0 A7 89 [08:06:19]CommunicateWithHost err = 0 [08:06:19]CheckOFDResponse [08:06:19]1017 (14) - 77093643461234 [08:06:19]1041 (16) - 0000000000875074 [08:06:19]1040 (4) - 64110 [08:06:19]1012 (4) - 05.06.2024 02:08 [08:06:19]1206 (1) - 0 [08:06:19]OFD Sender: Remove packet 64110 [08:06:19]ProducePacketName [08:06:19]name=ofd_packets/00064110 [08:06:19]NVStorageDeleteData [08:06:19]Write to MH i2c: 01 00 00 73 14 87 [08:06:19]Write i2c OK [08:06:19]MH_I2C_Read... [08:06:19]Read from MH i2c: 01 [08:06:19]MH_I2C_Read... [08:06:19]Read from MH i2c: 01 07 00 [08:06:19]MH_I2C_Read... [08:06:19]Read from MH i2c: 01 07 00 73 14 00 00 00 00 00 C8 0C 62 [08:06:19]RasterBufferAndPrint [08:06:19]line [08:06:19]line [08:06:19]line [08:06:19]line [08:06:19]line [08:06:19]written 0, free lines is 3281 [08:06:19]MH_Cut [08:06:19]Write to MH i2c: D1 01 00 7A 14 01 60 [08:06:19]Write i2c OK [08:06:19]MH_I2C_Read... [08:06:19]Read from MH i2c: D1 [08:06:19]MH_I2C_Read... [08:06:19]Read from MH i2c: D1 01 00 [08:06:19]MH_I2C_Read... [08:06:19]Read from MH i2c: D1 01 00 7A 14 00 5F [08:06:19]Write to MH i2c: 01 00 00 7B 14 8F [08:06:19]Write i2c OK [08:06:19]MH_I2C_Read... [08:06:19]OFD Sender: No OFD packet to send [08:06:20]*** Cut start [08:06:20]*** Partial cut [08:06:20]*** CUTSNS_PIN = 1 [08:06:20]*** CUTSNS_PIN = 0 [08:06:20]*** Brake cut motor [08:06:21]Read from MH i2c: 01 [08:06:21]MH_I2C_Read... [08:06:21]*** Stop cut motor [08:06:21]*** Cut end [08:06:21]Read from MH i2c: 01 07 00 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: 01 07 00 7B 14 00 00 00 00 00 FF 0F A4 [08:06:21]process_action close_receipt done [08:06:21]requested_data is exist [08:06:21]produce_requested_data [08:06:21]requested_item fm.sn is exist - process it [08:06:21]wFMCommunicate request_size=4 [08:06:21]MH_SAM_APDU [08:06:21]CAPDU: 80 11 00 00 [08:06:21]Write to MH i2c: E2 08 00 7C 14 80 11 00 00 00 00 00 00 0A [08:06:21]Write i2c OK [08:06:21]MH_I2C_Read... [08:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:21]Read from MH i2c: E2 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 17 00 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 17 00 7C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 5C [08:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:06:21]wFMCommunicate OK [08:06:21]requested_item fd.num is exist - process it [08:06:21]SAM_PROTO_GetFieldsCounters [08:06:21]wFMCommunicate request_size=4 [08:06:21]MH_SAM_APDU [08:06:21]CAPDU: 80 13 00 00 [08:06:21]Write to MH i2c: E2 08 00 7D 14 80 13 00 00 00 00 00 00 0D [08:06:21]Write i2c OK [08:06:21]MH_I2C_Read... [08:06:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:21]Read from MH i2c: E2 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 62 00 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 62 00 7D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6E FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [08:06:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6E FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:21]wFMCommunicate OK [08:06:21]SAM_PROTO_GetFieldsCounters done [08:06:21]requested_item shift.num is exist - process it [08:06:21]requested_item shift.opened is exist - process it [08:06:21]req_shift_opened [08:06:21]FM_GetShiftState [08:06:21]SAM_PROTO_GetShiftState [08:06:21]wFMCommunicate request_size=4 [08:06:21]MH_SAM_APDU [08:06:21]CAPDU: 80 13 01 00 [08:06:21]Write to MH i2c: E2 08 00 7E 14 80 13 01 00 00 00 00 00 0F [08:06:21]Write i2c OK [08:06:21]MH_I2C_Read... [08:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:21]Read from MH i2c: E2 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 0E 00 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 0E 00 7E 14 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 50 [08:06:21]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:06:21]wFMCommunicate OK [08:06:21]SAM_PROTO_GetShiftState done [08:06:21]FM_GetShiftState done [08:06:21]req_shift_opened done [08:06:21]requested_item shift.open_date is exist - process it [08:06:21]req_shift_open_date [08:06:21]req_shift_open_date done [08:06:21]produce_requested_data done [08:06:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64110,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [08:06:21]process_action_free close_receipt [08:06:21]json_value_free [08:06:21]json_value_free done [08:06:21]process_json_proto returns [08:06:21]Send response to host [08:06:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64110,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [08:06:21]free response buf [08:06:21]execute_script done [08:06:21]execute_script returns [08:06:21]free content buf [08:06:21]Sock 9.Close socket [08:06:21]Sock 9.Thread stoped [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:58]accept exits with 8 [08:08:58]New connection [08:08:58]New thread 3067276644 created [08:08:58]Thread 3067133284 joined [08:08:58]Waiting for new connection... [08:08:58] Sock 8.Parse request [08:08:58]Sock 8.Check first char [08:08:58]Sock 8.First char is OK [08:08:58]request: POST /json_proto HTTP/1.0 [08:08:58]Method: POST [08:08:58]URL: /json_proto [08:08:58]Method is POST - this is cgi request [08:08:58]url: /json_proto [08:08:58]query_string will be loaded in cgi processing [08:08:58]execute_cgi json_proto POST (null) [08:08:58]execute_cgi path=json_proto method=POST [08:08:58]POST find Content-Length [08:08:58]Host: 172.17.60.69:8080 [08:08:58]Content-Length: 891 [08:08:58]Content-Type: application/json [08:08:58] [08:08:58]POST finish read [08:08:58]Found Content-Length = 891 [08:08:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73650", "tax_sys" : 0, "items" : [ { "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 258.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:58]execute_script... [08:08: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)73650", "tax_sys" : 0, "items" : [ { "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 258.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:58]POST & json_proto [08:08:58]process_json_proto [08:08:58]json parsed OK: [08:08:58]protocol is kg_v1.0 [08:08:58]action value=close_receipt [08:08:58]process_action close_receipt [08:08:58]cmd_close_receipt [08:08:58]MH_GetDate [08:08:58]Write to MH i2c: F0 00 00 7F 14 82 [08:08:58]Write i2c OK [08:08:58]MH_I2C_Read... [08:08:58]Read from MH i2c: F0 [08:08:58]MH_I2C_Read... [08:08:58]Read from MH i2c: F0 09 00 [08:08:58]MH_I2C_Read... [08:08:58]Read from MH i2c: F0 09 00 7F 14 00 1C 1D 60 66 D2 83 5F 66 A4 [08:08:58]GetLastDocTimeStamp 1717574779 [08:08:58]current date 1717574940 [08:08:58]FM_GetShiftState [08:08:58]SAM_PROTO_GetShiftState [08:08:58]wFMCommunicate request_size=4 [08:08:58]MH_SAM_APDU [08:08:58]CAPDU: 80 13 01 00 [08:08:58]Write to MH i2c: E2 08 00 80 14 80 13 01 00 00 00 00 00 11 [08:08:58]Write i2c OK [08:08:58]MH_I2C_Read... [08:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:58]Read from MH i2c: E2 [08:08:58]MH_I2C_Read... [08:08:58]Read from MH i2c: E2 0E 00 [08:08:58]MH_I2C_Read... [08:08:58]Read from MH i2c: E2 0E 00 80 14 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 52 [08:08:58]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:08:58]wFMCommunicate OK [08:08:58]SAM_PROTO_GetShiftState done [08:08:58]FM_GetShiftState done [08:08:58]opened in 1717545925 [08:08:58]opened+sec_in_day 1717632325 [08:08:58]quantity*price = 12000 [08:08:58]sum+1 = 12001 [08:08:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 138.00 = 138.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 258.00 НСП 1% : 2.28 НДС 12% : 27.39 Наличными: 258.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 31 05.06.2024 08:09 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64111 ФПД: 130603117376032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T080900&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64111&fm=130603117376032&tin=02508201610067®Number=0000000000092737&sum=25800 0 [08:08:59]StoreToDocumentArchive [08:08:59]shift 375 fd 64111 [08:08:59]save to /storage/0375/doc_00064111 [08:08:59]save last doc name /storage/0375/doc_00064111 to /storage/kkm_last_doc_name [08:08:59]save OK [08:08:59]Clear old archive folders... [08:08:59]ProcessDocumentItem done err = 0, tmpTLVsize=382 [08:08:59]tlvbuf is 00FF8FD0 [08:08:59]SAM_PROTO_ClearQueue [08:08:59]wFMCommunicate request_size=4 [08:08:59]MH_SAM_APDU [08:08:59]CAPDU: 80 09 00 00 [08:08:59]Write to MH i2c: E2 08 00 8D 14 80 09 00 00 00 00 00 00 13 [08:08:59]Write i2c OK [08:08:59]MH_I2C_Read... [08:08:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:59]Read from MH i2c: E2 [08:08:59]MH_I2C_Read... [08:08:59]Read from MH i2c: E2 03 00 [08:08:59]MH_I2C_Read... [08:08:59]Read from MH i2c: E2 03 00 8D 14 00 90 00 15 [08:08:59]RAPDU: 90 00 [08:08:59]wFMCommunicate OK [08:08:59]SAM_PROTO_ClearQueue done [08:08:59]KKMCreateOFDPacket [08:08:59]OFDProtocolAddRootSTLVToBuf [08:08:59]FM_MakeSignedData [08:08:59]FM_MakeSignedData [08:08:59]SAM_PROTO_SignData [08:08:59]wFMCommunicate request_size=4 [08:08:59]MH_SAM_APDU [08:08:59]CAPDU: 80 0D 01 02 [08:08:59]Write to MH i2c: E2 08 00 8E 14 80 0D 01 02 00 00 00 00 1B [08:08:59]Write i2c OK [08:08:59]MH_I2C_Read... [08:08:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:59]Read from MH i2c: E2 [08:08:59]MH_I2C_Read... [08:08:59]Read from MH i2c: E2 03 00 [08:08:59]MH_I2C_Read... [08:08:59]Read from MH i2c: E2 03 00 8E 14 00 90 00 16 [08:08:59]RAPDU: 90 00 [08:08:59]wFMCommunicate OK [08:08:59]wFMCommunicate request_size=255 [08:08:59]MH_SAM_APDU [08:08:59]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 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 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 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 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 [08:08:59]Write to MH i2c: E2 02 01 8F 14 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 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 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 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 C8 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 D8 [08:08:59]Write i2c OK [08:08:59]MH_I2C_Read... [08:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:59]Read from MH i2c: E2 [08:08:59]MH_I2C_Read... [08:08:59]Read from MH i2c: E2 03 00 [08:08:59]MH_I2C_Read... [08:08:59]Read from MH i2c: E2 03 00 8F 14 00 90 00 17 [08:08:59]RAPDU: 90 00 [08:08:59]wFMCommunicate OK [08:08:59]wFMCommunicate request_size=141 [08:08:59]MH_SAM_APDU [08:08:59]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0A 00 00 00 00 07 04 06 00 C8 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 1F 00 00 00 F4 03 04 00 1C 1D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6F FA 00 00 35 04 06 00 76 C8 68 6A F2 20 [08:08:59]Write to MH i2c: E2 90 00 90 14 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0A 00 00 00 00 07 04 06 00 C8 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 1F 00 00 00 F4 03 04 00 1C 1D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6F FA 00 00 35 04 06 00 76 C8 68 6A F2 20 00 00 67 [08:08:59]Write i2c OK [08:08:59]MH_I2C_Read... [08:08:59]OFD Sender: No OFD packet to send [08:09:00]Read from MH i2c: E2 [08:09:00]MH_I2C_Read... [08:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:00]Read from MH i2c: E2 03 00 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: E2 03 00 90 14 00 90 00 18 [08:09:00]RAPDU: 90 00 [08:09:00]wFMCommunicate OK [08:09:00]wFMCommunicate request_size=4 [08:09:00]MH_SAM_APDU [08:09:00]CAPDU: 80 0D 03 02 [08:09:00]Write to MH i2c: E2 08 00 91 14 80 0D 03 02 00 00 00 00 20 [08:09:00]Write i2c OK [08:09:00]MH_I2C_Read... [08:09:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:00]Read from MH i2c: E2 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: E2 0B 00 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: E2 0B 00 91 14 00 91 E0 D2 8D 37 1A 60 6C 90 00 0E [08:09:00]RAPDU: 91 E0 D2 8D 37 1A 60 6C 90 00 [08:09:00]wFMCommunicate OK [08:09:00]SAM_PROTO_SignData done [08:09:00]FM_MakeSignedData done [08:09:00]CreateOFDProtocolMessage [08:09:00]wFMCommunicate request_size=4 [08:09:00]MH_SAM_APDU [08:09:00]CAPDU: 80 11 00 00 [08:09:00]Write to MH i2c: E2 08 00 92 14 80 11 00 00 00 00 00 00 20 [08:09:00]Write i2c OK [08:09:00]MH_I2C_Read... [08:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:00]Read from MH i2c: E2 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: E2 17 00 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: E2 17 00 92 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 72 [08:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:09:00]wFMCommunicate OK [08:09:00]CreateOFDProtocolMessage done [08:09:00]OFDSenderStorePacket 64111 [08:09:00]StoreOFDPacket docnum=64111 [08:09:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 92 01 00 00 6D BE 8A 01 85 C3 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 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 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 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 C8 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 B3 0A 00 00 00 00 07 04 06 00 C8 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 1F 00 00 00 F4 03 04 00 1C 1D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6F FA 00 00 35 04 06 00 76 C8 68 6A F2 20 91 E0 D2 8D 37 1A 60 6C [08:09:00]CheckFolder [08:09:00]dirname=/storage/ofd_packets [08:09:00]CheckFolder done [08:09:00]ProducePacketName [08:09:00]name=ofd_packets/00064111 [08:09:00]NVStorageSaveData ofd_packets/00064111 [08:09:00]File name is /storage/ofd_packets/00064111 [08:09:00]Write 432 bytes [08:09:00]NVStorageSaveData done [08:09:00]OFDSenderStorePacket done [08:09:00]KKMCreateOFDPacket done [08:09:00]NVStorageSaveData kkm_last_timestamp [08:09:00]File name is /storage/kkm_last_timestamp [08:09:00]Write 4 bytes [08:09:00]NVStorageSaveData done [08:09:00]ExternCall_PrintAddStr [08:09:00]wPrintStart [08:09:00]Write to MH i2c: 01 00 00 93 14 A7 [08:09:00]Write i2c OK [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: 01 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: 01 07 00 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: 01 07 00 93 14 00 00 00 00 00 FF 0F BC [08:09:00]RasterBufferAndPrint [08:09:00]line Счет N : (3)73650 [08:09:00]line ИНН: 02508201610067 [08:09:00]line Контрольно-Кассовый Чек [08:09:00]line ПРОДАЖА [08:09:00]line Товар: 4860019001353 [08:09:00]line Вода Боржоми 0,5л ПЭТ [08:09:00]line 1.000 * 120.00 [08:09:00]line = 120.00 [08:09:00]line НДС 12% НСП 1% [08:09:00]line > о реализуемом товаре [08:09:00]line Товар: 4640030091645 [08:09:00]line Сигареты ESSE Exchange M [08:09:00]line 1.000 * 138.00 [08:09:00]line = 138.00 [08:09:00]line НДС 12% НСП 1% [08:09:00]line > о реализуемом товаре [08:09:00]line ИТОГО: 258.00 [08:09:00]line НСП 1% : 2.28 [08:09:00]line НДС 12% : 27.39 [08:09:00]line Наличными: 258.00 [08:09:00]line Безнал.: 0.00 [08:09:00]line Место: АЗС № 117 "Партнер Нефть" [08:09:00]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:09:00]line СНО: Общий режим [08:09:00]line Чек 31 05.06.2024 08:09 [08:09:00]line Смена: 375 ФФД: 1.0 [08:09:00]line ЗНМ: 0300000031 [08:09:00]line РНМ: 0000000000092737 [08:09:00]line Версия ККМ: 001 [08:09:00]line ФМ: 0000000000875074 [08:09:00]line ФД: 64111 [08:09:00]line ФПД: 130603117376032 [08:09:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T080900&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64111&fm=130603117376032&tin=02508201610067®Number=0000000000092737&sum=25800 [08:09:00]OFD Sender: Processing packet 64111 [packets to send 14, broken 13] [08:09:00]ProducePacketName [08:09:00]name=ofd_packets/00064111 [08:09:00]OFD Sender: To server: pG, [08:09:00]CommunicateWithHost lk.salyk.kg:30040 [08:09:00]ConnectInit lk.salyk.kg [08:09:00]line 0 [08:09:00]written 0, free lines is 4095 [08:09:00]Connected sock=10 [08:09:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 92 01 00 00 6D BE 8A 01 85 C3 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 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 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 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 C8 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 B3 0A 00 00 00 00 07 04 06 00 C8 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 1F 00 00 00 F4 03 04 00 1C 1D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6F FA 00 00 35 04 06 00 76 C8 68 6A F2 20 91 E0 D2 8D 37 1A 60 6C [08:09:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 83 75 47 00 9C C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6F FA 00 00 F4 03 04 00 29 C9 5F 66 B6 04 01 00 00 18 FA 18 04 E1 50 B9 A0 [08:09:00]CommunicateWithHost err = 0 [08:09:00]CheckOFDResponse [08:09:00]1017 (14) - 77093643461234 [08:09:00]1041 (16) - 0000000000875074 [08:09:00]1040 (4) - 64111 [08:09:00]1012 (4) - 05.06.2024 02:10 [08:09:00]1206 (1) - 0 [08:09:00]OFD Sender: Remove packet 64111 [08:09:00]ProducePacketName [08:09:00]name=ofd_packets/00064111 [08:09:00]NVStorageDeleteData [08:09:00]Write to MH i2c: 01 00 00 C1 14 D5 [08:09:00]Write i2c OK [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: 01 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: 01 07 00 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: 01 07 00 C1 14 00 00 00 00 00 A8 0C 90 [08:09:00]RasterBufferAndPrint [08:09:00]line [08:09:00]line [08:09:00]line [08:09:00]line [08:09:00]line [08:09:00]written 0, free lines is 3245 [08:09:00]MH_Cut [08:09:00]Write to MH i2c: D1 01 00 C8 14 01 AE [08:09:00]Write i2c OK [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: D1 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: D1 01 00 [08:09:00]MH_I2C_Read... [08:09:00]Read from MH i2c: D1 01 00 C8 14 00 AD [08:09:00]Write to MH i2c: 01 00 00 C9 14 DD [08:09:00]Write i2c OK [08:09:00]MH_I2C_Read... [08:09:01]OFD Sender: No OFD packet to send [08:09:01]*** Cut start [08:09:01]*** Partial cut [08:09:01]*** CUTSNS_PIN = 1 [08:09:01]*** CUTSNS_PIN = 0 [08:09:02]*** Brake cut motor [08:09:02]Read from MH i2c: 01 [08:09:02]MH_I2C_Read... [08:09:02]*** Stop cut motor [08:09:02]*** Cut end [08:09:02]Read from MH i2c: 01 07 00 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: 01 07 00 C9 14 00 00 00 00 00 FF 0F F2 [08:09:02]process_action close_receipt done [08:09:02]requested_data is exist [08:09:02]produce_requested_data [08:09:02]requested_item fm.sn is exist - process it [08:09:02]wFMCommunicate request_size=4 [08:09:02]MH_SAM_APDU [08:09:02]CAPDU: 80 11 00 00 [08:09:02]Write to MH i2c: E2 08 00 CA 14 80 11 00 00 00 00 00 00 58 [08:09:02]Write i2c OK [08:09:02]MH_I2C_Read... [08:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:02]Read from MH i2c: E2 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: E2 17 00 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: E2 17 00 CA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AA [08:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:09:02]wFMCommunicate OK [08:09:02]requested_item fd.num is exist - process it [08:09:02]SAM_PROTO_GetFieldsCounters [08:09:02]wFMCommunicate request_size=4 [08:09:02]MH_SAM_APDU [08:09:02]CAPDU: 80 13 00 00 [08:09:02]Write to MH i2c: E2 08 00 CB 14 80 13 00 00 00 00 00 00 5B [08:09:02]Write i2c OK [08:09:02]MH_I2C_Read... [08:09:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:02]Read from MH i2c: E2 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: E2 62 00 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: E2 62 00 CB 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6F FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [08:09:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6F FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:02]wFMCommunicate OK [08:09:02]SAM_PROTO_GetFieldsCounters done [08:09:02]requested_item shift.num is exist - process it [08:09:02]requested_item shift.opened is exist - process it [08:09:02]req_shift_opened [08:09:02]FM_GetShiftState [08:09:02]SAM_PROTO_GetShiftState [08:09:02]wFMCommunicate request_size=4 [08:09:02]MH_SAM_APDU [08:09:02]CAPDU: 80 13 01 00 [08:09:02]Write to MH i2c: E2 08 00 CC 14 80 13 01 00 00 00 00 00 5D [08:09:02]Write i2c OK [08:09:02]MH_I2C_Read... [08:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:02]Read from MH i2c: E2 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: E2 0E 00 [08:09:02]MH_I2C_Read... [08:09:02]Read from MH i2c: E2 0E 00 CC 14 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 9E [08:09:02]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:09:02]wFMCommunicate OK [08:09:02]SAM_PROTO_GetShiftState done [08:09:02]FM_GetShiftState done [08:09:02]req_shift_opened done [08:09:02]requested_item shift.open_date is exist - process it [08:09:02]req_shift_open_date [08:09:02]req_shift_open_date done [08:09:02]produce_requested_data done [08:09:02]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64111,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [08:09:02]process_action_free close_receipt [08:09:02]json_value_free [08:09:02]json_value_free done [08:09:02]process_json_proto returns [08:09:02]Send response to host [08:09:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64111,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [08:09:02]free response buf [08:09:02]execute_script done [08:09:02]execute_script returns [08:09:02]free content buf [08:09:02]Sock 8.Close socket [08:09:02]Sock 8.Thread stoped [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:11]accept exits with 9 [08:09:11]New connection [08:09:11]New thread 3067133284 created [08:09:11]Thread 3067276644 joined [08:09:11]Waiting for new connection... [08:09:11] Sock 9.Parse request [08:09:11]Sock 9.Check first char [08:09:11]Sock 9.First char is OK [08:09:11]request: POST /json_proto HTTP/1.0 [08:09:11]Method: POST [08:09:11]URL: /json_proto [08:09:11]Method is POST - this is cgi request [08:09:11]url: /json_proto [08:09:11]query_string will be loaded in cgi processing [08:09:11]execute_cgi json_proto POST (null) [08:09:11]execute_cgi path=json_proto method=POST [08:09:11]POST find Content-Length [08:09:11]Host: 172.17.60.69:8080 [08:09:11]Content-Length: 1213 [08:09:11]Content-Type: application/json [08:09:11] [08:09:11]POST finish read [08:09:11]Found Content-Length = 1213 [08:09: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 117\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420.\u000A\u0421\u0447\u0435\u0442 N : (1)545382\u000A05.06.2024 08:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3751388;3751389\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:11]execute_script... [08:09: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 117\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420.\u000A\u0421\u0447\u0435\u0442 N : (1)545382\u000A05.06.2024 08:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3751388;3751389\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:11]POST & json_proto [08:09:11]process_json_proto [08:09:11]json parsed OK: [08:09:11]protocol is kg_v1.0 [08:09:11]action value=print_text [08:09:11]process_action print_text [08:09:11]cmd_print_text [08:09:11]ExternCall_PrintAddStr [08:09:11]wPrintStart [08:09:11]Write to MH i2c: 01 00 00 CD 14 E1 [08:09:11]Write i2c OK [08:09:11]MH_I2C_Read... [08:09:11]Read from MH i2c: 01 [08:09:11]MH_I2C_Read... [08:09:11]Read from MH i2c: 01 07 00 [08:09:11]MH_I2C_Read... [08:09:11]Read from MH i2c: 01 07 00 CD 14 00 00 00 00 00 FF 0F F6 [08:09:11]RasterBufferAndPrint [08:09:11]line *****ТОВАРНЫЙ ЧЕК***** [08:09:11]line АЗС 117 [08:09:11]line Партнер нефть [08:09:11]line 02508201610067 [08:09:11]line Кассир : Койгельдиева Р. [08:09:11]line Счет N : (1)545382 [08:09:11]line 05.06.2024 08:04 [08:09:11]line ПРОДАЖА [08:09:11]line ТРК (МРК, ГНК): 21 [08:09:11]line Вид ГСМ : 2710194210 [08:09:11]line ДТ-К-5 [08:09:11]line 20.000 x 72.90 [08:09:11]line ИТОГ: 1458.00 [08:09:11]line Тип оплаты: Талоны: Партнер нефть [08:09:11]line 3751388;3751389 [08:09:11]line ______________________ [08:09:11]line (подпись) [08:09:11]written 0, free lines is 4095 [08:09:11]Write to MH i2c: 01 00 00 E2 14 F6 [08:09:11]Write i2c OK [08:09:11]MH_I2C_Read... [08:09:11]Read from MH i2c: 01 [08:09:11]MH_I2C_Read... [08:09:11]Read from MH i2c: 01 07 00 [08:09:11]MH_I2C_Read... [08:09:11]Read from MH i2c: 01 07 00 E2 14 00 00 00 00 00 FB 0D 05 [08:09:11]RasterBufferAndPrint [08:09:11]line [08:09:11]line [08:09:11]line [08:09:11]line [08:09:11]line [08:09:11]written 0, free lines is 3581 [08:09:11]MH_Cut [08:09:11]Write to MH i2c: D1 01 00 E9 14 01 CF [08:09:11]Write i2c OK [08:09:11]MH_I2C_Read... [08:09:11]Read from MH i2c: D1 [08:09:11]MH_I2C_Read... [08:09:11]Read from MH i2c: D1 01 00 [08:09:11]MH_I2C_Read... [08:09:11]Read from MH i2c: D1 01 00 E9 14 00 CE [08:09:11]Write to MH i2c: 01 00 00 EA 14 FE [08:09:11]Write i2c OK [08:09:11]MH_I2C_Read... [08:09:12]*** Cut start [08:09:12]*** Partial cut [08:09:12]*** CUTSNS_PIN = 1 [08:09:12]*** CUTSNS_PIN = 0 [08:09:12]*** Brake cut motor [08:09:12]Read from MH i2c: 01 [08:09:12]MH_I2C_Read... [08:09:12]*** Stop cut motor [08:09:12]*** Cut end [08:09:12]Read from MH i2c: 01 07 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: 01 07 00 EA 14 00 00 00 00 00 FF 0F 13 [08:09:12]process_action print_text done [08:09:12]requested_data is exist [08:09:12]produce_requested_data [08:09:12]requested_item fm.sn is exist - process it [08:09:12]wFMCommunicate request_size=4 [08:09:12]MH_SAM_APDU [08:09:12]CAPDU: 80 11 00 00 [08:09:12]Write to MH i2c: E2 08 00 EB 14 80 11 00 00 00 00 00 00 79 [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:12]Read from MH i2c: E2 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 17 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 17 00 EB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CB [08:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:09:12]wFMCommunicate OK [08:09:12]requested_item fd.num is exist - process it [08:09:12]SAM_PROTO_GetFieldsCounters [08:09:12]wFMCommunicate request_size=4 [08:09:12]MH_SAM_APDU [08:09:12]CAPDU: 80 13 00 00 [08:09:12]Write to MH i2c: E2 08 00 EC 14 80 13 00 00 00 00 00 00 7C [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 [08:09:12]MH_I2C_Read... [08:09:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:12]Read from MH i2c: E2 62 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 62 00 EC 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6F FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [08:09:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6F FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:12]wFMCommunicate OK [08:09:12]SAM_PROTO_GetFieldsCounters done [08:09:12]requested_item shift.num is exist - process it [08:09:12]requested_item shift.opened is exist - process it [08:09:12]req_shift_opened [08:09:12]FM_GetShiftState [08:09:12]SAM_PROTO_GetShiftState [08:09:12]wFMCommunicate request_size=4 [08:09:12]MH_SAM_APDU [08:09:12]CAPDU: 80 13 01 00 [08:09:12]Write to MH i2c: E2 08 00 ED 14 80 13 01 00 00 00 00 00 7E [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:12]Read from MH i2c: E2 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 0E 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 0E 00 ED 14 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 BF [08:09:12]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:09:12]wFMCommunicate OK [08:09:12]SAM_PROTO_GetShiftState done [08:09:12]FM_GetShiftState done [08:09:12]req_shift_opened done [08:09:12]requested_item shift.open_date is exist - process it [08:09:12]req_shift_open_date [08:09:12]req_shift_open_date done [08:09:12]produce_requested_data done [08:09:12]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64111,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [08:09:12]process_action_free print_text [08:09:12]json_value_free [08:09:12]json_value_free done [08:09:12]process_json_proto returns [08:09:12]Send response to host [08:09:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64111,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [08:09:12]free response buf [08:09:12]execute_script done [08:09:12]execute_script returns [08:09:12]free content buf [08:09:12]Sock 9.Close socket [08:09:12]Sock 9.Thread stoped [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:10:59]accept exits with 8 [08:10:59]New connection [08:10:59]New thread 3067276644 created [08:10:59]Thread 3067133284 joined [08:10:59]Waiting for new connection... [08:10:59] Sock 8.Parse request [08:10:59]Sock 8.Check first char [08:10:59]Sock 8.First char is OK [08:10:59]request: POST /json_proto HTTP/1.0 [08:10:59]Method: POST [08:10:59]URL: /json_proto [08:10:59]Method is POST - this is cgi request [08:10:59]url: /json_proto [08:10:59]query_string will be loaded in cgi processing [08:10:59]execute_cgi json_proto POST (null) [08:10:59]execute_cgi path=json_proto method=POST [08:10:59]POST find Content-Length [08:10:59]Host: 172.17.60.69:8080 [08:10:59]Content-Length: 821 [08:10:59]Content-Type: application/json [08:10:59] [08:10:59]POST finish read [08:10:59]Found Content-Length = 821 [08:10:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73651", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:59]execute_script... [08:10: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)73651", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:59]POST & json_proto [08:10:59]process_json_proto [08:10:59]json parsed OK: [08:10:59]protocol is kg_v1.0 [08:10:59]action value=close_receipt [08:10:59]process_action close_receipt [08:10:59]cmd_close_receipt [08:10:59]MH_GetDate [08:10:59]Write to MH i2c: F0 00 00 EE 14 F1 [08:10:59]Write i2c OK [08:10:59]MH_I2C_Read... [08:10:59]Read from MH i2c: F0 [08:10:59]MH_I2C_Read... [08:10:59]Read from MH i2c: F0 09 00 [08:10:59]MH_I2C_Read... [08:10:59]Read from MH i2c: F0 09 00 EE 14 00 95 1D 60 66 D2 83 5F 66 8C [08:10:59]GetLastDocTimeStamp 1717574940 [08:10:59]current date 1717575061 [08:10:59]FM_GetShiftState [08:10:59]SAM_PROTO_GetShiftState [08:10:59]wFMCommunicate request_size=4 [08:10:59]MH_SAM_APDU [08:10:59]CAPDU: 80 13 01 00 [08:10:59]Write to MH i2c: E2 08 00 EF 14 80 13 01 00 00 00 00 00 80 [08:10:59]Write i2c OK [08:10:59]MH_I2C_Read... [08:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:59]Read from MH i2c: E2 [08:10:59]MH_I2C_Read... [08:10:59]Read from MH i2c: E2 0E 00 [08:10:59]MH_I2C_Read... [08:10:59]Read from MH i2c: E2 0E 00 EF 14 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 C1 [08:10:59]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:10:59]wFMCommunicate OK [08:10:59]SAM_PROTO_GetShiftState done [08:10:59]FM_GetShiftState done [08:10:59]opened in 1717545925 [08:10:59]opened+sec_in_day 1717632325 [08:10:59]quantity*price = 14000 [08:10:59]sum+1 = 14001 [08:10:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 32 05.06.2024 08:11 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64112 ФПД: 113389382356580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T081101&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64112&fm=113389382356580&tin=02508201610067®Number=0000000000092737&sum=14000 0 [08:11:00]StoreToDocumentArchive [08:11:00]shift 375 fd 64112 [08:11:00]save to /storage/0375/doc_00064112 [08:11:00]save last doc name /storage/0375/doc_00064112 to /storage/kkm_last_doc_name [08:11:00]save OK [08:11:00]Clear old archive folders... [08:11:00]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:11:00]tlvbuf is 0112A860 [08:11:00]SAM_PROTO_ClearQueue [08:11:00]wFMCommunicate request_size=4 [08:11:00]MH_SAM_APDU [08:11:00]CAPDU: 80 09 00 00 [08:11:00]Write to MH i2c: E2 08 00 FC 14 80 09 00 00 00 00 00 00 82 [08:11:00]Write i2c OK [08:11:00]MH_I2C_Read... [08:11:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:00]Read from MH i2c: E2 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: E2 03 00 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: E2 03 00 FC 14 00 90 00 84 [08:11:00]RAPDU: 90 00 [08:11:00]wFMCommunicate OK [08:11:00]SAM_PROTO_ClearQueue done [08:11:00]KKMCreateOFDPacket [08:11:00]OFDProtocolAddRootSTLVToBuf [08:11:00]FM_MakeSignedData [08:11:00]FM_MakeSignedData [08:11:00]SAM_PROTO_SignData [08:11:00]wFMCommunicate request_size=4 [08:11:00]MH_SAM_APDU [08:11:00]CAPDU: 80 0D 01 02 [08:11:00]Write to MH i2c: E2 08 00 FD 14 80 0D 01 02 00 00 00 00 8A [08:11:00]Write i2c OK [08:11:00]MH_I2C_Read... [08:11:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:00]Read from MH i2c: E2 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: E2 03 00 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: E2 03 00 FD 14 00 90 00 85 [08:11:00]RAPDU: 90 00 [08:11:00]wFMCommunicate OK [08:11:00]wFMCommunicate request_size=255 [08:11:00]MH_SAM_APDU [08:11:00]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 95 1D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [08:11:00]Write to MH i2c: E2 02 01 FE 14 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 95 1D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 92 [08:11:00]Write i2c OK [08:11:00]MH_I2C_Read... [08:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:00]Read from MH i2c: E2 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: E2 03 00 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: E2 03 00 FE 14 00 90 00 86 [08:11:00]RAPDU: 90 00 [08:11:00]wFMCommunicate OK [08:11:00]wFMCommunicate request_size=32 [08:11:00]MH_SAM_APDU [08:11:00]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 70 FA 00 00 35 04 06 00 67 20 85 DB 4E 64 [08:11:00]Write to MH i2c: E2 23 00 FF 14 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 70 FA 00 00 35 04 06 00 67 20 85 DB 4E 64 00 00 EC [08:11:00]Write i2c OK [08:11:00]MH_I2C_Read... [08:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:00]Read from MH i2c: E2 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: E2 03 00 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [08:11:00]RAPDU: 90 00 [08:11:00]wFMCommunicate OK [08:11:00]wFMCommunicate request_size=4 [08:11:00]MH_SAM_APDU [08:11:00]CAPDU: 80 0D 03 02 [08:11:00]Write to MH i2c: E2 08 00 00 15 80 0D 03 02 00 00 00 00 90 [08:11:00]Write i2c OK [08:11:00]MH_I2C_Read... [08:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:00]Read from MH i2c: E2 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: E2 0B 00 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: E2 0B 00 00 15 00 80 49 55 61 8C A8 18 3F 90 00 9B [08:11:00]RAPDU: 80 49 55 61 8C A8 18 3F 90 00 [08:11:00]wFMCommunicate OK [08:11:00]SAM_PROTO_SignData done [08:11:00]FM_MakeSignedData done [08:11:00]CreateOFDProtocolMessage [08:11:00]wFMCommunicate request_size=4 [08:11:00]MH_SAM_APDU [08:11:00]CAPDU: 80 11 00 00 [08:11:00]Write to MH i2c: E2 08 00 01 15 80 11 00 00 00 00 00 00 90 [08:11:00]Write i2c OK [08:11:00]MH_I2C_Read... [08:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:00]Read from MH i2c: E2 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: E2 17 00 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: E2 17 00 01 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E2 [08:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:11:00]wFMCommunicate OK [08:11:00]CreateOFDProtocolMessage done [08:11:00]OFDSenderStorePacket 64112 [08:11:00]StoreOFDPacket docnum=64112 [08:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 43 1B 1D 01 6B 0E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 95 1D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 70 FA 00 00 35 04 06 00 67 20 85 DB 4E 64 80 49 55 61 8C A8 18 3F [08:11:00]CheckFolder [08:11:00]dirname=/storage/ofd_packets [08:11:00]CheckFolder done [08:11:00]ProducePacketName [08:11:00]name=ofd_packets/00064112 [08:11:00]NVStorageSaveData ofd_packets/00064112 [08:11:00]File name is /storage/ofd_packets/00064112 [08:11:00]Write 323 bytes [08:11:00]NVStorageSaveData done [08:11:00]OFDSenderStorePacket done [08:11:00]KKMCreateOFDPacket done [08:11:00]NVStorageSaveData kkm_last_timestamp [08:11:00]File name is /storage/kkm_last_timestamp [08:11:00]Write 4 bytes [08:11:00]NVStorageSaveData done [08:11:00]ExternCall_PrintAddStr [08:11:00]wPrintStart [08:11:00]Write to MH i2c: 01 00 00 02 15 17 [08:11:00]Write i2c OK [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: 01 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: 01 07 00 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: 01 07 00 02 15 00 00 00 00 00 FF 0F 2C [08:11:00]RasterBufferAndPrint [08:11:00]line Счет N : (3)73651 [08:11:00]line ИНН: 02508201610067 [08:11:00]line Контрольно-Кассовый Чек [08:11:00]line ПРОДАЖА [08:11:00]line Товар: 48743570 [08:11:00]line Сигареты Winston XStyle Blue [08:11:00]line 1.000 * 140.00 [08:11:00]line = 140.00 [08:11:00]line НДС 12% НСП 1% [08:11:00]line > о реализуемом товаре [08:11:00]line ИТОГО: 140.00 [08:11:00]line НСП 1% : 1.24 [08:11:00]line НДС 12% : 14.87 [08:11:00]line Наличными: 0.00 [08:11:00]line Безнал.: 140.00 [08:11:00]line Место: АЗС № 117 "Партнер Нефть" [08:11:00]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:11:00]line СНО: Общий режим [08:11:00]line Чек 32 05.06.2024 08:11 [08:11:00]line Смена: 375 ФФД: 1.0 [08:11:00]line ЗНМ: 0300000031 [08:11:00]line РНМ: 0000000000092737 [08:11:00]line Версия ККМ: 001 [08:11:00]line Платежная система: АКБ Кыргызстан [08:11:00]line ФМ: 0000000000875074 [08:11:00]line ФД: 64112 [08:11:00]line ФПД: 113389382356580 [08:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T081101&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64112&fm=113389382356580&tin=02508201610067®Number=0000000000092737&sum=14000 [08:11:01]OFD Sender: Processing packet 64112 [packets to send 14, broken 13] [08:11:01]ProducePacketName [08:11:01]name=ofd_packets/00064112 [08:11:01]OFD Sender: To server: pG, [08:11:01]CommunicateWithHost lk.salyk.kg:30040 [08:11:01]ConnectInit lk.salyk.kg [08:11:01]line 0 [08:11:01]written 0, free lines is 4095 [08:11:01]Connected sock=10 [08:11:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 43 1B 1D 01 6B 0E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 95 1D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 70 FA 00 00 35 04 06 00 67 20 85 DB 4E 64 80 49 55 61 8C A8 18 3F [08:11:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 5C B8 47 00 DD 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 70 FA 00 00 F4 03 04 00 A1 C9 5F 66 B6 04 01 00 00 49 8D B8 B6 61 78 30 EE [08:11:01]CommunicateWithHost err = 0 [08:11:01]CheckOFDResponse [08:11:01]1017 (14) - 77093643461234 [08:11:01]1041 (16) - 0000000000875074 [08:11:01]1040 (4) - 64112 [08:11:01]1012 (4) - 05.06.2024 02:12 [08:11:01]1206 (1) - 0 [08:11:01]OFD Sender: Remove packet 64112 [08:11:01]ProducePacketName [08:11:01]name=ofd_packets/00064112 [08:11:01]NVStorageDeleteData [08:11:01]Write to MH i2c: 01 00 00 2C 15 41 [08:11:01]Write i2c OK [08:11:01]MH_I2C_Read... [08:11:01]Read from MH i2c: 01 [08:11:01]MH_I2C_Read... [08:11:01]Read from MH i2c: 01 07 00 [08:11:01]MH_I2C_Read... [08:11:01]Read from MH i2c: 01 07 00 2C 15 00 00 00 00 00 E4 0C 38 [08:11:01]RasterBufferAndPrint [08:11:01]line [08:11:01]line [08:11:01]line [08:11:01]line [08:11:01]line [08:11:01]written 0, free lines is 3306 [08:11:01]MH_Cut [08:11:01]Write to MH i2c: D1 01 00 33 15 01 1A [08:11:01]Write i2c OK [08:11:01]MH_I2C_Read... [08:11:01]Read from MH i2c: D1 [08:11:01]MH_I2C_Read... [08:11:01]Read from MH i2c: D1 01 00 [08:11:01]MH_I2C_Read... [08:11:01]Read from MH i2c: D1 01 00 33 15 00 19 [08:11:01]Write to MH i2c: 01 00 00 34 15 49 [08:11:01]Write i2c OK [08:11:01]MH_I2C_Read... [08:11:01]OFD Sender: No OFD packet to send [08:11:02]*** Cut start [08:11:02]*** Partial cut [08:11:02]*** CUTSNS_PIN = 1 [08:11:02]*** CUTSNS_PIN = 0 [08:11:02]*** Brake cut motor [08:11:03]Read from MH i2c: 01 [08:11:03]MH_I2C_Read... [08:11:03]*** Stop cut motor [08:11:03]*** Cut end [08:11:03]Read from MH i2c: 01 07 00 [08:11:03]MH_I2C_Read... [08:11:03]Read from MH i2c: 01 07 00 34 15 00 00 00 00 00 FF 0F 5E [08:11:03]process_action close_receipt done [08:11:03]requested_data is exist [08:11:03]produce_requested_data [08:11:03]requested_item fm.sn is exist - process it [08:11:03]wFMCommunicate request_size=4 [08:11:03]MH_SAM_APDU [08:11:03]CAPDU: 80 11 00 00 [08:11:03]Write to MH i2c: E2 08 00 35 15 80 11 00 00 00 00 00 00 C4 [08:11:03]Write i2c OK [08:11:03]MH_I2C_Read... [08:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:03]Read from MH i2c: E2 [08:11:03]MH_I2C_Read... [08:11:03]Read from MH i2c: E2 17 00 [08:11:03]MH_I2C_Read... [08:11:03]Read from MH i2c: E2 17 00 35 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 16 [08:11:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:11:03]wFMCommunicate OK [08:11:03]requested_item fd.num is exist - process it [08:11:03]SAM_PROTO_GetFieldsCounters [08:11:03]wFMCommunicate request_size=4 [08:11:03]MH_SAM_APDU [08:11:03]CAPDU: 80 13 00 00 [08:11:03]Write to MH i2c: E2 08 00 36 15 80 13 00 00 00 00 00 00 C7 [08:11:03]Write i2c OK [08:11:03]MH_I2C_Read... [08:11:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:03]Read from MH i2c: E2 [08:11:03]MH_I2C_Read... [08:11:03]Read from MH i2c: E2 62 00 [08:11:03]MH_I2C_Read... [08:11:03]Read from MH i2c: E2 62 00 36 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 70 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [08:11:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 70 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:03]wFMCommunicate OK [08:11:03]SAM_PROTO_GetFieldsCounters done [08:11:03]requested_item shift.num is exist - process it [08:11:03]requested_item shift.opened is exist - process it [08:11:03]req_shift_opened [08:11:03]FM_GetShiftState [08:11:03]SAM_PROTO_GetShiftState [08:11:03]wFMCommunicate request_size=4 [08:11:03]MH_SAM_APDU [08:11:03]CAPDU: 80 13 01 00 [08:11:03]Write to MH i2c: E2 08 00 37 15 80 13 01 00 00 00 00 00 C9 [08:11:03]Write i2c OK [08:11:03]MH_I2C_Read... [08:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:03]Read from MH i2c: E2 [08:11:03]MH_I2C_Read... [08:11:03]Read from MH i2c: E2 0E 00 [08:11:03]MH_I2C_Read... [08:11:03]Read from MH i2c: E2 0E 00 37 15 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 0A [08:11:03]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:11:03]wFMCommunicate OK [08:11:03]SAM_PROTO_GetShiftState done [08:11:03]FM_GetShiftState done [08:11:03]req_shift_opened done [08:11:03]requested_item shift.open_date is exist - process it [08:11:03]req_shift_open_date [08:11:03]req_shift_open_date done [08:11:03]produce_requested_data done [08:11:03]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64112,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [08:11:03]process_action_free close_receipt [08:11:03]json_value_free [08:11:03]json_value_free done [08:11:03]process_json_proto returns [08:11:03]Send response to host [08:11:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64112,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [08:11:03]free response buf [08:11:03]execute_script done [08:11:03]execute_script returns [08:11:03]free content buf [08:11:03]Sock 8.Close socket [08:11:03]Sock 8.Thread stoped [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:36]accept exits with 9 [08:12:36]New connection [08:12:36]New thread 3067133284 created [08:12:36]Thread 3067276644 joined [08:12:36]Waiting for new connection... [08:12:36] Sock 9.Parse request [08:12:36]Sock 9.Check first char [08:12:36]Sock 9.First char is OK [08:12:36]request: POST /json_proto HTTP/1.0 [08:12:36]Method: POST [08:12:36]URL: /json_proto [08:12:36]Method is POST - this is cgi request [08:12:36]url: /json_proto [08:12:36]query_string will be loaded in cgi processing [08:12:36]execute_cgi json_proto POST (null) [08:12:36]execute_cgi path=json_proto method=POST [08:12:36]POST find Content-Length [08:12:36]Host: 172.17.60.69:8080 [08:12:36]Content-Length: 677 [08:12:36]Content-Type: application/json [08:12:36] [08:12:36]POST finish read [08:12:36]Found Content-Length = 677 [08:12:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.390, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:36]execute_script... [08:12:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.390, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:36]POST & json_proto [08:12:36]process_json_proto [08:12:36]json parsed OK: [08:12:36]protocol is kg_v1.0 [08:12:36]action value=close_receipt [08:12:36]process_action close_receipt [08:12:36]cmd_close_receipt [08:12:36]MH_GetDate [08:12:36]Write to MH i2c: F0 00 00 38 15 3C [08:12:36]Write i2c OK [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: F0 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: F0 09 00 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: F0 09 00 38 15 00 F7 1D 60 66 D2 83 5F 66 39 [08:12:36]GetLastDocTimeStamp 1717575061 [08:12:36]current date 1717575159 [08:12:36]FM_GetShiftState [08:12:36]SAM_PROTO_GetShiftState [08:12:36]wFMCommunicate request_size=4 [08:12:36]MH_SAM_APDU [08:12:36]CAPDU: 80 13 01 00 [08:12:36]Write to MH i2c: E2 08 00 39 15 80 13 01 00 00 00 00 00 CB [08:12:36]Write i2c OK [08:12:36]MH_I2C_Read... [08:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:36]Read from MH i2c: E2 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: E2 0E 00 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: E2 0E 00 39 15 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 0C [08:12:36]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:12:36]wFMCommunicate OK [08:12:36]SAM_PROTO_GetShiftState done [08:12:36]FM_GetShiftState done [08:12:36]opened in 1717545925 [08:12:36]opened+sec_in_day 1717632325 [08:12:36]quantity*price = 36059 [08:12:36]sum+1 = 36060 [08:12:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.29 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 33 05.06.2024 08:12 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64113 ФПД: 221028483422023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T081239&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64113&fm=221028483422023&tin=02508201610067®Number=0000000000092737&sum=36000 [08:12:37]StoreToDocumentArchive [08:12:37]shift 375 fd 64113 [08:12:37]save to /storage/0375/doc_00064113 [08:12:37]save last doc name /storage/0375/doc_00064113 to /storage/kkm_last_doc_name [08:12:37]save OK [08:12:37]Clear old archive folders... [08:12:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:12:37]tlvbuf is 00FFF1C0 [08:12:37]SAM_PROTO_ClearQueue [08:12:37]wFMCommunicate request_size=4 [08:12:37]MH_SAM_APDU [08:12:37]CAPDU: 80 09 00 00 [08:12:37]Write to MH i2c: E2 08 00 46 15 80 09 00 00 00 00 00 00 CD [08:12:37]Write i2c OK [08:12:37]MH_I2C_Read... [08:12:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:37]Read from MH i2c: E2 [08:12:37]MH_I2C_Read... [08:12:37]Read from MH i2c: E2 03 00 [08:12:37]MH_I2C_Read... [08:12:37]Read from MH i2c: E2 03 00 46 15 00 90 00 CF [08:12:37]RAPDU: 90 00 [08:12:37]wFMCommunicate OK [08:12:37]SAM_PROTO_ClearQueue done [08:12:37]KKMCreateOFDPacket [08:12:37]OFDProtocolAddRootSTLVToBuf [08:12:37]FM_MakeSignedData [08:12:37]FM_MakeSignedData [08:12:37]SAM_PROTO_SignData [08:12:37]wFMCommunicate request_size=4 [08:12:37]MH_SAM_APDU [08:12:37]CAPDU: 80 0D 01 02 [08:12:37]Write to MH i2c: E2 08 00 47 15 80 0D 01 02 00 00 00 00 D5 [08:12:37]Write i2c OK [08:12:37]MH_I2C_Read... [08:12:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:38]Read from MH i2c: E2 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 03 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 03 00 47 15 00 90 00 D0 [08:12:38]RAPDU: 90 00 [08:12:38]wFMCommunicate OK [08:12:38]wFMCommunicate request_size=255 [08:12:38]MH_SAM_APDU [08:12:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 F7 1D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 71 FA 00 00 35 04 06 00 C9 [08:12:38]Write to MH i2c: E2 02 01 48 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 F7 1D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 71 FA 00 00 35 04 06 00 C9 00 00 E9 [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:38]Read from MH i2c: E2 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 03 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 03 00 48 15 00 90 00 D1 [08:12:38]RAPDU: 90 00 [08:12:38]wFMCommunicate OK [08:12:38]wFMCommunicate request_size=10 [08:12:38]MH_SAM_APDU [08:12:38]CAPDU: 80 0D 02 02 05 06 34 3D 57 47 [08:12:38]Write to MH i2c: E2 0D 00 49 15 80 0D 02 02 05 00 06 34 3D 57 47 00 00 F7 [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:38]Read from MH i2c: E2 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 03 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [08:12:38]RAPDU: 90 00 [08:12:38]wFMCommunicate OK [08:12:38]wFMCommunicate request_size=4 [08:12:38]MH_SAM_APDU [08:12:38]CAPDU: 80 0D 03 02 [08:12:38]Write to MH i2c: E2 08 00 4A 15 80 0D 03 02 00 00 00 00 DA [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:38]Read from MH i2c: E2 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 0B 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 0B 00 4A 15 00 BF 13 57 E8 51 06 8E 96 90 00 67 [08:12:38]RAPDU: BF 13 57 E8 51 06 8E 96 90 00 [08:12:38]wFMCommunicate OK [08:12:38]SAM_PROTO_SignData done [08:12:38]FM_MakeSignedData done [08:12:38]CreateOFDProtocolMessage [08:12:38]wFMCommunicate request_size=4 [08:12:38]MH_SAM_APDU [08:12:38]CAPDU: 80 11 00 00 [08:12:38]Write to MH i2c: E2 08 00 4B 15 80 11 00 00 00 00 00 00 DA [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:38]Read from MH i2c: E2 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 17 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 17 00 4B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 2C [08:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:12:38]wFMCommunicate OK [08:12:38]CreateOFDProtocolMessage done [08:12:38]OFDSenderStorePacket 64113 [08:12:38]StoreOFDPacket docnum=64113 [08:12:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 05 E7 07 01 CA 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 F7 1D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 71 FA 00 00 35 04 06 00 C9 06 34 3D 57 47 BF 13 57 E8 51 06 8E 96 [08:12:38]CheckFolder [08:12:38]dirname=/storage/ofd_packets [08:12:38]CheckFolder done [08:12:38]ProducePacketName [08:12:38]name=ofd_packets/00064113 [08:12:38]NVStorageSaveData ofd_packets/00064113 [08:12:38]File name is /storage/ofd_packets/00064113 [08:12:38]Write 301 bytes [08:12:38]NVStorageSaveData done [08:12:38]OFDSenderStorePacket done [08:12:38]KKMCreateOFDPacket done [08:12:38]NVStorageSaveData kkm_last_timestamp [08:12:38]File name is /storage/kkm_last_timestamp [08:12:38]Write 4 bytes [08:12:38]NVStorageSaveData done [08:12:38]ExternCall_PrintAddStr [08:12:38]wPrintStart [08:12:38]Write to MH i2c: 01 00 00 4C 15 61 [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: 01 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: 01 07 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: 01 07 00 4C 15 00 00 00 00 00 FF 0F 76 [08:12:38]RasterBufferAndPrint [08:12:38]line Счет N : (1)545387 [08:12:38]line ИНН: 02508201610067 [08:12:38]line Контрольно-Кассовый Чек [08:12:38]line ПРОДАЖА [08:12:38]line ТРК (МРК, ГНК) : 12 [08:12:38]line Товар: 2710124130 [08:12:38]line Аи-92-К-5 [08:12:38]line 5.390 * 66.90 [08:12:38]line = 360.59 [08:12:38]line НДС 12% НСП 1% [08:12:38]line > о реализуемом товаре [08:12:38]line ОКРУГЛЕНИЕ: -0.59 [08:12:38]line ИТОГО: 360.00 [08:12:38]line Внесено: 360.00 [08:12:38]line СДАЧА: 0.00 [08:12:38]line НСП 1% : 3.19 [08:12:38]line НДС 12% : 38.29 [08:12:38]line Наличными: 360.00 [08:12:38]line Безнал.: 0.00 [08:12:38]line Место: АЗС № 117 "Партнер Нефть" [08:12:38]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:12:38]line СНО: Общий режим [08:12:38]line Чек 33 05.06.2024 08:12 [08:12:38]line Смена: 375 ФФД: 1.0 [08:12:38]line ЗНМ: 0300000031 [08:12:38]line РНМ: 0000000000092737 [08:12:38]line Версия ККМ: 001 [08:12:38]line ФМ: 0000000000875074 [08:12:38]line ФД: 64113 [08:12:38]line ФПД: 221028483422023 [08:12:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T081239&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64113&fm=221028483422023&tin=02508201610067®Number=0000000000092737&sum=36000 [08:12:38]OFD Sender: Processing packet 64113 [packets to send 14, broken 13] [08:12:38]ProducePacketName [08:12:38]name=ofd_packets/00064113 [08:12:38]OFD Sender: To server: pG, [08:12:38]CommunicateWithHost lk.salyk.kg:30040 [08:12:38]ConnectInit lk.salyk.kg [08:12:38]written 0, free lines is 4095 [08:12:38]Connected sock=10 [08:12:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 05 E7 07 01 CA 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 F7 1D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 71 FA 00 00 35 04 06 00 C9 06 34 3D 57 47 BF 13 57 E8 51 06 8E 96 [08:12:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 47 21 47 00 F6 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 71 FA 00 00 F4 03 04 00 03 CA 5F 66 B6 04 01 00 00 59 25 4C 93 78 EC C3 4B [08:12:39]CommunicateWithHost err = 0 [08:12:39]CheckOFDResponse [08:12:39]1017 (14) - 77093643461234 [08:12:39]1041 (16) - 0000000000875074 [08:12:39]1040 (4) - 64113 [08:12:39]1012 (4) - 05.06.2024 02:14 [08:12:39]1206 (1) - 0 [08:12:39]OFD Sender: Remove packet 64113 [08:12:39]ProducePacketName [08:12:39]name=ofd_packets/00064113 [08:12:39]NVStorageDeleteData [08:12:39]Write to MH i2c: 01 00 00 77 15 8C [08:12:39]Write i2c OK [08:12:39]MH_I2C_Read... [08:12:39]Read from MH i2c: 01 [08:12:39]MH_I2C_Read... [08:12:39]Read from MH i2c: 01 07 00 [08:12:39]MH_I2C_Read... [08:12:39]Read from MH i2c: 01 07 00 77 15 00 00 00 00 00 E6 0C 85 [08:12:39]RasterBufferAndPrint [08:12:39]line [08:12:39]line [08:12:39]line [08:12:39]line [08:12:39]line [08:12:39]written 0, free lines is 3309 [08:12:39]MH_Cut [08:12:39]Write to MH i2c: D1 01 00 7E 15 01 65 [08:12:39]Write i2c OK [08:12:39]MH_I2C_Read... [08:12:39]Read from MH i2c: D1 [08:12:39]MH_I2C_Read... [08:12:39]Read from MH i2c: D1 01 00 [08:12:39]MH_I2C_Read... [08:12:39]Read from MH i2c: D1 01 00 7E 15 00 64 [08:12:39]Write to MH i2c: 01 00 00 7F 15 94 [08:12:39]Write i2c OK [08:12:39]MH_I2C_Read... [08:12:39]OFD Sender: No OFD packet to send [08:12:40]*** Cut start [08:12:40]*** Partial cut [08:12:40]*** CUTSNS_PIN = 1 [08:12:40]*** CUTSNS_PIN = 0 [08:12:40]*** Brake cut motor [08:12:40]Read from MH i2c: 01 [08:12:40]MH_I2C_Read... [08:12:40]*** Stop cut motor [08:12:40]*** Cut end [08:12:40]Read from MH i2c: 01 07 00 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: 01 07 00 7F 15 00 00 00 00 00 FF 0F A9 [08:12:40]process_action close_receipt done [08:12:40]requested_data is exist [08:12:40]produce_requested_data [08:12:40]requested_item fm.sn is exist - process it [08:12:40]wFMCommunicate request_size=4 [08:12:40]MH_SAM_APDU [08:12:40]CAPDU: 80 11 00 00 [08:12:40]Write to MH i2c: E2 08 00 80 15 80 11 00 00 00 00 00 00 0F [08:12:40]Write i2c OK [08:12:40]MH_I2C_Read... [08:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:40]Read from MH i2c: E2 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: E2 17 00 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: E2 17 00 80 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 61 [08:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:12:40]wFMCommunicate OK [08:12:40]requested_item fd.num is exist - process it [08:12:40]SAM_PROTO_GetFieldsCounters [08:12:40]wFMCommunicate request_size=4 [08:12:40]MH_SAM_APDU [08:12:40]CAPDU: 80 13 00 00 [08:12:40]Write to MH i2c: E2 08 00 81 15 80 13 00 00 00 00 00 00 12 [08:12:40]Write i2c OK [08:12:40]MH_I2C_Read... [08:12:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:40]Read from MH i2c: E2 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: E2 62 00 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: E2 62 00 81 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 71 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [08:12:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 71 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:40]wFMCommunicate OK [08:12:40]SAM_PROTO_GetFieldsCounters done [08:12:40]requested_item shift.num is exist - process it [08:12:40]requested_item shift.opened is exist - process it [08:12:40]req_shift_opened [08:12:40]FM_GetShiftState [08:12:40]SAM_PROTO_GetShiftState [08:12:40]wFMCommunicate request_size=4 [08:12:40]MH_SAM_APDU [08:12:40]CAPDU: 80 13 01 00 [08:12:40]Write to MH i2c: E2 08 00 82 15 80 13 01 00 00 00 00 00 14 [08:12:40]Write i2c OK [08:12:40]MH_I2C_Read... [08:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:40]Read from MH i2c: E2 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: E2 0E 00 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: E2 0E 00 82 15 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 55 [08:12:40]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:12:40]wFMCommunicate OK [08:12:40]SAM_PROTO_GetShiftState done [08:12:40]FM_GetShiftState done [08:12:40]req_shift_opened done [08:12:40]requested_item shift.open_date is exist - process it [08:12:40]req_shift_open_date [08:12:40]req_shift_open_date done [08:12:40]produce_requested_data done [08:12:40]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64113,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [08:12:40]process_action_free close_receipt [08:12:40]json_value_free [08:12:40]json_value_free done [08:12:40]process_json_proto returns [08:12:40]Send response to host [08:12:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64113,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [08:12:40]free response buf [08:12:40]execute_script done [08:12:40]execute_script returns [08:12:40]free content buf [08:12:40]Sock 9.Close socket [08:12:40]Sock 9.Thread stoped [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:33]accept exits with 8 [08:17:33]New connection [08:17:33]New thread 3067276644 created [08:17:33]Thread 3067133284 joined [08:17:33]Waiting for new connection... [08:17:33] Sock 8.Parse request [08:17:33]Sock 8.Check first char [08:17:33]Sock 8.First char is OK [08:17:33]request: POST /json_proto HTTP/1.0 [08:17:33]Method: POST [08:17:33]URL: /json_proto [08:17:33]Method is POST - this is cgi request [08:17:33]url: /json_proto [08:17:33]query_string will be loaded in cgi processing [08:17:33]execute_cgi json_proto POST (null) [08:17:33]execute_cgi path=json_proto method=POST [08:17:33]POST find Content-Length [08:17:33]Host: 172.17.60.69:8080 [08:17:33]Content-Length: 876 [08:17:33]Content-Type: application/json [08:17:33] [08:17:33]POST finish read [08:17:33]Found Content-Length = 876 [08:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73652", "tax_sys" : 0, "items" : [ { "code": "4700000280452", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:33]execute_script... [08:17: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)73652", "tax_sys" : 0, "items" : [ { "code": "4700000280452", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:33]POST & json_proto [08:17:33]process_json_proto [08:17:33]json parsed OK: [08:17:33]protocol is kg_v1.0 [08:17:33]action value=close_receipt [08:17:33]process_action close_receipt [08:17:33]cmd_close_receipt [08:17:33]MH_GetDate [08:17:33]Write to MH i2c: F0 00 00 83 15 87 [08:17:33]Write i2c OK [08:17:33]MH_I2C_Read... [08:17:33]Read from MH i2c: F0 [08:17:33]MH_I2C_Read... [08:17:33]Read from MH i2c: F0 09 00 [08:17:33]MH_I2C_Read... [08:17:33]Read from MH i2c: F0 09 00 83 15 00 1F 1F 60 66 D2 83 5F 66 AE [08:17:33]GetLastDocTimeStamp 1717575159 [08:17:33]current date 1717575455 [08:17:33]FM_GetShiftState [08:17:33]SAM_PROTO_GetShiftState [08:17:33]wFMCommunicate request_size=4 [08:17:33]MH_SAM_APDU [08:17:33]CAPDU: 80 13 01 00 [08:17:33]Write to MH i2c: E2 08 00 84 15 80 13 01 00 00 00 00 00 16 [08:17:33]Write i2c OK [08:17:33]MH_I2C_Read... [08:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:33]Read from MH i2c: E2 [08:17:33]MH_I2C_Read... [08:17:33]Read from MH i2c: E2 0E 00 [08:17:33]MH_I2C_Read... [08:17:33]Read from MH i2c: E2 0E 00 84 15 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 57 [08:17:33]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:17:33]wFMCommunicate OK [08:17:33]SAM_PROTO_GetShiftState done [08:17:33]FM_GetShiftState done [08:17:33]opened in 1717545925 [08:17:33]opened+sec_in_day 1717632325 [08:17:33]quantity*price = 11000 [08:17:33]sum+1 = 11001 [08:17:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 0.00 Безнал.: 110.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 34 05.06.2024 08:17 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64114 ФПД: 4819477746837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T081735&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64114&fm=4819477746837&tin=02508201610067®Number=0000000000092737&sum=11000 0 [08:17:34]StoreToDocumentArchive [08:17:34]shift 375 fd 64114 [08:17:34]save to /storage/0375/doc_00064114 [08:17:34]save last doc name /storage/0375/doc_00064114 to /storage/kkm_last_doc_name [08:17:34]save OK [08:17:34]Clear old archive folders... [08:17:34]ProcessDocumentItem done err = 0, tmpTLVsize=284 [08:17:34]tlvbuf is B6EF75E0 [08:17:34]SAM_PROTO_ClearQueue [08:17:34]wFMCommunicate request_size=4 [08:17:34]MH_SAM_APDU [08:17:34]CAPDU: 80 09 00 00 [08:17:34]Write to MH i2c: E2 08 00 91 15 80 09 00 00 00 00 00 00 18 [08:17:34]Write i2c OK [08:17:34]MH_I2C_Read... [08:17:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:34]Read from MH i2c: E2 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 03 00 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 03 00 91 15 00 90 00 1A [08:17:34]RAPDU: 90 00 [08:17:34]wFMCommunicate OK [08:17:34]SAM_PROTO_ClearQueue done [08:17:34]KKMCreateOFDPacket [08:17:34]OFDProtocolAddRootSTLVToBuf [08:17:34]FM_MakeSignedData [08:17:34]FM_MakeSignedData [08:17:34]SAM_PROTO_SignData [08:17:34]wFMCommunicate request_size=4 [08:17:34]MH_SAM_APDU [08:17:34]CAPDU: 80 0D 01 02 [08:17:34]Write to MH i2c: E2 08 00 92 15 80 0D 01 02 00 00 00 00 20 [08:17:34]Write i2c OK [08:17:34]MH_I2C_Read... [08:17:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:34]Read from MH i2c: E2 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 03 00 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 03 00 92 15 00 90 00 1B [08:17:34]RAPDU: 90 00 [08:17:34]wFMCommunicate OK [08:17:34]wFMCommunicate request_size=255 [08:17:34]MH_SAM_APDU [08:17:34]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 30 30 32 38 30 34 35 32 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1F 1F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 [08:17:34]Write to MH i2c: E2 02 01 93 15 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 30 30 32 38 30 34 35 32 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1F 1F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 00 00 C4 [08:17:34]Write i2c OK [08:17:34]MH_I2C_Read... [08:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:34]Read from MH i2c: E2 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 03 00 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 03 00 93 15 00 90 00 1C [08:17:34]RAPDU: 90 00 [08:17:34]wFMCommunicate OK [08:17:34]wFMCommunicate request_size=43 [08:17:34]MH_SAM_APDU [08:17:34]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 72 FA 00 00 35 04 06 00 04 62 1F 42 54 95 [08:17:34]Write to MH i2c: E2 2E 00 94 15 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 72 FA 00 00 35 04 06 00 04 62 1F 42 54 95 00 00 26 [08:17:34]Write i2c OK [08:17:34]MH_I2C_Read... [08:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:34]Read from MH i2c: E2 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 03 00 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 03 00 94 15 00 90 00 1D [08:17:34]RAPDU: 90 00 [08:17:34]wFMCommunicate OK [08:17:34]wFMCommunicate request_size=4 [08:17:34]MH_SAM_APDU [08:17:34]CAPDU: 80 0D 03 02 [08:17:34]Write to MH i2c: E2 08 00 95 15 80 0D 03 02 00 00 00 00 25 [08:17:34]Write i2c OK [08:17:34]MH_I2C_Read... [08:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:34]Read from MH i2c: E2 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 0B 00 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 0B 00 95 15 00 E4 10 C8 DE EF A6 9B A4 90 00 94 [08:17:34]RAPDU: E4 10 C8 DE EF A6 9B A4 90 00 [08:17:34]wFMCommunicate OK [08:17:34]SAM_PROTO_SignData done [08:17:34]FM_MakeSignedData done [08:17:34]CreateOFDProtocolMessage [08:17:34]wFMCommunicate request_size=4 [08:17:34]MH_SAM_APDU [08:17:34]CAPDU: 80 11 00 00 [08:17:34]Write to MH i2c: E2 08 00 96 15 80 11 00 00 00 00 00 00 25 [08:17:34]Write i2c OK [08:17:34]MH_I2C_Read... [08:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:34]Read from MH i2c: E2 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 17 00 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 17 00 96 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 77 [08:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:17:34]wFMCommunicate OK [08:17:34]CreateOFDProtocolMessage done [08:17:34]OFDSenderStorePacket 64114 [08:17:34]StoreOFDPacket docnum=64114 [08:17:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 E5 C1 28 01 4D AF 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 30 30 32 38 30 34 35 32 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1F 1F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 72 FA 00 00 35 04 06 00 04 62 1F 42 54 95 E4 10 C8 DE EF A6 9B A4 [08:17:34]CheckFolder [08:17:34]dirname=/storage/ofd_packets [08:17:34]CheckFolder done [08:17:34]ProducePacketName [08:17:34]name=ofd_packets/00064114 [08:17:34]NVStorageSaveData ofd_packets/00064114 [08:17:34]File name is /storage/ofd_packets/00064114 [08:17:34]Write 334 bytes [08:17:34]NVStorageSaveData done [08:17:34]OFDSenderStorePacket done [08:17:34]KKMCreateOFDPacket done [08:17:34]NVStorageSaveData kkm_last_timestamp [08:17:34]File name is /storage/kkm_last_timestamp [08:17:34]Write 4 bytes [08:17:34]NVStorageSaveData done [08:17:34]ExternCall_PrintAddStr [08:17:34]wPrintStart [08:17:34]Write to MH i2c: 01 00 00 97 15 AC [08:17:34]Write i2c OK [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: 01 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: 01 07 00 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: 01 07 00 97 15 00 00 00 00 00 FF 0F C1 [08:17:34]RasterBufferAndPrint [08:17:34]line Счет N : (3)73652 [08:17:34]line ИНН: 02508201610067 [08:17:34]line Контрольно-Кассовый Чек [08:17:34]line ПРОДАЖА [08:17:34]line Товар: 4700000280452 [08:17:34]line Напиток Молочный ТАН 1л [08:17:34]line 1.000 * 110.00 [08:17:34]line = 110.00 [08:17:34]line НДС 12% НСП 1% [08:17:34]line > о реализуемом товаре [08:17:34]line ИТОГО: 110.00 [08:17:34]line НСП 1% : 0.97 [08:17:34]line НДС 12% : 11.68 [08:17:34]line Наличными: 0.00 [08:17:34]line Безнал.: 110.00 [08:17:34]line Место: АЗС № 117 "Партнер Нефть" [08:17:34]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:17:34]line СНО: Общий режим [08:17:34]line Чек 34 05.06.2024 08:17 [08:17:34]line Смена: 375 ФФД: 1.0 [08:17:34]line ЗНМ: 0300000031 [08:17:34]line РНМ: 0000000000092737 [08:17:34]line Версия ККМ: 001 [08:17:34]line Платежная система: АКБ Кыргызстан [08:17:34]line ФМ: 0000000000875074 [08:17:34]line ФД: 64114 [08:17:34]line ФПД: 4819477746837 [08:17:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T081735&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64114&fm=4819477746837&tin=02508201610067®Number=0000000000092737&sum=11000 [08:17:34]line 0 [08:17:34]written 0, free lines is 4095 [08:17:34]OFD Sender: Processing packet 64114 [packets to send 14, broken 13] [08:17:34]ProducePacketName [08:17:34]name=ofd_packets/00064114 [08:17:34]OFD Sender: To server: pG, [08:17:34]CommunicateWithHost lk.salyk.kg:30040 [08:17:34]ConnectInit lk.salyk.kg [08:17:34]Connected sock=10 [08:17:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 E5 C1 28 01 4D AF 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 30 30 32 38 30 34 35 32 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1F 1F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 72 FA 00 00 35 04 06 00 04 62 1F 42 54 95 E4 10 C8 DE EF A6 9B A4 [08:17:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 10 E3 47 00 6F EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 72 FA 00 00 F4 03 04 00 2B CB 5F 66 B6 04 01 00 00 86 D6 47 3E 6E F4 DF 5A [08:17:35]CommunicateWithHost err = 0 [08:17:35]CheckOFDResponse [08:17:35]1017 (14) - 77093643461234 [08:17:35]1041 (16) - 0000000000875074 [08:17:35]1040 (4) - 64114 [08:17:35]1012 (4) - 05.06.2024 02:19 [08:17:35]1206 (1) - 0 [08:17:35]OFD Sender: Remove packet 64114 [08:17:35]ProducePacketName [08:17:35]name=ofd_packets/00064114 [08:17:35]NVStorageDeleteData [08:17:35]Write to MH i2c: 01 00 00 C1 15 D6 [08:17:35]Write i2c OK [08:17:35]MH_I2C_Read... [08:17:35]Read from MH i2c: 01 [08:17:35]MH_I2C_Read... [08:17:35]Read from MH i2c: 01 07 00 [08:17:35]MH_I2C_Read... [08:17:35]Read from MH i2c: 01 07 00 C1 15 00 00 00 00 00 E1 0C CA [08:17:35]RasterBufferAndPrint [08:17:35]line [08:17:35]line [08:17:35]line [08:17:35]line [08:17:35]line [08:17:35]written 0, free lines is 3302 [08:17:35]MH_Cut [08:17:35]Write to MH i2c: D1 01 00 C8 15 01 AF [08:17:35]Write i2c OK [08:17:35]MH_I2C_Read... [08:17:35]Read from MH i2c: D1 [08:17:35]MH_I2C_Read... [08:17:35]Read from MH i2c: D1 01 00 [08:17:35]MH_I2C_Read... [08:17:35]Read from MH i2c: D1 01 00 C8 15 00 AE [08:17:35]Write to MH i2c: 01 00 00 C9 15 DE [08:17:35]Write i2c OK [08:17:35]MH_I2C_Read... [08:17:35]OFD Sender: No OFD packet to send [08:17:36]*** Cut start [08:17:36]*** Partial cut [08:17:36]*** CUTSNS_PIN = 1 [08:17:36]*** CUTSNS_PIN = 0 [08:17:36]*** Brake cut motor [08:17:36]Read from MH i2c: 01 [08:17:36]MH_I2C_Read... [08:17:36]*** Stop cut motor [08:17:36]*** Cut end [08:17:36]Read from MH i2c: 01 07 00 [08:17:36]MH_I2C_Read... [08:17:36]Read from MH i2c: 01 07 00 C9 15 00 00 00 00 00 FF 0F F3 [08:17:36]process_action close_receipt done [08:17:36]requested_data is exist [08:17:36]produce_requested_data [08:17:36]requested_item fm.sn is exist - process it [08:17:36]wFMCommunicate request_size=4 [08:17:36]MH_SAM_APDU [08:17:36]CAPDU: 80 11 00 00 [08:17:36]Write to MH i2c: E2 08 00 CA 15 80 11 00 00 00 00 00 00 59 [08:17:36]Write i2c OK [08:17:36]MH_I2C_Read... [08:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:36]Read from MH i2c: E2 [08:17:36]MH_I2C_Read... [08:17:36]Read from MH i2c: E2 17 00 [08:17:36]MH_I2C_Read... [08:17:36]Read from MH i2c: E2 17 00 CA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AB [08:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:17:36]wFMCommunicate OK [08:17:36]requested_item fd.num is exist - process it [08:17:36]SAM_PROTO_GetFieldsCounters [08:17:36]wFMCommunicate request_size=4 [08:17:36]MH_SAM_APDU [08:17:36]CAPDU: 80 13 00 00 [08:17:36]Write to MH i2c: E2 08 00 CB 15 80 13 00 00 00 00 00 00 5C [08:17:36]Write i2c OK [08:17:36]MH_I2C_Read... [08:17:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:36]Read from MH i2c: E2 [08:17:36]MH_I2C_Read... [08:17:36]Read from MH i2c: E2 62 00 [08:17:36]MH_I2C_Read... [08:17:36]Read from MH i2c: E2 62 00 CB 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 72 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [08:17:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 72 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:36]wFMCommunicate OK [08:17:36]SAM_PROTO_GetFieldsCounters done [08:17:36]requested_item shift.num is exist - process it [08:17:36]requested_item shift.opened is exist - process it [08:17:36]req_shift_opened [08:17:36]FM_GetShiftState [08:17:36]SAM_PROTO_GetShiftState [08:17:36]wFMCommunicate request_size=4 [08:17:36]MH_SAM_APDU [08:17:36]CAPDU: 80 13 01 00 [08:17:36]Write to MH i2c: E2 08 00 CC 15 80 13 01 00 00 00 00 00 5E [08:17:36]Write i2c OK [08:17:36]MH_I2C_Read... [08:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:36]Read from MH i2c: E2 [08:17:36]MH_I2C_Read... [08:17:36]Read from MH i2c: E2 0E 00 [08:17:36]MH_I2C_Read... [08:17:36]Read from MH i2c: E2 0E 00 CC 15 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 9F [08:17:36]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:17:36]wFMCommunicate OK [08:17:36]SAM_PROTO_GetShiftState done [08:17:36]FM_GetShiftState done [08:17:36]req_shift_opened done [08:17:36]requested_item shift.open_date is exist - process it [08:17:36]req_shift_open_date [08:17:36]req_shift_open_date done [08:17:36]produce_requested_data done [08:17:36]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64114,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [08:17:36]process_action_free close_receipt [08:17:36]json_value_free [08:17:36]json_value_free done [08:17:36]process_json_proto returns [08:17:36]Send response to host [08:17:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64114,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [08:17:36]free response buf [08:17:36]execute_script done [08:17:36]execute_script returns [08:17:36]free content buf [08:17:36]Sock 8.Close socket [08:17:36]Sock 8.Thread stoped [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:08]accept exits with 9 [08:20:08]New connection [08:20:08]New thread 3067133284 created [08:20:08]Thread 3067276644 joined [08:20:08]Waiting for new connection... [08:20:08] Sock 9.Parse request [08:20:08]Sock 9.Check first char [08:20:08]Sock 9.First char is OK [08:20:08]request: POST /json_proto HTTP/1.0 [08:20:08]Method: POST [08:20:08]URL: /json_proto [08:20:08]Method is POST - this is cgi request [08:20:08]url: /json_proto [08:20:08]query_string will be loaded in cgi processing [08:20:08]execute_cgi json_proto POST (null) [08:20:08]execute_cgi path=json_proto method=POST [08:20:08]POST find Content-Length [08:20:08]Host: 172.17.60.69:8080 [08:20:08]Content-Length: 215 [08:20:08]Content-Type: application/json [08:20:08] [08:20:08]POST finish read [08:20:08]Found Content-Length = 215 [08:20:08]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" ] } } [08:20:08]execute_script... [08:20:08]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" ] } } [08:20:08]POST & json_proto [08:20:08]process_json_proto [08:20:08]json parsed OK: [08:20:08]protocol is kg_v1.0 [08:20:08]action value=get_value [08:20:08]process_action get_value [08:20:08]cmd_get_value [08:20:08]process_action get_value done [08:20:08]requested_data is exist [08:20:08]produce_requested_data [08:20:08]requested_item kkm.sn is exist - process it [08:20:08]requested_item kkm.ver is exist - process it [08:20:08]requested_item fm.sn is exist - process it [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 11 00 00 [08:20:08]Write to MH i2c: E2 08 00 CD 15 80 11 00 00 00 00 00 00 5C [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 17 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 17 00 CD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AE [08:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:20:08]wFMCommunicate OK [08:20:08]requested_item fd.num is exist - process it [08:20:08]SAM_PROTO_GetFieldsCounters [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 13 00 00 [08:20:08]Write to MH i2c: E2 08 00 CE 15 80 13 00 00 00 00 00 00 5F [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 62 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 62 00 CE 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 72 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [08:20:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 72 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:08]wFMCommunicate OK [08:20:08]SAM_PROTO_GetFieldsCounters done [08:20:08]requested_item shift.num is exist - process it [08:20:08]requested_item shift.opened is exist - process it [08:20:08]req_shift_opened [08:20:08]FM_GetShiftState [08:20:08]SAM_PROTO_GetShiftState [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 13 01 00 [08:20:08]Write to MH i2c: E2 08 00 CF 15 80 13 01 00 00 00 00 00 61 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 0E 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 0E 00 CF 15 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 A2 [08:20:08]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:20:08]wFMCommunicate OK [08:20:08]SAM_PROTO_GetShiftState done [08:20:08]FM_GetShiftState done [08:20:08]req_shift_opened done [08:20:08]requested_item shift.open_date is exist - process it [08:20:08]req_shift_open_date [08:20:08]req_shift_open_date done [08:20:08]produce_requested_data done [08:20:08]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64114,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [08:20:08]process_action_free get_value [08:20:08]json_value_free [08:20:08]json_value_free done [08:20:08]process_json_proto returns [08:20:08]Send response to host [08:20:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64114,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [08:20:08]free response buf [08:20:08]execute_script done [08:20:08]execute_script returns [08:20:08]free content buf [08:20:08]Sock 9.Close socket [08:20:08]Sock 9.Thread stoped [08:20:08]accept exits with 8 [08:20:08]New connection [08:20:08]New thread 3067276644 created [08:20:08]Thread 3067133284 joined [08:20:08]Waiting for new connection... [08:20:08] Sock 8.Parse request [08:20:08]Sock 8.Check first char [08:20:08]Sock 8.First char is OK [08:20:08]request: POST /json_proto HTTP/1.0 [08:20:08]Method: POST [08:20:08]URL: /json_proto [08:20:08]Method is POST - this is cgi request [08:20:08]url: /json_proto [08:20:08]query_string will be loaded in cgi processing [08:20:08]execute_cgi json_proto POST (null) [08:20:08]execute_cgi path=json_proto method=POST [08:20:08]POST find Content-Length [08:20:08]Host: 172.17.60.69:8080 [08:20:08]Content-Length: 331 [08:20:08]Content-Type: application/json [08:20:08] [08:20:08]POST finish read [08:20:08]Found Content-Length = 331 [08:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:20:08]execute_script... [08:20:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:20:08]POST & json_proto [08:20:08]process_json_proto [08:20:08]json parsed OK: [08:20:08]protocol is kg_v1.0 [08:20:08]action value=get_value [08:20:08]process_action get_value [08:20:08]cmd_get_value [08:20:08]process_action get_value done [08:20:08]requested_data is exist [08:20:08]produce_requested_data [08:20:08]requested_item fm.sale.total is exist - process it [08:20:08]SAM_PROTO_GetFMData [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 13 03 00 [08:20:08]Write to MH i2c: E2 08 00 D0 15 80 13 03 00 00 00 00 00 64 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:20:09]Read from MH i2c: E2 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 FD 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 FD 00 D0 15 00 C5 04 85 04 C1 04 6E 04 04 00 84 F7 00 00 69 04 A1 00 6F 04 04 00 1F F5 00 00 B1 04 04 00 75 AC 1C 77 70 04 04 00 36 5C 4D 66 72 04 04 00 3F 50 CF 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E 94 A6 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F6 CD 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 65 02 00 00 B1 04 04 00 94 DF 83 03 70 04 04 00 F4 5E 68 03 72 04 03 00 A0 80 1B 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 F8 91 5F EF 03 09 90 00 11 [08:20:09]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 84 F7 00 00 69 04 A1 00 6F 04 04 00 1F F5 00 00 B1 04 04 00 75 AC 1C 77 70 04 04 00 36 5C 4D 66 72 04 04 00 3F 50 CF 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E 94 A6 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F6 CD 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 65 02 00 00 B1 04 04 00 94 DF 83 03 70 04 04 00 F4 5E 68 03 72 04 03 00 A0 80 1B 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 F8 91 5F EF 03 09 90 00 [08:20:09]wFMCommunicate OK [08:20:09]wFMCommunicate request_size=4 [08:20:09]MH_SAM_APDU [08:20:09]CAPDU: 80 17 00 00 [08:20:09]Write to MH i2c: E2 08 00 D1 15 80 17 00 00 00 00 00 00 66 [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:09]Read from MH i2c: E2 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 FD 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 FD 00 D1 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 F6 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 B2 [08:20:09]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 F6 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [08:20:09]wFMCommunicate OK [08:20:09]wFMCommunicate request_size=4 [08:20:09]MH_SAM_APDU [08:20:09]CAPDU: 80 17 00 00 [08:20:09]Write to MH i2c: E2 08 00 D2 15 80 17 00 00 00 00 00 00 67 [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:09]Read from MH i2c: E2 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 FD 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 FD 00 D2 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 79 [08:20:09]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [08:20:09]wFMCommunicate OK [08:20:09]wFMCommunicate request_size=4 [08:20:09]MH_SAM_APDU [08:20:09]CAPDU: 80 17 00 00 [08:20:09]Write to MH i2c: E2 08 00 D3 15 80 17 00 00 00 00 00 00 68 [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 FD 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 FD 00 D3 15 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F4 [08:20:10]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [08:20:10]wFMCommunicate OK [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 17 00 00 [08:20:10]Write to MH i2c: E2 08 00 D4 15 80 17 00 00 00 00 00 00 69 [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 E2 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 E2 00 D4 15 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 47 [08:20:10]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:20:10]wFMCommunicate OK [08:20:10]SAM_PROTO_GetFMData done [08:20:10]requested_item fm.sale_refund.total is exist - process it [08:20:10]requested_item fm.buy.total is exist - process it [08:20:10]requested_item shift.sale.total is exist - process it [08:20:10]SAM_PROTO_GetShiftData [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 13 02 00 [08:20:10]Write to MH i2c: E2 08 00 D5 15 80 13 02 00 00 00 00 00 68 [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:20:10]OFD Sender: No OFD packet to send [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 FD 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 FD 00 D5 15 00 B8 04 AA 04 B4 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 A8 0C 0A 70 04 03 00 F4 99 08 72 04 03 00 B4 72 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 42 11 01 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 C3 16 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 09 02 70 04 03 00 E0 09 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 6C 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 BE [08:20:10]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 A8 0C 0A 70 04 03 00 F4 99 08 72 04 03 00 B4 72 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 42 11 01 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 C3 16 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 09 02 70 04 03 00 E0 09 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 6C 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [08:20:10]wFMCommunicate OK [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 17 00 00 [08:20:10]Write to MH i2c: E2 08 00 D6 15 80 17 00 00 00 00 00 00 6B [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 FD 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 FD 00 D6 15 00 0B 00 F6 03 01 00 01 F7 03 02 00 9E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 3E [08:20:11]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 9E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [08:20:11]wFMCommunicate OK [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 17 00 00 [08:20:11]Write to MH i2c: E2 08 00 D7 15 80 17 00 00 00 00 00 00 6C [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 FD 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 FD 00 D7 15 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 0E [08:20:11]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [08:20:11]wFMCommunicate OK [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 17 00 00 [08:20:11]Write to MH i2c: E2 08 00 D8 15 80 17 00 00 00 00 00 00 6D [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 FD 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 FD 00 D8 15 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 F6 [08:20:11]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [08:20:11]wFMCommunicate OK [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 17 00 00 [08:20:11]Write to MH i2c: E2 08 00 D9 15 80 17 00 00 00 00 00 00 6E [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 D5 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 D5 00 D9 15 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F [08:20:11]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:20:11]wFMCommunicate OK [08:20:11]SAM_PROTO_GetShiftData done [08:20:11]requested_item shift.sale.total_cash is exist - process it [08:20:11]requested_item shift.sale_refund.total is exist - process it [08:20:11]requested_item shift.sale_refund.total_cash is exist - process it [08:20:11]requested_item shift.buy.total is exist - process it [08:20:11]requested_item shift.buy.total_cash is exist - process it [08:20:11]produce_requested_data done [08:20:11]produce_requested_data return {"fm.sale.total":19983678.61,"fm.sale_refund.total":589741.00,"fm.buy.total":0.00,"shift.sale.total":6586.00,"shift.sale.total_cash":5637.00,"shift.sale_refund.total":1336.00,"shift.sale_refund.total_cash":1336.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:20:11]process_action_free get_value [08:20:11]json_value_free [08:20:11]json_value_free done [08:20:11]process_json_proto returns [08:20:11]Send response to host [08:20:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19983678.61,"fm.sale_refund.total":589741.00,"fm.buy.total":0.00,"shift.sale.total":6586.00,"shift.sale.total_cash":5637.00,"shift.sale_refund.total":1336.00,"shift.sale_refund.total_cash":1336.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:20:11]free response buf [08:20:11]execute_script done [08:20:11]execute_script returns [08:20:11]free content buf [08:20:11]Sock 8.Close socket [08:20:11]Sock 8.Thread stoped [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:39]accept exits with 9 [08:23:39]New connection [08:23:39]New thread 3067133284 created [08:23:39]Thread 3067276644 joined [08:23:39]Waiting for new connection... [08:23:39] Sock 9.Parse request [08:23:39]Sock 9.Check first char [08:23:39]Sock 9.First char is OK [08:23:39]request: POST /json_proto HTTP/1.0 [08:23:39]Method: POST [08:23:39]URL: /json_proto [08:23:39]Method is POST - this is cgi request [08:23:39]url: /json_proto [08:23:39]query_string will be loaded in cgi processing [08:23:39]execute_cgi json_proto POST (null) [08:23:39]execute_cgi path=json_proto method=POST [08:23:39]POST find Content-Length [08:23:39]Host: 172.17.60.69:8080 [08:23:39]Content-Length: 215 [08:23:39]Content-Type: application/json [08:23:39] [08:23:39]POST finish read [08:23:39]Found Content-Length = 215 [08:23: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" ] } } [08:23:39]execute_script... [08:23: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" ] } } [08:23:39]POST & json_proto [08:23:39]process_json_proto [08:23:39]json parsed OK: [08:23:39]protocol is kg_v1.0 [08:23:39]action value=get_value [08:23:39]process_action get_value [08:23:39]cmd_get_value [08:23:39]process_action get_value done [08:23:39]requested_data is exist [08:23:39]produce_requested_data [08:23:39]requested_item kkm.sn is exist - process it [08:23:39]requested_item kkm.ver is exist - process it [08:23:39]requested_item fm.sn is exist - process it [08:23:39]wFMCommunicate request_size=4 [08:23:39]MH_SAM_APDU [08:23:39]CAPDU: 80 11 00 00 [08:23:39]Write to MH i2c: E2 08 00 DA 15 80 11 00 00 00 00 00 00 69 [08:23:39]Write i2c OK [08:23:39]MH_I2C_Read... [08:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:39]Read from MH i2c: E2 [08:23:39]MH_I2C_Read... [08:23:39]Read from MH i2c: E2 17 00 [08:23:39]MH_I2C_Read... [08:23:39]Read from MH i2c: E2 17 00 DA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 BB [08:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:23:39]wFMCommunicate OK [08:23:39]requested_item fd.num is exist - process it [08:23:39]SAM_PROTO_GetFieldsCounters [08:23:39]wFMCommunicate request_size=4 [08:23:39]MH_SAM_APDU [08:23:39]CAPDU: 80 13 00 00 [08:23:39]Write to MH i2c: E2 08 00 DB 15 80 13 00 00 00 00 00 00 6C [08:23:39]Write i2c OK [08:23:39]MH_I2C_Read... [08:23:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:40]Read from MH i2c: E2 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 62 00 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 62 00 DB 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 72 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [08:23:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 72 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:40]wFMCommunicate OK [08:23:40]SAM_PROTO_GetFieldsCounters done [08:23:40]requested_item shift.num is exist - process it [08:23:40]requested_item shift.opened is exist - process it [08:23:40]req_shift_opened [08:23:40]FM_GetShiftState [08:23:40]SAM_PROTO_GetShiftState [08:23:40]wFMCommunicate request_size=4 [08:23:40]MH_SAM_APDU [08:23:40]CAPDU: 80 13 01 00 [08:23:40]Write to MH i2c: E2 08 00 DC 15 80 13 01 00 00 00 00 00 6E [08:23:40]Write i2c OK [08:23:40]MH_I2C_Read... [08:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:40]Read from MH i2c: E2 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 0E 00 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 0E 00 DC 15 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 AF [08:23:40]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:23:40]wFMCommunicate OK [08:23:40]SAM_PROTO_GetShiftState done [08:23:40]FM_GetShiftState done [08:23:40]req_shift_opened done [08:23:40]requested_item shift.open_date is exist - process it [08:23:40]req_shift_open_date [08:23:40]req_shift_open_date done [08:23:40]produce_requested_data done [08:23:40]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64114,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [08:23:40]process_action_free get_value [08:23:40]json_value_free [08:23:40]json_value_free done [08:23:40]process_json_proto returns [08:23:40]Send response to host [08:23:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64114,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [08:23:40]free response buf [08:23:40]execute_script done [08:23:40]execute_script returns [08:23:40]free content buf [08:23:40]Sock 9.Close socket [08:23:40]Sock 9.Thread stoped [08:23:40]accept exits with 8 [08:23:40]New connection [08:23:40]New thread 3067276644 created [08:23:40]Thread 3067133284 joined [08:23:40]Waiting for new connection... [08:23:40] Sock 8.Parse request [08:23:40]Sock 8.Check first char [08:23:40]Sock 8.First char is OK [08:23:40]request: POST /json_proto HTTP/1.0 [08:23:40]Method: POST [08:23:40]URL: /json_proto [08:23:40]Method is POST - this is cgi request [08:23:40]url: /json_proto [08:23:40]query_string will be loaded in cgi processing [08:23:40]execute_cgi json_proto POST (null) [08:23:40]execute_cgi path=json_proto method=POST [08:23:40]POST find Content-Length [08:23:40]Host: 172.17.60.69:8080 [08:23:40]Content-Length: 331 [08:23:40]Content-Type: application/json [08:23:40] [08:23:40]POST finish read [08:23:40]Found Content-Length = 331 [08:23:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:23:40]execute_script... [08:23:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:23:40]POST & json_proto [08:23:40]process_json_proto [08:23:40]json parsed OK: [08:23:40]protocol is kg_v1.0 [08:23:40]action value=get_value [08:23:40]process_action get_value [08:23:40]cmd_get_value [08:23:40]process_action get_value done [08:23:40]requested_data is exist [08:23:40]produce_requested_data [08:23:40]requested_item fm.sale.total is exist - process it [08:23:40]SAM_PROTO_GetFMData [08:23:40]wFMCommunicate request_size=4 [08:23:40]MH_SAM_APDU [08:23:40]CAPDU: 80 13 03 00 [08:23:40]Write to MH i2c: E2 08 00 DD 15 80 13 03 00 00 00 00 00 71 [08:23:40]Write i2c OK [08:23:40]MH_I2C_Read... [08:23:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:23:40]Read from MH i2c: E2 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 FD 00 [08:23:40]MH_I2C_Read... [08:23:40]Read from MH i2c: E2 FD 00 DD 15 00 C5 04 85 04 C1 04 6E 04 04 00 84 F7 00 00 69 04 A1 00 6F 04 04 00 1F F5 00 00 B1 04 04 00 75 AC 1C 77 70 04 04 00 36 5C 4D 66 72 04 04 00 3F 50 CF 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E 94 A6 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F6 CD 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 65 02 00 00 B1 04 04 00 94 DF 83 03 70 04 04 00 F4 5E 68 03 72 04 03 00 A0 80 1B 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 F8 91 5F EF 03 09 90 00 1E [08:23:40]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 84 F7 00 00 69 04 A1 00 6F 04 04 00 1F F5 00 00 B1 04 04 00 75 AC 1C 77 70 04 04 00 36 5C 4D 66 72 04 04 00 3F 50 CF 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E 94 A6 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F6 CD 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 65 02 00 00 B1 04 04 00 94 DF 83 03 70 04 04 00 F4 5E 68 03 72 04 03 00 A0 80 1B 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 F8 91 5F EF 03 09 90 00 [08:23:40]wFMCommunicate OK [08:23:40]wFMCommunicate request_size=4 [08:23:40]MH_SAM_APDU [08:23:40]CAPDU: 80 17 00 00 [08:23:40]Write to MH i2c: E2 08 00 DE 15 80 17 00 00 00 00 00 00 73 [08:23:40]Write i2c OK [08:23:40]MH_I2C_Read... [08:23:41]OFD Sender: No OFD packet to send [08:23:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:41]Read from MH i2c: E2 [08:23:41]MH_I2C_Read... [08:23:41]Read from MH i2c: E2 FD 00 [08:23:41]MH_I2C_Read... [08:23:41]Read from MH i2c: E2 FD 00 DE 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 F6 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 BF [08:23:41]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 F6 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [08:23:41]wFMCommunicate OK [08:23:41]wFMCommunicate request_size=4 [08:23:41]MH_SAM_APDU [08:23:41]CAPDU: 80 17 00 00 [08:23:41]Write to MH i2c: E2 08 00 DF 15 80 17 00 00 00 00 00 00 74 [08:23:41]Write i2c OK [08:23:41]MH_I2C_Read... [08:23:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:41]Read from MH i2c: E2 [08:23:41]MH_I2C_Read... [08:23:41]Read from MH i2c: E2 FD 00 [08:23:41]MH_I2C_Read... [08:23:41]Read from MH i2c: E2 FD 00 DF 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 86 [08:23:41]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [08:23:41]wFMCommunicate OK [08:23:41]wFMCommunicate request_size=4 [08:23:41]MH_SAM_APDU [08:23:41]CAPDU: 80 17 00 00 [08:23:41]Write to MH i2c: E2 08 00 E0 15 80 17 00 00 00 00 00 00 75 [08:23:41]Write i2c OK [08:23:41]MH_I2C_Read... [08:23:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:41]Read from MH i2c: E2 [08:23:41]MH_I2C_Read... [08:23:41]Read from MH i2c: E2 FD 00 [08:23:41]MH_I2C_Read... [08:23:41]Read from MH i2c: E2 FD 00 E0 15 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 01 [08:23:41]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [08:23:41]wFMCommunicate OK [08:23:41]wFMCommunicate request_size=4 [08:23:41]MH_SAM_APDU [08:23:41]CAPDU: 80 17 00 00 [08:23:41]Write to MH i2c: E2 08 00 E1 15 80 17 00 00 00 00 00 00 76 [08:23:41]Write i2c OK [08:23:41]MH_I2C_Read... [08:23:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:23:41]Read from MH i2c: E2 [08:23:41]MH_I2C_Read... [08:23:41]Read from MH i2c: E2 E2 00 [08:23:41]MH_I2C_Read... [08:23:41]Read from MH i2c: E2 E2 00 E1 15 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:23:41]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:23:41]wFMCommunicate OK [08:23:41]SAM_PROTO_GetFMData done [08:23:41]requested_item fm.sale_refund.total is exist - process it [08:23:41]requested_item fm.buy.total is exist - process it [08:23:41]requested_item shift.sale.total is exist - process it [08:23:41]SAM_PROTO_GetShiftData [08:23:41]wFMCommunicate request_size=4 [08:23:41]MH_SAM_APDU [08:23:41]CAPDU: 80 13 02 00 [08:23:41]Write to MH i2c: E2 08 00 E2 15 80 13 02 00 00 00 00 00 75 [08:23:41]Write i2c OK [08:23:41]MH_I2C_Read... [08:23:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:23:42]Read from MH i2c: E2 [08:23:42]MH_I2C_Read... [08:23:42]Read from MH i2c: E2 FD 00 [08:23:42]MH_I2C_Read... [08:23:42]Read from MH i2c: E2 FD 00 E2 15 00 B8 04 AA 04 B4 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 A8 0C 0A 70 04 03 00 F4 99 08 72 04 03 00 B4 72 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 42 11 01 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 C3 16 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 09 02 70 04 03 00 E0 09 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 6C 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 CB [08:23:42]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 A8 0C 0A 70 04 03 00 F4 99 08 72 04 03 00 B4 72 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 42 11 01 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 C3 16 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 09 02 70 04 03 00 E0 09 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 6C 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [08:23:42]wFMCommunicate OK [08:23:42]wFMCommunicate request_size=4 [08:23:42]MH_SAM_APDU [08:23:42]CAPDU: 80 17 00 00 [08:23:42]Write to MH i2c: E2 08 00 E3 15 80 17 00 00 00 00 00 00 78 [08:23:42]Write i2c OK [08:23:42]MH_I2C_Read... [08:23:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:42]Read from MH i2c: E2 [08:23:42]MH_I2C_Read... [08:23:42]Read from MH i2c: E2 FD 00 [08:23:42]MH_I2C_Read... [08:23:42]Read from MH i2c: E2 FD 00 E3 15 00 0B 00 F6 03 01 00 01 F7 03 02 00 9E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 4B [08:23:42]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 9E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [08:23:42]wFMCommunicate OK [08:23:42]wFMCommunicate request_size=4 [08:23:42]MH_SAM_APDU [08:23:42]CAPDU: 80 17 00 00 [08:23:42]Write to MH i2c: E2 08 00 E4 15 80 17 00 00 00 00 00 00 79 [08:23:42]Write i2c OK [08:23:42]MH_I2C_Read... [08:23:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:42]Read from MH i2c: E2 [08:23:42]MH_I2C_Read... [08:23:42]Read from MH i2c: E2 FD 00 [08:23:42]MH_I2C_Read... [08:23:42]Read from MH i2c: E2 FD 00 E4 15 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 1B [08:23:42]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [08:23:42]wFMCommunicate OK [08:23:42]wFMCommunicate request_size=4 [08:23:42]MH_SAM_APDU [08:23:42]CAPDU: 80 17 00 00 [08:23:42]Write to MH i2c: E2 08 00 E5 15 80 17 00 00 00 00 00 00 7A [08:23:42]Write i2c OK [08:23:42]MH_I2C_Read... [08:23:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:43]Read from MH i2c: E2 [08:23:43]MH_I2C_Read... [08:23:43]Read from MH i2c: E2 FD 00 [08:23:43]MH_I2C_Read... [08:23:43]Read from MH i2c: E2 FD 00 E5 15 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 03 [08:23:43]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [08:23:43]wFMCommunicate OK [08:23:43]wFMCommunicate request_size=4 [08:23:43]MH_SAM_APDU [08:23:43]CAPDU: 80 17 00 00 [08:23:43]Write to MH i2c: E2 08 00 E6 15 80 17 00 00 00 00 00 00 7B [08:23:43]Write i2c OK [08:23:43]MH_I2C_Read... [08:23:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [08:23:43]Read from MH i2c: E2 [08:23:43]MH_I2C_Read... [08:23:43]Read from MH i2c: E2 D5 00 [08:23:43]MH_I2C_Read... [08:23:43]Read from MH i2c: E2 D5 00 E6 15 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:23:43]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:23:43]wFMCommunicate OK [08:23:43]SAM_PROTO_GetShiftData done [08:23:43]requested_item shift.sale.total_cash is exist - process it [08:23:43]requested_item shift.sale_refund.total is exist - process it [08:23:43]requested_item shift.sale_refund.total_cash is exist - process it [08:23:43]requested_item shift.buy.total is exist - process it [08:23:43]requested_item shift.buy.total_cash is exist - process it [08:23:43]produce_requested_data done [08:23:43]produce_requested_data return {"fm.sale.total":19983678.61,"fm.sale_refund.total":589741.00,"fm.buy.total":0.00,"shift.sale.total":6586.00,"shift.sale.total_cash":5637.00,"shift.sale_refund.total":1336.00,"shift.sale_refund.total_cash":1336.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:23:43]process_action_free get_value [08:23:43]json_value_free [08:23:43]json_value_free done [08:23:43]process_json_proto returns [08:23:43]Send response to host [08:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19983678.61,"fm.sale_refund.total":589741.00,"fm.buy.total":0.00,"shift.sale.total":6586.00,"shift.sale.total_cash":5637.00,"shift.sale_refund.total":1336.00,"shift.sale_refund.total_cash":1336.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:23:43]free response buf [08:23:43]execute_script done [08:23:43]execute_script returns [08:23:43]free content buf [08:23:43]Sock 8.Close socket [08:23:43]Sock 8.Thread stoped [08:23:43]accept exits with 9 [08:23:43]New connection [08:23:43]New thread 3067133284 created [08:23:43]Thread 3067276644 joined [08:23:43]Waiting for new connection... [08:23:43] Sock 9.Parse request [08:23:43]Sock 9.Check first char [08:23:43]Sock 9.First char is OK [08:23:43]request: POST /json_proto HTTP/1.0 [08:23:43]Method: POST [08:23:43]URL: /json_proto [08:23:43]Method is POST - this is cgi request [08:23:43]url: /json_proto [08:23:43]query_string will be loaded in cgi processing [08:23:43]execute_cgi json_proto POST (null) [08:23:43]execute_cgi path=json_proto method=POST [08:23:43]POST find Content-Length [08:23:43]Host: 172.17.60.69:8080 [08:23:43]Content-Length: 331 [08:23:43]Content-Type: application/json [08:23:43] [08:23:43]POST finish read [08:23:43]Found Content-Length = 331 [08:23:43]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" ] } } [08:23:43]execute_script... [08:23:43]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" ] } } [08:23:43]POST & json_proto [08:23:43]process_json_proto [08:23:43]json parsed OK: [08:23:43]protocol is kg_v1.0 [08:23:43]action value=get_value [08:23:43]process_action get_value [08:23:43]cmd_get_value [08:23:43]process_action get_value done [08:23:43]requested_data is exist [08:23:43]produce_requested_data [08:23:43]requested_item fm.sale.total is exist - process it [08:23:43]SAM_PROTO_GetFMData [08:23:43]wFMCommunicate request_size=4 [08:23:43]MH_SAM_APDU [08:23:43]CAPDU: 80 13 03 00 [08:23:43]Write to MH i2c: E2 08 00 E7 15 80 13 03 00 00 00 00 00 7B [08:23:43]Write i2c OK [08:23:43]MH_I2C_Read... [08:23:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:23:43]Read from MH i2c: E2 [08:23:43]MH_I2C_Read... [08:23:43]Read from MH i2c: E2 FD 00 [08:23:43]MH_I2C_Read... [08:23:43]Read from MH i2c: E2 FD 00 E7 15 00 C5 04 85 04 C1 04 6E 04 04 00 84 F7 00 00 69 04 A1 00 6F 04 04 00 1F F5 00 00 B1 04 04 00 75 AC 1C 77 70 04 04 00 36 5C 4D 66 72 04 04 00 3F 50 CF 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E 94 A6 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F6 CD 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 65 02 00 00 B1 04 04 00 94 DF 83 03 70 04 04 00 F4 5E 68 03 72 04 03 00 A0 80 1B 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 F8 91 5F EF 03 09 90 00 28 [08:23:44]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 84 F7 00 00 69 04 A1 00 6F 04 04 00 1F F5 00 00 B1 04 04 00 75 AC 1C 77 70 04 04 00 36 5C 4D 66 72 04 04 00 3F 50 CF 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E 94 A6 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F6 CD 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 65 02 00 00 B1 04 04 00 94 DF 83 03 70 04 04 00 F4 5E 68 03 72 04 03 00 A0 80 1B 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 F8 91 5F EF 03 09 90 00 [08:23:44]wFMCommunicate OK [08:23:44]wFMCommunicate request_size=4 [08:23:44]MH_SAM_APDU [08:23:44]CAPDU: 80 17 00 00 [08:23:44]Write to MH i2c: E2 08 00 E8 15 80 17 00 00 00 00 00 00 7D [08:23:44]Write i2c OK [08:23:44]MH_I2C_Read... [08:23:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:44]Read from MH i2c: E2 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 FD 00 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 FD 00 E8 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 F6 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 C9 [08:23:44]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 F6 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [08:23:44]wFMCommunicate OK [08:23:44]wFMCommunicate request_size=4 [08:23:44]MH_SAM_APDU [08:23:44]CAPDU: 80 17 00 00 [08:23:44]Write to MH i2c: E2 08 00 E9 15 80 17 00 00 00 00 00 00 7E [08:23:44]Write i2c OK [08:23:44]MH_I2C_Read... [08:23:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:44]Read from MH i2c: E2 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 FD 00 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 FD 00 E9 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 90 [08:23:44]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [08:23:44]wFMCommunicate OK [08:23:44]wFMCommunicate request_size=4 [08:23:44]MH_SAM_APDU [08:23:44]CAPDU: 80 17 00 00 [08:23:44]Write to MH i2c: E2 08 00 EA 15 80 17 00 00 00 00 00 00 7F [08:23:44]Write i2c OK [08:23:44]MH_I2C_Read... [08:23:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:44]Read from MH i2c: E2 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 FD 00 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 FD 00 EA 15 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 0B [08:23:45]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [08:23:45]wFMCommunicate OK [08:23:45]wFMCommunicate request_size=4 [08:23:45]MH_SAM_APDU [08:23:45]CAPDU: 80 17 00 00 [08:23:45]Write to MH i2c: E2 08 00 EB 15 80 17 00 00 00 00 00 00 80 [08:23:45]Write i2c OK [08:23:45]MH_I2C_Read... [08:23:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:23:45]Read from MH i2c: E2 [08:23:45]MH_I2C_Read... [08:23:45]Read from MH i2c: E2 E2 00 [08:23:45]MH_I2C_Read... [08:23:45]Read from MH i2c: E2 E2 00 EB 15 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5E [08:23:45]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:23:45]wFMCommunicate OK [08:23:45]SAM_PROTO_GetFMData done [08:23:45]requested_item fm.sale_refund.total is exist - process it [08:23:45]requested_item fm.buy.total is exist - process it [08:23:45]requested_item shift.sale.total is exist - process it [08:23:45]SAM_PROTO_GetShiftData [08:23:45]wFMCommunicate request_size=4 [08:23:45]MH_SAM_APDU [08:23:45]CAPDU: 80 13 02 00 [08:23:45]Write to MH i2c: E2 08 00 EC 15 80 13 02 00 00 00 00 00 7F [08:23:45]Write i2c OK [08:23:45]MH_I2C_Read... [08:23:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:23:45]Read from MH i2c: E2 [08:23:45]MH_I2C_Read... [08:23:45]Read from MH i2c: E2 FD 00 [08:23:45]MH_I2C_Read... [08:23:45]Read from MH i2c: E2 FD 00 EC 15 00 B8 04 AA 04 B4 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 A8 0C 0A 70 04 03 00 F4 99 08 72 04 03 00 B4 72 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 42 11 01 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 C3 16 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 09 02 70 04 03 00 E0 09 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 6C 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 D5 [08:23:45]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 A8 0C 0A 70 04 03 00 F4 99 08 72 04 03 00 B4 72 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 42 11 01 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 C3 16 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 09 02 70 04 03 00 E0 09 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 6C 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [08:23:46]wFMCommunicate OK [08:23:46]wFMCommunicate request_size=4 [08:23:46]MH_SAM_APDU [08:23:46]CAPDU: 80 17 00 00 [08:23:46]Write to MH i2c: E2 08 00 ED 15 80 17 00 00 00 00 00 00 82 [08:23:46]Write i2c OK [08:23:46]MH_I2C_Read... [08:23:46]OFD Sender: No OFD packet to send [08:23:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:46]Read from MH i2c: E2 [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: E2 FD 00 [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: E2 FD 00 ED 15 00 0B 00 F6 03 01 00 01 F7 03 02 00 9E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 55 [08:23:46]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 9E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [08:23:46]wFMCommunicate OK [08:23:46]wFMCommunicate request_size=4 [08:23:46]MH_SAM_APDU [08:23:46]CAPDU: 80 17 00 00 [08:23:46]Write to MH i2c: E2 08 00 EE 15 80 17 00 00 00 00 00 00 83 [08:23:46]Write i2c OK [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: E2 [08:23:46]MH_I2C_Read... [08:23:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:46]Read from MH i2c: E2 FD 00 [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: E2 FD 00 EE 15 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 25 [08:23:46]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [08:23:46]wFMCommunicate OK [08:23:46]wFMCommunicate request_size=4 [08:23:46]MH_SAM_APDU [08:23:46]CAPDU: 80 17 00 00 [08:23:46]Write to MH i2c: E2 08 00 EF 15 80 17 00 00 00 00 00 00 84 [08:23:46]Write i2c OK [08:23:46]MH_I2C_Read... [08:23:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:47]Read from MH i2c: E2 [08:23:47]MH_I2C_Read... [08:23:47]Read from MH i2c: E2 FD 00 [08:23:47]MH_I2C_Read... [08:23:47]Read from MH i2c: E2 FD 00 EF 15 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 0D [08:23:47]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [08:23:47]wFMCommunicate OK [08:23:47]wFMCommunicate request_size=4 [08:23:47]MH_SAM_APDU [08:23:47]CAPDU: 80 17 00 00 [08:23:47]Write to MH i2c: E2 08 00 F0 15 80 17 00 00 00 00 00 00 85 [08:23:47]Write i2c OK [08:23:47]MH_I2C_Read... [08:23:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [08:23:47]Read from MH i2c: E2 [08:23:47]MH_I2C_Read... [08:23:47]Read from MH i2c: E2 D5 00 [08:23:47]MH_I2C_Read... [08:23:47]Read from MH i2c: E2 D5 00 F0 15 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:23:47]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:23:47]wFMCommunicate OK [08:23:47]SAM_PROTO_GetShiftData done [08:23:47]requested_item shift.sale.total_cash is exist - process it [08:23:47]requested_item shift.sale_refund.total is exist - process it [08:23:47]requested_item shift.sale_refund.total_cash is exist - process it [08:23:47]requested_item shift.buy.total is exist - process it [08:23:47]requested_item shift.buy.total_cash is exist - process it [08:23:47]produce_requested_data done [08:23:47]produce_requested_data return {"fm.sale.total":19983678.61,"fm.sale_refund.total":589741.00,"fm.buy.total":0.00,"shift.sale.total":6586.00,"shift.sale.total_cash":5637.00,"shift.sale_refund.total":1336.00,"shift.sale_refund.total_cash":1336.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:23:47]process_action_free get_value [08:23:47]json_value_free [08:23:47]json_value_free done [08:23:47]process_json_proto returns [08:23:47]Send response to host [08:23:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19983678.61,"fm.sale_refund.total":589741.00,"fm.buy.total":0.00,"shift.sale.total":6586.00,"shift.sale.total_cash":5637.00,"shift.sale_refund.total":1336.00,"shift.sale_refund.total_cash":1336.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:23:47]free response buf [08:23:47]execute_script done [08:23:47]execute_script returns [08:23:47]free content buf [08:23:47]Sock 9.Close socket [08:23:47]Sock 9.Thread stoped [08:23:47]accept exits with 8 [08:23:47]New connection [08:23:47]New thread 3067276644 created [08:23:47]Thread 3067133284 joined [08:23:47]Waiting for new connection... [08:23:47] Sock 8.Parse request [08:23:47]Sock 8.Check first char [08:23:47]Sock 8.First char is OK [08:23:47]request: POST /json_proto HTTP/1.0 [08:23:47]Method: POST [08:23:47]URL: /json_proto [08:23:47]Method is POST - this is cgi request [08:23:47]url: /json_proto [08:23:47]query_string will be loaded in cgi processing [08:23:47]execute_cgi json_proto POST (null) [08:23:47]execute_cgi path=json_proto method=POST [08:23:47]POST find Content-Length [08:23:47]Host: 172.17.60.69:8080 [08:23:47]Content-Length: 280 [08:23:47]Content-Type: application/json [08:23:47] [08:23:47]POST finish read [08:23:47]Found Content-Length = 280 [08:23:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:47]execute_script... [08:23:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:47]POST & json_proto [08:23:47]process_json_proto [08:23:47]json parsed OK: [08:23:47]protocol is kg_v1.0 [08:23:47]action value=x_report [08:23:47]process_action x_report [08:23:47]cmd_x_report [08:23:47]MH_GetDate [08:23:47]Write to MH i2c: F0 00 00 F1 15 F5 [08:23:47]Write i2c OK [08:23:47]MH_I2C_Read... [08:23:47]Read from MH i2c: F0 [08:23:47]MH_I2C_Read... [08:23:47]Read from MH i2c: F0 09 00 [08:23:47]MH_I2C_Read... [08:23:47]Read from MH i2c: F0 09 00 F1 15 00 96 20 60 66 D2 83 5F 66 94 [08:23:47]GetLastDocTimeStamp 1717575455 [08:23:47]current date 1717575830 [08:23:47]FM_GetShiftState [08:23:47]SAM_PROTO_GetShiftState [08:23:47]wFMCommunicate request_size=4 [08:23:47]MH_SAM_APDU [08:23:47]CAPDU: 80 13 01 00 [08:23:47]Write to MH i2c: E2 08 00 F2 15 80 13 01 00 00 00 00 00 84 [08:23:47]Write i2c OK [08:23:47]MH_I2C_Read... [08:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:47]Read from MH i2c: E2 [08:23:47]MH_I2C_Read... [08:23:47]Read from MH i2c: E2 0E 00 [08:23:47]MH_I2C_Read... [08:23:47]Read from MH i2c: E2 0E 00 F2 15 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 C5 [08:23:47]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:23:47]wFMCommunicate OK [08:23:47]SAM_PROTO_GetShiftState done [08:23:47]FM_GetShiftState done [08:23:47]KKMCreateXReportDocument [08:23:47]Load OK [08:23:47]Malloc new data [08:23:47]MH_GetDate [08:23:47]Write to MH i2c: F0 00 00 F3 15 F7 [08:23:47]Write i2c OK [08:23:47]MH_I2C_Read... [08:23:47]Read from MH i2c: F0 [08:23:47]MH_I2C_Read... [08:23:47]Read from MH i2c: F0 09 00 [08:23:47]MH_I2C_Read... [08:23:47]Read from MH i2c: F0 09 00 F3 15 00 96 20 60 66 D2 83 5F 66 96 [08:23:47]Malloc new data [08:23:47]Malloc new data [08:23:47]wFMCommunicate request_size=4 [08:23:47]MH_SAM_APDU [08:23:47]CAPDU: 80 11 00 00 [08:23:47]Write to MH i2c: E2 08 00 F4 15 80 11 00 00 00 00 00 00 83 [08:23:47]Write i2c OK [08:23:47]MH_I2C_Read... [08:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:47]Read from MH i2c: E2 [08:23:47]MH_I2C_Read... [08:23:47]Read from MH i2c: E2 17 00 [08:23:47]MH_I2C_Read... [08:23:47]Read from MH i2c: E2 17 00 F4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D5 [08:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:23:47]wFMCommunicate OK [08:23:47]SAM_PROTO_GetFieldsCounters [08:23:47]wFMCommunicate request_size=4 [08:23:47]MH_SAM_APDU [08:23:47]CAPDU: 80 13 00 00 [08:23:47]Write to MH i2c: E2 08 00 F5 15 80 13 00 00 00 00 00 00 86 [08:23:47]Write i2c OK [08:23:47]MH_I2C_Read... [08:23:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:48]Read from MH i2c: E2 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 62 00 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 62 00 F5 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 72 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [08:23:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 72 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:48]wFMCommunicate OK [08:23:48]SAM_PROTO_GetFieldsCounters done [08:23:48]Malloc new data [08:23:48]Malloc new data [08:23:48]Malloc new data [08:23:48]KKMCreateXReportDocument OK [08:23:48]KKMSetXReportData OK [08:23:48]KKMPrepareXReportFMData [08:23:48]SAM_PROTO_GetShiftData [08:23:48]wFMCommunicate request_size=4 [08:23:48]MH_SAM_APDU [08:23:48]CAPDU: 80 13 02 00 [08:23:48]Write to MH i2c: E2 08 00 F6 15 80 13 02 00 00 00 00 00 89 [08:23:48]Write i2c OK [08:23:48]MH_I2C_Read... [08:23:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:23:48]Read from MH i2c: E2 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 FD 00 [08:23:48]MH_I2C_Read... [08:23:48]Read from MH i2c: E2 FD 00 F6 15 00 B8 04 AA 04 B4 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 A8 0C 0A 70 04 03 00 F4 99 08 72 04 03 00 B4 72 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 42 11 01 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 C3 16 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 09 02 70 04 03 00 E0 09 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 6C 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 DF [08:23:48]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 A8 0C 0A 70 04 03 00 F4 99 08 72 04 03 00 B4 72 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 42 11 01 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 C3 16 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 09 02 70 04 03 00 E0 09 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 6C 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [08:23:48]wFMCommunicate OK [08:23:48]wFMCommunicate request_size=4 [08:23:48]MH_SAM_APDU [08:23:48]CAPDU: 80 17 00 00 [08:23:48]Write to MH i2c: E2 08 00 F7 15 80 17 00 00 00 00 00 00 8C [08:23:48]Write i2c OK [08:23:48]MH_I2C_Read... [08:23:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:49]Read from MH i2c: E2 [08:23:49]MH_I2C_Read... [08:23:49]Read from MH i2c: E2 FD 00 [08:23:49]MH_I2C_Read... [08:23:49]Read from MH i2c: E2 FD 00 F7 15 00 0B 00 F6 03 01 00 01 F7 03 02 00 9E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 5F [08:23:49]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 9E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [08:23:49]wFMCommunicate OK [08:23:49]wFMCommunicate request_size=4 [08:23:49]MH_SAM_APDU [08:23:49]CAPDU: 80 17 00 00 [08:23:49]Write to MH i2c: E2 08 00 F8 15 80 17 00 00 00 00 00 00 8D [08:23:49]Write i2c OK [08:23:49]MH_I2C_Read... [08:23:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:49]Read from MH i2c: E2 [08:23:49]MH_I2C_Read... [08:23:49]Read from MH i2c: E2 FD 00 [08:23:49]MH_I2C_Read... [08:23:49]Read from MH i2c: E2 FD 00 F8 15 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 2F [08:23:49]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [08:23:49]wFMCommunicate OK [08:23:49]wFMCommunicate request_size=4 [08:23:49]MH_SAM_APDU [08:23:49]CAPDU: 80 17 00 00 [08:23:49]Write to MH i2c: E2 08 00 F9 15 80 17 00 00 00 00 00 00 8E [08:23:49]Write i2c OK [08:23:49]MH_I2C_Read... [08:23:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:49]Read from MH i2c: E2 [08:23:49]MH_I2C_Read... [08:23:49]Read from MH i2c: E2 FD 00 [08:23:49]MH_I2C_Read... [08:23:49]Read from MH i2c: E2 FD 00 F9 15 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 17 [08:23:50]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [08:23:50]wFMCommunicate OK [08:23:50]wFMCommunicate request_size=4 [08:23:50]MH_SAM_APDU [08:23:50]CAPDU: 80 17 00 00 [08:23:50]Write to MH i2c: E2 08 00 FA 15 80 17 00 00 00 00 00 00 8F [08:23:50]Write i2c OK [08:23:50]MH_I2C_Read... [08:23:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [08:23:50]Read from MH i2c: E2 [08:23:50]MH_I2C_Read... [08:23:50]Read from MH i2c: E2 D5 00 [08:23:50]MH_I2C_Read... [08:23:50]Read from MH i2c: E2 D5 00 FA 15 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 [08:23:50]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:23:50]wFMCommunicate OK [08:23:50]SAM_PROTO_GetShiftData done [08:23:50]1194 (1204) - счетчики итогов смены [08:23:50] 1134 (4) - 34 - количество чеков со всеми признаками расчетов [08:23:50] 1129 (155) - счетчики операций «приход» [08:23:50] 1135 (4) - 33 - количество чеков по признаку расчетов [08:23:50] 1201 (3) - 6586.00 - общая итоговая сумма в чеках [08:23:50] 1136 (3) - 5637.00 - итоговая сумма в чеках наличными [08:23:50] 1138 (3) - 949.00 - итоговая сумма в чеках безналичными [08:23:50] 1024 (122) - суммы налогов [08:23:50] 1006 (9) - суммы НДС [08:23:50] 1010 (1) - 0% - код ставки НДС [08:23:50] 1011 (0) - 0.00 - сумма НДС по ставке [08:23:50] 1006 (12) - суммы НДС [08:23:50] 1010 (1) - 12% - код ставки НДС [08:23:50] 1011 (3) - 699.54 - сумма НДС по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 0% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (11) - суммы НСП [08:23:50] 1014 (1) - 1% - код ставки НСП [08:23:50] 1015 (2) - 58.27 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 2% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 3% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 5% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 0,50% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 1,50% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1130 (151) - счетчики операций «возврат прихода» [08:23:50] 1135 (4) - 1 - количество чеков по признаку расчетов [08:23:50] 1201 (3) - 1336.00 - общая итоговая сумма в чеках [08:23:50] 1136 (3) - 1336.00 - итоговая сумма в чеках наличными [08:23:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [08:23:50] 1024 (121) - суммы налогов [08:23:50] 1006 (9) - суммы НДС [08:23:50] 1010 (1) - 0% - код ставки НДС [08:23:50] 1011 (0) - 0.00 - сумма НДС по ставке [08:23:50] 1006 (11) - суммы НДС [08:23:50] 1010 (1) - 12% - код ставки НДС [08:23:50] 1011 (2) - 141.88 - сумма НДС по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 0% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (11) - суммы НСП [08:23:50] 1014 (1) - 1% - код ставки НСП [08:23:50] 1015 (2) - 11.82 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 2% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 3% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 5% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 0,50% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 1,50% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1131 (141) - счетчики операций «расход» [08:23:50] 1135 (4) - 0 - количество чеков по признаку расчетов [08:23:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [08:23:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [08:23:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [08:23:50] 1024 (117) - суммы налогов [08:23:50] 1006 (9) - суммы НДС [08:23:50] 1010 (1) - 0% - код ставки НДС [08:23:50] 1011 (0) - 0.00 - сумма НДС по ставке [08:23:50] 1006 (9) - суммы НДС [08:23:50] 1010 (1) - 12% - код ставки НДС [08:23:50] 1011 (0) - 0.00 - сумма НДС по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 0% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 1% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 2% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 3% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 5% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 0,50% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 1,50% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1132 (141) - счетчики операций «возврат расхода» [08:23:50] 1135 (4) - 0 - количество чеков по признаку расчетов [08:23:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [08:23:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [08:23:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [08:23:50] 1024 (117) - суммы налогов [08:23:50] 1006 (9) - суммы НДС [08:23:50] 1010 (1) - 0% - код ставки НДС [08:23:50] 1011 (0) - 0.00 - сумма НДС по ставке [08:23:50] 1006 (9) - суммы НДС [08:23:50] 1010 (1) - 12% - код ставки НДС [08:23:50] 1011 (0) - 0.00 - сумма НДС по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 0% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 1% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 2% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 3% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 5% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 0,50% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1007 (9) - суммы НСП [08:23:50] 1014 (1) - 1,50% - код ставки НСП [08:23:50] 1015 (0) - 0.00 - сумма НСП по ставке [08:23:50] 1133 (588) - - счетчики коррекции - не используются [08:23:50]SetTLVBufToDocument [08:23:50]Processing tag 1194 (04AA) [08:23:50]Load OK [08:23:50]SetTLVBufToDocument [08:23:50]Processing tag 1134 (046E) [08:23:50]Malloc new data [08:23:50]Processing tag 1129 (0469) [08:23:50]Load OK [08:23:50]SetTLVBufToDocument [08:23:50]Processing tag 1135 (046F) [08:23:50]Malloc new data [08:23:50]Processing tag 1201 (04B1) [08:23:50]Malloc new data [08:23:50]Processing tag 1136 (0470) [08:23:50]Malloc new data [08:23:50]Processing tag 1138 (0472) [08:23:51]Malloc new data [08:23:51]Processing tag 1024 (0400) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1006 (03EE) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1010 (03F2) [08:23:51]Malloc new data [08:23:51]Processing tag 1011 (03F3) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1006 (03EE) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1010 (03F2) [08:23:51]Malloc new data [08:23:51]Processing tag 1011 (03F3) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]SetTLVBufToDocument err=0 [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1130 (046A) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1135 (046F) [08:23:51]Malloc new data [08:23:51]Processing tag 1201 (04B1) [08:23:51]Malloc new data [08:23:51]Processing tag 1136 (0470) [08:23:51]Malloc new data [08:23:51]Processing tag 1138 (0472) [08:23:51]Malloc new data [08:23:51]Processing tag 1024 (0400) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1006 (03EE) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1010 (03F2) [08:23:51]Malloc new data [08:23:51]Processing tag 1011 (03F3) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1006 (03EE) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1010 (03F2) [08:23:51]Malloc new data [08:23:51]Processing tag 1011 (03F3) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]OFD Sender: No OFD packet to send [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]SetTLVBufToDocument err=0 [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1131 (046B) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1135 (046F) [08:23:51]Malloc new data [08:23:51]Processing tag 1201 (04B1) [08:23:51]Malloc new data [08:23:51]Processing tag 1136 (0470) [08:23:51]Malloc new data [08:23:51]Processing tag 1138 (0472) [08:23:51]Malloc new data [08:23:51]Processing tag 1024 (0400) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1006 (03EE) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1010 (03F2) [08:23:51]Malloc new data [08:23:51]Processing tag 1011 (03F3) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1006 (03EE) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1010 (03F2) [08:23:51]Malloc new data [08:23:51]Processing tag 1011 (03F3) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]SetTLVBufToDocument err=0 [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1132 (046C) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1135 (046F) [08:23:51]Malloc new data [08:23:51]Processing tag 1201 (04B1) [08:23:51]Malloc new data [08:23:51]Processing tag 1136 (0470) [08:23:51]Malloc new data [08:23:51]Processing tag 1138 (0472) [08:23:51]Malloc new data [08:23:51]Processing tag 1024 (0400) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1006 (03EE) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1010 (03F2) [08:23:51]Malloc new data [08:23:51]Processing tag 1011 (03F3) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1006 (03EE) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1010 (03F2) [08:23:51]Malloc new data [08:23:51]Processing tag 1011 (03F3) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1007 (03EF) [08:23:51]Load OK [08:23:51]SetTLVBufToDocument [08:23:51]Processing tag 1014 (03F6) [08:23:51]Malloc new data [08:23:51]Processing tag 1015 (03F7) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]SetTLVBufToDocument err=0 [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Processing tag 1133 (046D) [08:23:51]Malloc new data [08:23:51]SetTLVBufToDocument err=0 [08:23:51]SetTLVBufToDocument err=0 [08:23:51]Malloc new data [08:23:51]SAM_PROTO_GetFMData [08:23:51]wFMCommunicate request_size=4 [08:23:51]MH_SAM_APDU [08:23:51]CAPDU: 80 13 03 00 [08:23:51]Write to MH i2c: E2 08 00 FB 15 80 13 03 00 00 00 00 00 8F [08:23:51]Write i2c OK [08:23:51]MH_I2C_Read... [08:23:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:23:52]Read from MH i2c: E2 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 FD 00 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 FD 00 FB 15 00 C5 04 85 04 C1 04 6E 04 04 00 84 F7 00 00 69 04 A1 00 6F 04 04 00 1F F5 00 00 B1 04 04 00 75 AC 1C 77 70 04 04 00 36 5C 4D 66 72 04 04 00 3F 50 CF 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E 94 A6 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F6 CD 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 65 02 00 00 B1 04 04 00 94 DF 83 03 70 04 04 00 F4 5E 68 03 72 04 03 00 A0 80 1B 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 F8 91 5F EF 03 09 90 00 3C [08:23:52]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 84 F7 00 00 69 04 A1 00 6F 04 04 00 1F F5 00 00 B1 04 04 00 75 AC 1C 77 70 04 04 00 36 5C 4D 66 72 04 04 00 3F 50 CF 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E 94 A6 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F6 CD 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 65 02 00 00 B1 04 04 00 94 DF 83 03 70 04 04 00 F4 5E 68 03 72 04 03 00 A0 80 1B 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 F8 91 5F EF 03 09 90 00 [08:23:52]wFMCommunicate OK [08:23:52]wFMCommunicate request_size=4 [08:23:52]MH_SAM_APDU [08:23:52]CAPDU: 80 17 00 00 [08:23:52]Write to MH i2c: E2 08 00 FC 15 80 17 00 00 00 00 00 00 91 [08:23:52]Write i2c OK [08:23:52]MH_I2C_Read... [08:23:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:52]Read from MH i2c: E2 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 FD 00 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 FD 00 FC 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 F6 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 DD [08:23:52]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 F6 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [08:23:52]wFMCommunicate OK [08:23:52]wFMCommunicate request_size=4 [08:23:52]MH_SAM_APDU [08:23:52]CAPDU: 80 17 00 00 [08:23:52]Write to MH i2c: E2 08 00 FD 15 80 17 00 00 00 00 00 00 92 [08:23:53]Write i2c OK [08:23:53]MH_I2C_Read... [08:23:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:53]Read from MH i2c: E2 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 FD 00 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 FD 00 FD 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A4 [08:23:53]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [08:23:53]wFMCommunicate OK [08:23:53]wFMCommunicate request_size=4 [08:23:53]MH_SAM_APDU [08:23:53]CAPDU: 80 17 00 00 [08:23:53]Write to MH i2c: E2 08 00 FE 15 80 17 00 00 00 00 00 00 93 [08:23:53]Write i2c OK [08:23:53]MH_I2C_Read... [08:23:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:23:53]Read from MH i2c: E2 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 FD 00 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 FD 00 FE 15 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 1F [08:23:53]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [08:23:54]wFMCommunicate OK [08:23:54]wFMCommunicate request_size=4 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 17 00 00 [08:23:54]Write to MH i2c: E2 08 00 FF 15 80 17 00 00 00 00 00 00 94 [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:23:54]Read from MH i2c: E2 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 E2 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 E2 00 FF 15 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 72 [08:23:54]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:23:54]wFMCommunicate OK [08:23:54]SAM_PROTO_GetFMData done [08:23:54]FM_GetFMData:85 04 C1 04 6E 04 04 00 84 F7 00 00 69 04 A1 00 6F 04 04 00 1F F5 00 00 B1 04 04 00 75 AC 1C 77 70 04 04 00 36 5C 4D 66 72 04 04 00 3F 50 CF 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E 94 A6 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F6 CD 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 65 02 00 00 B1 04 04 00 94 DF 83 03 70 04 04 00 F4 5E 68 03 72 04 03 00 A0 80 1B 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 F8 91 5F 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 99 F6 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [08:23:55]oper:6F 04 04 00 1F F5 00 00 B1 04 04 00 75 AC 1C 77 70 04 04 00 36 5C 4D 66 72 04 04 00 3F 50 CF 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E 94 A6 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F6 CD 0D 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 [08:23:55]total:75 AC 1C 77 [08:23:55]Malloc new data [08:23:55]oper:6F 04 04 00 65 02 00 00 B1 04 04 00 94 DF 83 03 70 04 04 00 F4 5E 68 03 72 04 03 00 A0 80 1B 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 F8 91 5F 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 99 F6 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [08:23:55]total:94 DF 83 03 [08:23:55]Malloc new data [08:23:55]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 [08:23:55]total: [08:23:55]Malloc new data [08:23:55]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 [08:23:55]total: [08:23:55]Malloc new data [08:23:55]KKMPrepareXReportFMData err=0 [08:23:55]Х отчет ИНН: 02508201610067 Кассир: Койгельдиева Р. 05.06.2024 08:23 Смена: 266 РНМ: 0000000000092737 ЗНМ: 0300000031 СНО: Общий режим Всего чеков: 34 ИТОГИ ПРИХОД Чеков: 33 Общий итог: 6586.00 Итого наличными: 5637.00 Итого безнал.: 949.00 НДС 0% : 0.00 НДС 12% : 699.54 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 58.27 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 1336.00 Итого наличными: 1336.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 141.88 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 11.82 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 4301.00 НС Приход: 19983678.61 НС Возвр.Прихода: 589741.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875074 [08:23:55]StoreToDocumentArchive [08:23:55]MH_GetDate [08:23:55]Write to MH i2c: F0 00 00 00 16 05 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: F0 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: F0 09 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: F0 09 00 00 16 00 9E 20 60 66 D2 83 5F 66 AC [08:23:55]shift 266 fd 1717575838 [08:23:55]Create dir for shift 0266 [08:23:55]save to /storage/0266/doc_1717575838 [08:23:55]save last doc name /storage/0266/doc_1717575838 to /storage/kkm_last_doc_name [08:23:55]save OK [08:23:55]Clear old archive folders... [08:23:55]NVStorageSaveData kkm_last_timestamp [08:23:55]File name is /storage/kkm_last_timestamp [08:23:55]Write 4 bytes [08:23:55]NVStorageSaveData done [08:23:55]ExternCall_PrintAddStr [08:23:55]wPrintStart [08:23:55]Write to MH i2c: 01 00 00 01 16 17 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 07 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 07 00 01 16 00 00 00 00 00 FF 0F 2C [08:23:55]RasterBufferAndPrint [08:23:55]line Х отчет [08:23:55]line ИНН: 02508201610067 [08:23:55]line Кассир: Койгельдиева Р. [08:23:55]line 05.06.2024 08:23 [08:23:55]line Смена: 266 [08:23:55]line РНМ: 0000000000092737 [08:23:55]line ЗНМ: 0300000031 [08:23:55]line СНО: Общий режим [08:23:55]line Всего чеков: 34 [08:23:55]line ИТОГИ ПРИХОД [08:23:55]line Чеков: 33 [08:23:55]line Общий итог: 6586.00 [08:23:55]line Итого наличными: 5637.00 [08:23:55]line Итого безнал.: 949.00 [08:23:55]line НДС 0% : 0.00 [08:23:55]line НДС 12% : 699.54 [08:23:55]line НСП 0% : 0.00 [08:23:55]line НСП 1,50% : 0.00 [08:23:55]line НСП 0,50% : 0.00 [08:23:55]line НСП 5% : 0.00 [08:23:55]line НСП 3% : 0.00 [08:23:55]line НСП 2% : 0.00 [08:23:55]line НСП 1% : 58.27 [08:23:55]line ИТОГИ ВОЗВРАТ ПРИХОДА [08:23:55]line Чеков: 1 [08:23:55]line Общий итог: 1336.00 [08:23:55]line Итого наличными: 1336.00 [08:23:55]line Итого безнал.: 0.00 [08:23:55]line НДС 0% : 0.00 [08:23:55]line НДС 12% : 141.88 [08:23:55]line НСП 0% : 0.00 [08:23:55]line НСП 1,50% : 0.00 [08:23:55]line НСП 0,50% : 0.00 [08:23:55]line НСП 5% : 0.00 [08:23:55]line НСП 3% : 0.00 [08:23:55]line НСП 2% : 0.00 [08:23:55]line НСП 1% : 11.82 [08:23:55]line ИТОГИ РАСХОД [08:23:55]line Чеков: 0 [08:23:55]line Общий итог: 0.00 [08:23:55]line Итого наличными: 0.00 [08:23:55]line Итого безнал.: 0.00 [08:23:55]line НДС 0% : 0.00 [08:23:55]line НДС 12% : 0.00 [08:23:55]line НСП 0% : 0.00 [08:23:55]line НСП 1,50% : 0.00 [08:23:55]line НСП 0,50% : 0.00 [08:23:55]line НСП 5% : 0.00 [08:23:55]line НСП 3% : 0.00 [08:23:55]line НСП 2% : 0.00 [08:23:55]line НСП 1% : 0.00 [08:23:55]line ИТОГИ ВОЗВРАТ РАСХОДА [08:23:55]line Чеков: 0 [08:23:55]line Общий итог: 0.00 [08:23:55]line Итого наличными: 0.00 [08:23:55]line Итого безнал.: 0.00 [08:23:55]line НДС 0% : 0.00 [08:23:55]line НДС 12% : 0.00 [08:23:55]line НСП 0% : 0.00 [08:23:55]line НСП 1,50% : 0.00 [08:23:55]line НСП 0,50% : 0.00 [08:23:55]line НСП 5% : 0.00 [08:23:55]line НСП 3% : 0.00 [08:23:55]line НСП 2% : 0.00 [08:23:55]line НСП 1% : 0.00 [08:23:55]line Сумма внесений: 0.00 [08:23:55]line Сумма выплат: 0.00 [08:23:55]line Нал. в кассе: 4301.00 [08:23:55]line НС Приход: 19983678.61 [08:23:55]line НС Возвр.Прихода: 589741.00 [08:23:55]line НС Расход: 0.00 [08:23:55]line НС Возвр.Расхода: 0.00 [08:23:55]line ФМ: 0000000000875074 [08:23:55]written 0, free lines is 4095 [08:23:56]Write to MH i2c: 01 00 00 4C 16 62 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 07 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 07 00 4C 16 00 00 00 00 00 9F 0A 12 [08:23:56]RasterBufferAndPrint [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]OFD Sender: No OFD packet to send [08:23:56]written 0, free lines is 2780 [08:23:56]MH_Cut [08:23:56]Write to MH i2c: D1 01 00 53 16 01 3B [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 01 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 01 00 53 16 00 3A [08:23:56]Write to MH i2c: 01 00 00 54 16 6A [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:57]*** Cut start [08:23:57]*** Partial cut [08:23:57]*** CUTSNS_PIN = 1 [08:23:57]*** CUTSNS_PIN = 0 [08:23:57]*** Brake cut motor [08:23:58]Read from MH i2c: 01 [08:23:58]MH_I2C_Read... [08:23:58]*** Stop cut motor [08:23:58]*** Cut end [08:23:58]Read from MH i2c: 01 07 00 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: 01 07 00 54 16 00 00 00 00 00 FF 0F 7F [08:23:58]process_action x_report done [08:23:58]requested_data is exist [08:23:58]produce_requested_data [08:23:58]requested_item fd.num is exist - process it [08:23:58]SAM_PROTO_GetFieldsCounters [08:23:58]wFMCommunicate request_size=4 [08:23:58]MH_SAM_APDU [08:23:58]CAPDU: 80 13 00 00 [08:23:58]Write to MH i2c: E2 08 00 55 16 80 13 00 00 00 00 00 00 E7 [08:23:58]Write i2c OK [08:23:58]MH_I2C_Read... [08:23:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:58]Read from MH i2c: E2 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 62 00 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 62 00 55 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 72 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [08:23:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 72 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:58]wFMCommunicate OK [08:23:58]SAM_PROTO_GetFieldsCounters done [08:23:58]requested_item shift.num is exist - process it [08:23:58]requested_item shift.opened is exist - process it [08:23:58]req_shift_opened [08:23:58]FM_GetShiftState [08:23:58]SAM_PROTO_GetShiftState [08:23:58]wFMCommunicate request_size=4 [08:23:58]MH_SAM_APDU [08:23:58]CAPDU: 80 13 01 00 [08:23:58]Write to MH i2c: E2 08 00 56 16 80 13 01 00 00 00 00 00 E9 [08:23:58]Write i2c OK [08:23:58]MH_I2C_Read... [08:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:58]Read from MH i2c: E2 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 0E 00 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 0E 00 56 16 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 2A [08:23:58]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:23:58]wFMCommunicate OK [08:23:58]SAM_PROTO_GetShiftState done [08:23:58]FM_GetShiftState done [08:23:58]req_shift_opened done [08:23:58]requested_item shift.open_date is exist - process it [08:23:58]req_shift_open_date [08:23:58]req_shift_open_date done [08:23:58]produce_requested_data done [08:23:58]produce_requested_data return {"fd.num":64114,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [08:23:58]process_action_free x_report [08:23:58]json_value_free [08:23:58]json_value_free done [08:23:58]process_json_proto returns [08:23:58]Send response to host [08:23:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":64114,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [08:23:58]free response buf [08:23:58]execute_script done [08:23:58]execute_script returns [08:23:58]free content buf [08:23:58]Sock 8.Close socket [08:23:58]Sock 8.Thread stoped [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]accept exits with 9 [08:34:21]New connection [08:34:21]New thread 3067133284 created [08:34:21]Thread 3067276644 joined [08:34:21]Waiting for new connection... [08:34:21] Sock 9.Parse request [08:34:21]Sock 9.Check first char [08:34:21]Sock 9.First char is OK [08:34:21]request: POST /json_proto HTTP/1.0 [08:34:21]Method: POST [08:34:21]URL: /json_proto [08:34:21]Method is POST - this is cgi request [08:34:21]url: /json_proto [08:34:21]query_string will be loaded in cgi processing [08:34:21]execute_cgi json_proto POST (null) [08:34:21]execute_cgi path=json_proto method=POST [08:34:21]POST find Content-Length [08:34:21]Host: 172.17.60.69:8080 [08:34:21]Content-Length: 875 [08:34:21]Content-Type: application/json [08:34:21] [08:34:21]POST finish read [08:34:21]Found Content-Length = 875 [08:34:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73653", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46107084", "name": "Eclipse \u041B\u0435\u0434\u044F\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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" ] } } [08:34:21]execute_script... [08:34:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73653", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46107084", "name": "Eclipse \u041B\u0435\u0434\u044F\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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" ] } } [08:34:21]POST & json_proto [08:34:21]process_json_proto [08:34:21]json parsed OK: [08:34:21]protocol is kg_v1.0 [08:34:21]action value=close_receipt [08:34:21]process_action close_receipt [08:34:21]cmd_close_receipt [08:34:21]MH_GetDate [08:34:21]Write to MH i2c: F0 00 00 57 16 5C [08:34:21]Write i2c OK [08:34:21]MH_I2C_Read... [08:34:21]Read from MH i2c: F0 [08:34:21]MH_I2C_Read... [08:34:21]Read from MH i2c: F0 09 00 [08:34:21]MH_I2C_Read... [08:34:21]Read from MH i2c: F0 09 00 57 16 00 0F 23 60 66 D2 83 5F 66 77 [08:34:21]GetLastDocTimeStamp 1717575830 [08:34:21]current date 1717576463 [08:34:21]FM_GetShiftState [08:34:21]SAM_PROTO_GetShiftState [08:34:21]wFMCommunicate request_size=4 [08:34:21]MH_SAM_APDU [08:34:21]CAPDU: 80 13 01 00 [08:34:21]Write to MH i2c: E2 08 00 58 16 80 13 01 00 00 00 00 00 EB [08:34:21]Write i2c OK [08:34:21]MH_I2C_Read... [08:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:21]Read from MH i2c: E2 [08:34:21]MH_I2C_Read... [08:34:21]Read from MH i2c: E2 0E 00 [08:34:21]MH_I2C_Read... [08:34:21]Read from MH i2c: E2 0E 00 58 16 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 2C [08:34:21]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:34:21]wFMCommunicate OK [08:34:21]SAM_PROTO_GetShiftState done [08:34:21]FM_GetShiftState done [08:34:21]opened in 1717545925 [08:34:21]opened+sec_in_day 1717632325 [08:34:21]quantity*price = 13000 [08:34:21]sum+1 = 13001 [08:34:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46107084 Eclipse Ледяные ягоды 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 35 05.06.2024 08:34 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64115 ФПД: 4463825997993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T083424&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64115&fm=4463825997993&tin=02508201610067®Number=0000000000092737&sum=17500 0 [08:34:22]StoreToDocumentArchive [08:34:22]shift 375 fd 64115 [08:34:22]save to /storage/0375/doc_00064115 [08:34:22]save last doc name /storage/0375/doc_00064115 to /storage/kkm_last_doc_name [08:34:22]save OK [08:34:22]Clear old archive folders... [08:34:22]Remove dir /storage/0266 [08:34:22]opendir ok [08:34:22]file . [08:34:22]file .. [08:34:22]file doc_1717575838 [08:34:22]remove file /storage/0266/doc_1717575838 [08:34:22]remove dir /storage/0266 [08:34:22]ProcessDocumentItem done err = 0, tmpTLVsize=376 [08:34:22]tlvbuf is 00F9F7A0 [08:34:22]SAM_PROTO_ClearQueue [08:34:22]wFMCommunicate request_size=4 [08:34:22]MH_SAM_APDU [08:34:22]CAPDU: 80 09 00 00 [08:34:22]Write to MH i2c: E2 08 00 65 16 80 09 00 00 00 00 00 00 ED [08:34:22]Write i2c OK [08:34:22]MH_I2C_Read... [08:34:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:22]Read from MH i2c: E2 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: E2 03 00 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: E2 03 00 65 16 00 90 00 EF [08:34:22]RAPDU: 90 00 [08:34:22]wFMCommunicate OK [08:34:22]SAM_PROTO_ClearQueue done [08:34:22]KKMCreateOFDPacket [08:34:22]OFDProtocolAddRootSTLVToBuf [08:34:22]FM_MakeSignedData [08:34:22]FM_MakeSignedData [08:34:22]SAM_PROTO_SignData [08:34:22]wFMCommunicate request_size=4 [08:34:22]MH_SAM_APDU [08:34:22]CAPDU: 80 0D 01 02 [08:34:22]Write to MH i2c: E2 08 00 66 16 80 0D 01 02 00 00 00 00 F5 [08:34:22]Write i2c OK [08:34:22]MH_I2C_Read... [08:34:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:22]Read from MH i2c: E2 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: E2 03 00 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: E2 03 00 66 16 00 90 00 F0 [08:34:22]RAPDU: 90 00 [08:34:22]wFMCommunicate OK [08:34:22]wFMCommunicate request_size=255 [08:34:22]MH_SAM_APDU [08:34:22]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 36 31 30 37 30 38 34 06 04 21 00 45 63 6C 69 70 73 65 20 D0 9B D0 B5 D0 B4 D1 8F D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 [08:34:22]Write to MH i2c: E2 02 01 67 16 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 36 31 30 37 30 38 34 06 04 21 00 45 63 6C 69 70 73 65 20 D0 9B D0 B5 D0 B4 D1 8F D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 00 00 2C [08:34:22]Write i2c OK [08:34:22]MH_I2C_Read... [08:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:22]Read from MH i2c: E2 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: E2 03 00 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: E2 03 00 67 16 00 90 00 F1 [08:34:22]RAPDU: 90 00 [08:34:22]wFMCommunicate OK [08:34:22]wFMCommunicate request_size=135 [08:34:22]MH_SAM_APDU [08:34:22]CAPDU: 80 0D 02 02 82 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 23 00 00 00 F4 03 04 00 10 23 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 73 FA 00 00 35 04 06 00 04 0F 50 C3 50 A9 [08:34:22]Write to MH i2c: E2 8A 00 68 16 80 0D 02 02 82 00 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 23 00 00 00 F4 03 04 00 10 23 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 73 FA 00 00 35 04 06 00 04 0F 50 C3 50 A9 00 00 43 [08:34:22]Write i2c OK [08:34:22]MH_I2C_Read... [08:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:23]Read from MH i2c: E2 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: E2 03 00 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: E2 03 00 68 16 00 90 00 F2 [08:34:23]RAPDU: 90 00 [08:34:23]wFMCommunicate OK [08:34:23]wFMCommunicate request_size=4 [08:34:23]MH_SAM_APDU [08:34:23]CAPDU: 80 0D 03 02 [08:34:23]Write to MH i2c: E2 08 00 69 16 80 0D 03 02 00 00 00 00 FA [08:34:23]Write i2c OK [08:34:23]MH_I2C_Read... [08:34:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:23]Read from MH i2c: E2 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: E2 0B 00 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: E2 0B 00 69 16 00 EE 84 19 89 49 AB 3D A3 90 00 E3 [08:34:23]RAPDU: EE 84 19 89 49 AB 3D A3 90 00 [08:34:23]wFMCommunicate OK [08:34:23]SAM_PROTO_SignData done [08:34:23]FM_MakeSignedData done [08:34:23]CreateOFDProtocolMessage [08:34:23]wFMCommunicate request_size=4 [08:34:23]MH_SAM_APDU [08:34:23]CAPDU: 80 11 00 00 [08:34:23]Write to MH i2c: E2 08 00 6A 16 80 11 00 00 00 00 00 00 FA [08:34:23]Write i2c OK [08:34:23]MH_I2C_Read... [08:34:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:23]Read from MH i2c: E2 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: E2 17 00 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: E2 17 00 6A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4C [08:34:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:34:23]wFMCommunicate OK [08:34:23]CreateOFDProtocolMessage done [08:34:23]OFDSenderStorePacket 64115 [08:34:23]StoreOFDPacket docnum=64115 [08:34:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 8C 01 00 00 9A 85 84 01 B2 B4 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 36 31 30 37 30 38 34 06 04 21 00 45 63 6C 69 70 73 65 20 D0 9B D0 B5 D0 B4 D1 8F D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 23 00 00 00 F4 03 04 00 10 23 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 73 FA 00 00 35 04 06 00 04 0F 50 C3 50 A9 EE 84 19 89 49 AB 3D A3 [08:34:23]CheckFolder [08:34:23]dirname=/storage/ofd_packets [08:34:23]CheckFolder done [08:34:23]ProducePacketName [08:34:23]name=ofd_packets/00064115 [08:34:23]NVStorageSaveData ofd_packets/00064115 [08:34:23]File name is /storage/ofd_packets/00064115 [08:34:23]Write 426 bytes [08:34:23]NVStorageSaveData done [08:34:23]OFDSenderStorePacket done [08:34:23]KKMCreateOFDPacket done [08:34:23]NVStorageSaveData kkm_last_timestamp [08:34:23]File name is /storage/kkm_last_timestamp [08:34:23]Write 4 bytes [08:34:23]NVStorageSaveData done [08:34:23]ExternCall_PrintAddStr [08:34:23]wPrintStart [08:34:23]Write to MH i2c: 01 00 00 6B 16 81 [08:34:23]Write i2c OK [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: 01 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: 01 07 00 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: 01 07 00 6B 16 00 00 00 00 00 FF 0F 96 [08:34:23]RasterBufferAndPrint [08:34:23]line Счет N : (3)73653 [08:34:23]line ИНН: 02508201610067 [08:34:23]line Контрольно-Кассовый Чек [08:34:23]line ПРОДАЖА [08:34:23]line Товар: 2000036230011 [08:34:23]line Кофе Латте XL(GABB TRADE) [08:34:23]line 1.000 * 130.00 [08:34:23]line = 130.00 [08:34:23]line НДС 12% НСП 1% [08:34:23]line > о реализуемом товаре [08:34:23]line Товар: 46107084 [08:34:23]line Eclipse Ледяные ягоды [08:34:23]line 1.000 * 45.00 [08:34:23]line = 45.00 [08:34:23]line НДС 12% НСП 1% [08:34:23]line > о реализуемом товаре [08:34:23]line ИТОГО: 175.00 [08:34:23]line НСП 1% : 1.55 [08:34:23]line НДС 12% : 18.58 [08:34:23]line Наличными: 175.00 [08:34:23]line Безнал.: 0.00 [08:34:23]line Место: АЗС № 117 "Партнер Нефть" [08:34:23]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:34:23]line СНО: Общий режим [08:34:23]line Чек 35 05.06.2024 08:34 [08:34:23]line Смена: 375 ФФД: 1.0 [08:34:23]line ЗНМ: 0300000031 [08:34:23]line РНМ: 0000000000092737 [08:34:23]line Версия ККМ: 001 [08:34:23]line ФМ: 0000000000875074 [08:34:23]line ФД: 64115 [08:34:23]line ФПД: 4463825997993 [08:34:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T083424&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64115&fm=4463825997993&tin=02508201610067®Number=0000000000092737&sum=17500 [08:34:23]OFD Sender: Processing packet 64115 [packets to send 14, broken 13] [08:34:23]ProducePacketName [08:34:23]name=ofd_packets/00064115 [08:34:23]OFD Sender: To server: pG, [08:34:23]CommunicateWithHost lk.salyk.kg:30040 [08:34:23]ConnectInit lk.salyk.kg [08:34:23]line 0 [08:34:23]written 0, free lines is 4095 [08:34:23]Connected sock=10 [08:34:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 8C 01 00 00 9A 85 84 01 B2 B4 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 36 31 30 37 30 38 34 06 04 21 00 45 63 6C 69 70 73 65 20 D0 9B D0 B5 D0 B4 D1 8F D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 23 00 00 00 F4 03 04 00 10 23 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 73 FA 00 00 35 04 06 00 04 0F 50 C3 50 A9 EE 84 19 89 49 AB 3D A3 [08:34:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 57 B9 47 00 17 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 73 FA 00 00 F4 03 04 00 1C CF 5F 66 B6 04 01 00 00 B8 D1 26 A0 21 17 A1 1B [08:34:23]CommunicateWithHost err = 0 [08:34:23]CheckOFDResponse [08:34:23]1017 (14) - 77093643461234 [08:34:23]1041 (16) - 0000000000875074 [08:34:23]1040 (4) - 64115 [08:34:23]1012 (4) - 05.06.2024 02:36 [08:34:23]1206 (1) - 0 [08:34:23]OFD Sender: Remove packet 64115 [08:34:23]ProducePacketName [08:34:23]name=ofd_packets/00064115 [08:34:23]NVStorageDeleteData [08:34:23]Write to MH i2c: 01 00 00 99 16 AF [08:34:23]Write i2c OK [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: 01 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: 01 07 00 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: 01 07 00 99 16 00 00 00 00 00 9E 0C 60 [08:34:23]RasterBufferAndPrint [08:34:23]line [08:34:23]line [08:34:23]line [08:34:23]line [08:34:23]line [08:34:23]written 0, free lines is 3238 [08:34:23]MH_Cut [08:34:23]Write to MH i2c: D1 01 00 A0 16 01 88 [08:34:23]Write i2c OK [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: D1 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: D1 01 00 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: D1 01 00 A0 16 00 87 [08:34:23]Write to MH i2c: 01 00 00 A1 16 B7 [08:34:23]Write i2c OK [08:34:23]MH_I2C_Read... [08:34:24]OFD Sender: No OFD packet to send [08:34:24]*** Cut start [08:34:24]*** Partial cut [08:34:24]*** CUTSNS_PIN = 1 [08:34:24]*** CUTSNS_PIN = 0 [08:34:25]*** Brake cut motor [08:34:25]Read from MH i2c: 01 [08:34:25]MH_I2C_Read... [08:34:25]*** Stop cut motor [08:34:25]*** Cut end [08:34:25]Read from MH i2c: 01 07 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: 01 07 00 A1 16 00 00 00 00 00 FF 0F CC [08:34:25]process_action close_receipt done [08:34:25]requested_data is exist [08:34:25]produce_requested_data [08:34:25]requested_item fm.sn is exist - process it [08:34:25]wFMCommunicate request_size=4 [08:34:25]MH_SAM_APDU [08:34:25]CAPDU: 80 11 00 00 [08:34:25]Write to MH i2c: E2 08 00 A2 16 80 11 00 00 00 00 00 00 32 [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:25]Read from MH i2c: E2 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 17 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 17 00 A2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 84 [08:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:34:25]wFMCommunicate OK [08:34:25]requested_item fd.num is exist - process it [08:34:25]SAM_PROTO_GetFieldsCounters [08:34:25]wFMCommunicate request_size=4 [08:34:25]MH_SAM_APDU [08:34:25]CAPDU: 80 13 00 00 [08:34:25]Write to MH i2c: E2 08 00 A3 16 80 13 00 00 00 00 00 00 35 [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:25]Read from MH i2c: E2 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 62 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 62 00 A3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 73 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [08:34:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 73 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:25]wFMCommunicate OK [08:34:25]SAM_PROTO_GetFieldsCounters done [08:34:25]requested_item shift.num is exist - process it [08:34:25]requested_item shift.opened is exist - process it [08:34:25]req_shift_opened [08:34:25]FM_GetShiftState [08:34:25]SAM_PROTO_GetShiftState [08:34:25]wFMCommunicate request_size=4 [08:34:25]MH_SAM_APDU [08:34:25]CAPDU: 80 13 01 00 [08:34:25]Write to MH i2c: E2 08 00 A4 16 80 13 01 00 00 00 00 00 37 [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:25]Read from MH i2c: E2 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 0E 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 0E 00 A4 16 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 78 [08:34:25]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:34:25]wFMCommunicate OK [08:34:25]SAM_PROTO_GetShiftState done [08:34:25]FM_GetShiftState done [08:34:25]req_shift_opened done [08:34:25]requested_item shift.open_date is exist - process it [08:34:25]req_shift_open_date [08:34:25]req_shift_open_date done [08:34:25]produce_requested_data done [08:34:25]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64115,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [08:34:25]process_action_free close_receipt [08:34:25]json_value_free [08:34:25]json_value_free done [08:34:25]process_json_proto returns [08:34:25]Send response to host [08:34:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64115,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [08:34:25]free response buf [08:34:25]execute_script done [08:34:25]execute_script returns [08:34:25]free content buf [08:34:25]Sock 9.Close socket [08:34:25]Sock 9.Thread stoped [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:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49: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:33]accept exits with 8 [08:49:33]New connection [08:49:33]New thread 3067276644 created [08:49:33]Thread 3067133284 joined [08:49:33]Waiting for new connection... [08:49:33] Sock 8.Parse request [08:49:33]Sock 8.Check first char [08:49:33]Sock 8.First char is OK [08:49:33]request: POST /json_proto HTTP/1.0 [08:49:33]Method: POST [08:49:33]URL: /json_proto [08:49:33]Method is POST - this is cgi request [08:49:33]url: /json_proto [08:49:33]query_string will be loaded in cgi processing [08:49:33]execute_cgi json_proto POST (null) [08:49:33]execute_cgi path=json_proto method=POST [08:49:33]POST find Content-Length [08:49:33]Host: 172.17.60.69:8080 [08:49:33]Content-Length: 1372 [08:49:33]Content-Type: application/json [08:49:33] [08:49:33]POST finish read [08:49:33]Found Content-Length = 1372 [08:49:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73654", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:33]execute_script... [08:49: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)73654", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:33]POST & json_proto [08:49:33]process_json_proto [08:49:33]json parsed OK: [08:49:33]protocol is kg_v1.0 [08:49:33]action value=close_receipt [08:49:33]process_action close_receipt [08:49:33]cmd_close_receipt [08:49:33]MH_GetDate [08:49:33]Write to MH i2c: F0 00 00 A5 16 AA [08:49:33]Write i2c OK [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: F0 [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: F0 09 00 [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: F0 09 00 A5 16 00 A0 26 60 66 D2 83 5F 66 59 [08:49:33]GetLastDocTimeStamp 1717576464 [08:49:33]current date 1717577376 [08:49:33]FM_GetShiftState [08:49:33]SAM_PROTO_GetShiftState [08:49:33]wFMCommunicate request_size=4 [08:49:33]MH_SAM_APDU [08:49:33]CAPDU: 80 13 01 00 [08:49:33]Write to MH i2c: E2 08 00 A6 16 80 13 01 00 00 00 00 00 39 [08:49:33]Write i2c OK [08:49:33]MH_I2C_Read... [08:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:33]Read from MH i2c: E2 [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: E2 0E 00 [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: E2 0E 00 A6 16 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 7A [08:49:33]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:49:33]wFMCommunicate OK [08:49:33]SAM_PROTO_GetShiftState done [08:49:33]FM_GetShiftState done [08:49:33]opened in 1717545925 [08:49:33]opened+sec_in_day 1717632325 [08:49:33]quantity*price = 14100 [08:49:33]sum+1 = 14101 [08:49:33]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 325.00 НСП 1% : 2.88 НДС 12% : 34.50 Наличными: 0.00 Безнал.: 325.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 36 05.06.2024 08:49 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64116 ФПД: 186248206514608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T084936&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64116&fm=186248206514608&tin=02508201610067®Number=0000000000092737&sum=32500 0 [08:49:34]StoreToDocumentArchive [08:49:34]shift 375 fd 64116 [08:49:34]save to /storage/0375/doc_00064116 [08:49:34]save last doc name /storage/0375/doc_00064116 to /storage/kkm_last_doc_name [08:49:34]save OK [08:49:34]Clear old archive folders... [08:49:34]ProcessDocumentItem done err = 0, tmpTLVsize=510 [08:49:34]tlvbuf is 0107E370 [08:49:34]SAM_PROTO_ClearQueue [08:49:34]wFMCommunicate request_size=4 [08:49:34]MH_SAM_APDU [08:49:34]CAPDU: 80 09 00 00 [08:49:34]Write to MH i2c: E2 08 00 B3 16 80 09 00 00 00 00 00 00 3B [08:49:34]Write i2c OK [08:49:34]MH_I2C_Read... [08:49:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:34]Read from MH i2c: E2 [08:49:34]MH_I2C_Read... [08:49:34]Read from MH i2c: E2 03 00 [08:49:34]MH_I2C_Read... [08:49:34]Read from MH i2c: E2 03 00 B3 16 00 90 00 3D [08:49:34]RAPDU: 90 00 [08:49:34]wFMCommunicate OK [08:49:34]SAM_PROTO_ClearQueue done [08:49:34]KKMCreateOFDPacket [08:49:34]OFDProtocolAddRootSTLVToBuf [08:49:34]FM_MakeSignedData [08:49:34]FM_MakeSignedData [08:49:34]SAM_PROTO_SignData [08:49:34]wFMCommunicate request_size=4 [08:49:34]MH_SAM_APDU [08:49:34]CAPDU: 80 0D 01 02 [08:49:34]Write to MH i2c: E2 08 00 B4 16 80 0D 01 02 00 00 00 00 43 [08:49:34]Write i2c OK [08:49:34]MH_I2C_Read... [08:49:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:34]Read from MH i2c: E2 [08:49:34]MH_I2C_Read... [08:49:34]Read from MH i2c: E2 03 00 [08:49:34]MH_I2C_Read... [08:49:34]Read from MH i2c: E2 03 00 B4 16 00 90 00 3E [08:49:34]RAPDU: 90 00 [08:49:34]wFMCommunicate OK [08:49:34]wFMCommunicate request_size=255 [08:49:34]MH_SAM_APDU [08:49:34]CAPDU: 80 0D 02 02 FA 03 00 FE 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 6B 00 8A 04 0D 00 34 36 30 37 [08:49:34]Write to MH i2c: E2 02 01 B5 16 80 0D 02 02 FA 00 03 00 FE 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 6B 00 8A 04 0D 00 34 36 30 37 00 00 77 [08:49:34]Write i2c OK [08:49:34]MH_I2C_Read... [08:49:35]OFD Sender: No OFD packet to send [08:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:35]Read from MH i2c: E2 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 03 00 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 03 00 B5 16 00 90 00 3F [08:49:35]RAPDU: 90 00 [08:49:35]wFMCommunicate OK [08:49:35]wFMCommunicate request_size=255 [08:49:35]MH_SAM_APDU [08:49:35]CAPDU: 80 0D 02 02 FA 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A0 26 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 [08:49:35]Write to MH i2c: E2 02 01 B6 16 80 0D 02 02 FA 00 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A0 26 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 00 00 92 [08:49:35]Write i2c OK [08:49:35]MH_I2C_Read... [08:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:35]Read from MH i2c: E2 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 03 00 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 03 00 B6 16 00 90 00 40 [08:49:35]RAPDU: 90 00 [08:49:35]wFMCommunicate OK [08:49:35]wFMCommunicate request_size=19 [08:49:35]MH_SAM_APDU [08:49:35]CAPDU: 80 0D 02 02 0E 74 FA 00 00 35 04 06 00 A9 64 4A 30 79 B0 [08:49:35]Write to MH i2c: E2 16 00 B7 16 80 0D 02 02 0E 00 74 FA 00 00 35 04 06 00 A9 64 4A 30 79 B0 00 00 C0 [08:49:35]Write i2c OK [08:49:35]MH_I2C_Read... [08:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:35]Read from MH i2c: E2 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 03 00 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 03 00 B7 16 00 90 00 41 [08:49:35]RAPDU: 90 00 [08:49:35]wFMCommunicate OK [08:49:35]wFMCommunicate request_size=4 [08:49:35]MH_SAM_APDU [08:49:35]CAPDU: 80 0D 03 02 [08:49:35]Write to MH i2c: E2 08 00 B8 16 80 0D 03 02 00 00 00 00 49 [08:49:35]Write i2c OK [08:49:35]MH_I2C_Read... [08:49:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:35]Read from MH i2c: E2 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 0B 00 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 0B 00 B8 16 00 10 CD CF DA EA CF 12 4C 90 00 E7 [08:49:35]RAPDU: 10 CD CF DA EA CF 12 4C 90 00 [08:49:35]wFMCommunicate OK [08:49:35]SAM_PROTO_SignData done [08:49:35]FM_MakeSignedData done [08:49:35]CreateOFDProtocolMessage [08:49:35]wFMCommunicate request_size=4 [08:49:35]MH_SAM_APDU [08:49:35]CAPDU: 80 11 00 00 [08:49:35]Write to MH i2c: E2 08 00 B9 16 80 11 00 00 00 00 00 00 49 [08:49:35]Write i2c OK [08:49:35]MH_I2C_Read... [08:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:35]Read from MH i2c: E2 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 17 00 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 17 00 B9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9B [08:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:49:35]wFMCommunicate OK [08:49:35]CreateOFDProtocolMessage done [08:49:35]OFDSenderStorePacket 64116 [08:49:35]StoreOFDPacket docnum=64116 [08:49:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 12 02 00 00 B7 CF 0A 02 20 D8 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A0 26 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 74 FA 00 00 35 04 06 00 A9 64 4A 30 79 B0 10 CD CF DA EA CF 12 4C [08:49:35]CheckFolder [08:49:35]dirname=/storage/ofd_packets [08:49:35]CheckFolder done [08:49:35]ProducePacketName [08:49:35]name=ofd_packets/00064116 [08:49:35]NVStorageSaveData ofd_packets/00064116 [08:49:35]File name is /storage/ofd_packets/00064116 [08:49:35]Write 560 bytes [08:49:35]NVStorageSaveData done [08:49:35]OFDSenderStorePacket done [08:49:35]KKMCreateOFDPacket done [08:49:35]NVStorageSaveData kkm_last_timestamp [08:49:35]File name is /storage/kkm_last_timestamp [08:49:35]OFD Sender: Processing packet 64116 [packets to send 14, broken 13] [08:49:35]ProducePacketName [08:49:35]name=ofd_packets/00064116 [08:49:35]OFD Sender: To server: pG, [08:49:35]CommunicateWithHost lk.salyk.kg:30040 [08:49:35]ConnectInit lk.salyk.kg [08:49:35]Write 4 bytes [08:49:35]NVStorageSaveData done [08:49:35]ExternCall_PrintAddStr [08:49:35]wPrintStart [08:49:35]Write to MH i2c: 01 00 00 BA 16 D0 [08:49:35]Write i2c OK [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: 01 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: 01 07 00 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: 01 07 00 BA 16 00 00 00 00 00 FF 0F E5 [08:49:35]RasterBufferAndPrint [08:49:35]line Счет N : (3)73654 [08:49:35]line ИНН: 02508201610067 [08:49:35]line Контрольно-Кассовый Чек [08:49:35]line ПРОДАЖА [08:49:35]line Товар: 4870216765088 [08:49:35]line Нагр.Таб.Палоч. HEETS Purple Wave [08:49:35]line 1.000 * 141.00 [08:49:35]line = 141.00 [08:49:35]line НДС 12% НСП 1% [08:49:35]line > о реализуемом товаре [08:49:35]line Товар: 2000036220012 [08:49:35]line Кофе Капучино XL(GABB TRADE) [08:49:35]line 1.000 * 125.00 [08:49:35]line = 125.00 [08:49:35]line НДС 12% НСП 1% [08:49:35]line > о реализуемом товаре [08:49:35]line Товар: 4607065001445 [08:49:35]line Шок батончик Snickers 50,5г [08:49:35]line 1.000 * 59.00 [08:49:35]line = 59.00 [08:49:35]line НДС 12% НСП 1% [08:49:35]line > о реализуемом товаре [08:49:35]line ИТОГО: 325.00 [08:49:35]line НСП 1% : 2.88 [08:49:35]line НДС 12% : 34.50 [08:49:35]line Наличными: 0.00 [08:49:35]line Безнал.: 325.00 [08:49:35]line Место: АЗС № 117 "Партнер Нефть" [08:49:35]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:49:35]line СНО: Общий режим [08:49:35]line Чек 36 05.06.2024 08:49 [08:49:35]line Смена: 375 ФФД: 1.0 [08:49:35]line ЗНМ: 0300000031 [08:49:35]line РНМ: 0000000000092737 [08:49:35]line Версия ККМ: 001 [08:49:35]line Платежная система: АКБ Кыргызстан [08:49:35]line ФМ: 0000000000875074 [08:49:35]line ФД: 64116 [08:49:35]line ФПД: 186248206514608 [08:49:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T084936&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64116&fm=186248206514608&tin=02508201610067®Number=0000000000092737&sum=32500 [08:49:35]line 0 [08:49:35]Connected sock=11 [08:49:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 12 02 00 00 B7 CF 0A 02 20 D8 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A0 26 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 74 FA 00 00 35 04 06 00 A9 64 4A 30 79 B0 10 CD CF DA EA CF 12 4C [08:49:35]written 0, free lines is 4095 [08:49:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 8C 3B 47 00 C3 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 74 FA 00 00 F4 03 04 00 AC D2 5F 66 B6 04 01 00 00 27 FE 9F E9 28 C9 06 6E [08:49:36]CommunicateWithHost err = 0 [08:49:36]CheckOFDResponse [08:49:36]1017 (14) - 77093643461234 [08:49:36]1041 (16) - 0000000000875074 [08:49:36]1040 (4) - 64116 [08:49:36]1012 (4) - 05.06.2024 02:51 [08:49:36]1206 (1) - 0 [08:49:36]OFD Sender: Remove packet 64116 [08:49:36]ProducePacketName [08:49:36]name=ofd_packets/00064116 [08:49:36]NVStorageDeleteData [08:49:36]Write to MH i2c: 01 00 00 F2 16 08 [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: 01 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: 01 07 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: 01 07 00 F2 16 00 00 00 00 00 00 0C 1B [08:49:36]RasterBufferAndPrint [08:49:36]line [08:49:36]line [08:49:36]line [08:49:36]line [08:49:36]line [08:49:36]written 0, free lines is 3078 [08:49:36]MH_Cut [08:49:36]Write to MH i2c: D1 01 00 F9 16 01 E1 [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: D1 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: D1 01 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: D1 01 00 F9 16 00 E0 [08:49:36]Write to MH i2c: 01 00 00 FA 16 10 [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]OFD Sender: No OFD packet to send [08:49:37]*** Cut start [08:49:37]*** Partial cut [08:49:37]*** CUTSNS_PIN = 1 [08:49:37]*** CUTSNS_PIN = 0 [08:49:37]*** Brake cut motor [08:49:38]Read from MH i2c: 01 [08:49:38]MH_I2C_Read... [08:49:38]*** Stop cut motor [08:49:38]*** Cut end [08:49:38]Read from MH i2c: 01 07 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: 01 07 00 FA 16 00 00 00 00 00 FF 0F 25 [08:49:38]process_action close_receipt done [08:49:38]requested_data is exist [08:49:38]produce_requested_data [08:49:38]requested_item fm.sn is exist - process it [08:49:38]wFMCommunicate request_size=4 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 11 00 00 [08:49:38]Write to MH i2c: E2 08 00 FB 16 80 11 00 00 00 00 00 00 8B [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 17 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 17 00 FB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DD [08:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:49:38]wFMCommunicate OK [08:49:38]requested_item fd.num is exist - process it [08:49:38]SAM_PROTO_GetFieldsCounters [08:49:38]wFMCommunicate request_size=4 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 13 00 00 [08:49:38]Write to MH i2c: E2 08 00 FC 16 80 13 00 00 00 00 00 00 8E [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 62 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 62 00 FC 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 74 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [08:49:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 74 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:49:38]wFMCommunicate OK [08:49:38]SAM_PROTO_GetFieldsCounters done [08:49:38]requested_item shift.num is exist - process it [08:49:38]requested_item shift.opened is exist - process it [08:49:38]req_shift_opened [08:49:38]FM_GetShiftState [08:49:38]SAM_PROTO_GetShiftState [08:49:38]wFMCommunicate request_size=4 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 13 01 00 [08:49:38]Write to MH i2c: E2 08 00 FD 16 80 13 01 00 00 00 00 00 90 [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 0E 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 0E 00 FD 16 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 D1 [08:49:38]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:49:38]wFMCommunicate OK [08:49:38]SAM_PROTO_GetShiftState done [08:49:38]FM_GetShiftState done [08:49:38]req_shift_opened done [08:49:38]requested_item shift.open_date is exist - process it [08:49:38]req_shift_open_date [08:49:38]req_shift_open_date done [08:49:38]produce_requested_data done [08:49:38]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64116,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [08:49:38]process_action_free close_receipt [08:49:38]json_value_free [08:49:38]json_value_free done [08:49:38]process_json_proto returns [08:49:38]Send response to host [08:49:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64116,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [08:49:38]free response buf [08:49:38]execute_script done [08:49:38]execute_script returns [08:49:38]free content buf [08:49:38]Sock 8.Close socket [08:49:38]Sock 8.Thread stoped [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:07]accept exits with 9 [08:59:07]New connection [08:59:07]New thread 3067133284 created [08:59:07]Thread 3067276644 joined [08:59:07]Waiting for new connection... [08:59:07] Sock 9.Parse request [08:59:07]Sock 9.Check first char [08:59:07]Sock 9.First char is OK [08:59:07]request: POST /json_proto HTTP/1.0 [08:59:07]Method: POST [08:59:07]URL: /json_proto [08:59:07]Method is POST - this is cgi request [08:59:07]url: /json_proto [08:59:07]query_string will be loaded in cgi processing [08:59:07]execute_cgi json_proto POST (null) [08:59:07]execute_cgi path=json_proto method=POST [08:59:07]POST find Content-Length [08:59:07]Host: 172.17.60.69:8080 [08:59:07]Content-Length: 1090 [08:59:07]Content-Type: application/json [08:59:07] [08:59:07]POST finish read [08:59:07]Found Content-Length = 1090 [08:59:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73655", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:07]execute_script... [08:59: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)73655", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:07]POST & json_proto [08:59:07]process_json_proto [08:59:07]json parsed OK: [08:59:07]protocol is kg_v1.0 [08:59:07]action value=close_receipt [08:59:07]process_action close_receipt [08:59:07]cmd_close_receipt [08:59:07]MH_GetDate [08:59:07]Write to MH i2c: F0 00 00 FE 16 03 [08:59:07]Write i2c OK [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: F0 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: F0 09 00 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: F0 09 00 FE 16 00 DE 28 60 66 D2 83 5F 66 F2 [08:59:07]GetLastDocTimeStamp 1717577376 [08:59:07]current date 1717577950 [08:59:07]FM_GetShiftState [08:59:07]SAM_PROTO_GetShiftState [08:59:07]wFMCommunicate request_size=4 [08:59:07]MH_SAM_APDU [08:59:07]CAPDU: 80 13 01 00 [08:59:07]Write to MH i2c: E2 08 00 FF 16 80 13 01 00 00 00 00 00 92 [08:59:07]Write i2c OK [08:59:07]MH_I2C_Read... [08:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:07]Read from MH i2c: E2 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 0E 00 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 0E 00 FF 16 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 D3 [08:59:07]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:59:07]wFMCommunicate OK [08:59:07]SAM_PROTO_GetShiftState done [08:59:07]FM_GetShiftState done [08:59:07]opened in 1717545925 [08:59:07]opened+sec_in_day 1717632325 [08:59:07]quantity*price = 12500 [08:59:07]sum+1 = 12501 [08:59:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 385.00 НСП 1% : 3.41 НДС 12% : 40.88 Наличными: 0.00 Безнал.: 385.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 37 05.06.2024 08:59 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64117 ФПД: 113254242333008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T085910&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64117&fm=113254242333008&tin=02508201610067®Number=0000000000092737&sum=38500 0 [08:59:08]StoreToDocumentArchive [08:59:08]shift 375 fd 64117 [08:59:08]save to /storage/0375/doc_00064117 [08:59:08]save last doc name /storage/0375/doc_00064117 to /storage/kkm_last_doc_name [08:59:08]save OK [08:59:08]Clear old archive folders... [08:59:08]ProcessDocumentItem done err = 0, tmpTLVsize=388 [08:59:08]tlvbuf is B6F10920 [08:59:08]SAM_PROTO_ClearQueue [08:59:08]wFMCommunicate request_size=4 [08:59:08]MH_SAM_APDU [08:59:08]CAPDU: 80 09 00 00 [08:59:08]Write to MH i2c: E2 08 00 0C 17 80 09 00 00 00 00 00 00 95 [08:59:08]Write i2c OK [08:59:08]MH_I2C_Read... [08:59:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:08]Read from MH i2c: E2 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 03 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 03 00 0C 17 00 90 00 97 [08:59:08]RAPDU: 90 00 [08:59:08]wFMCommunicate OK [08:59:08]SAM_PROTO_ClearQueue done [08:59:08]KKMCreateOFDPacket [08:59:08]OFDProtocolAddRootSTLVToBuf [08:59:08]FM_MakeSignedData [08:59:08]FM_MakeSignedData [08:59:08]SAM_PROTO_SignData [08:59:08]wFMCommunicate request_size=4 [08:59:08]MH_SAM_APDU [08:59:08]CAPDU: 80 0D 01 02 [08:59:08]Write to MH i2c: E2 08 00 0D 17 80 0D 01 02 00 00 00 00 9D [08:59:08]Write i2c OK [08:59:08]MH_I2C_Read... [08:59:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:08]Read from MH i2c: E2 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 03 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 03 00 0D 17 00 90 00 98 [08:59:08]RAPDU: 90 00 [08:59:08]wFMCommunicate OK [08:59:08]wFMCommunicate request_size=255 [08:59:08]MH_SAM_APDU [08:59:08]CAPDU: 80 0D 02 02 FA 03 00 84 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 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [08:59:08]Write to MH i2c: E2 02 01 0E 17 80 0D 02 02 FA 00 03 00 84 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 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 22 [08:59:08]Write i2c OK [08:59:08]MH_I2C_Read... [08:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:08]Read from MH i2c: E2 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 03 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 03 00 0E 17 00 90 00 99 [08:59:08]RAPDU: 90 00 [08:59:08]wFMCommunicate OK [08:59:08]wFMCommunicate request_size=147 [08:59:08]MH_SAM_APDU [08:59:08]CAPDU: 80 0D 02 02 8E F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 DE 28 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 75 FA 00 00 35 04 06 00 67 01 0E E2 31 50 [08:59:08]Write to MH i2c: E2 96 00 0F 17 80 0D 02 02 8E 00 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 DE 28 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 75 FA 00 00 35 04 06 00 67 01 0E E2 31 50 00 00 F3 [08:59:08]Write i2c OK [08:59:08]MH_I2C_Read... [08:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:09]Read from MH i2c: E2 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 03 00 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 03 00 0F 17 00 90 00 9A [08:59:09]RAPDU: 90 00 [08:59:09]wFMCommunicate OK [08:59:09]wFMCommunicate request_size=4 [08:59:09]MH_SAM_APDU [08:59:09]CAPDU: 80 0D 03 02 [08:59:09]Write to MH i2c: E2 08 00 10 17 80 0D 03 02 00 00 00 00 A2 [08:59:09]Write i2c OK [08:59:09]MH_I2C_Read... [08:59:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:09]Read from MH i2c: E2 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 0B 00 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 0B 00 10 17 00 05 AC D9 BC 62 70 78 AD 90 00 E0 [08:59:09]RAPDU: 05 AC D9 BC 62 70 78 AD 90 00 [08:59:09]wFMCommunicate OK [08:59:09]SAM_PROTO_SignData done [08:59:09]FM_MakeSignedData done [08:59:09]CreateOFDProtocolMessage [08:59:09]wFMCommunicate request_size=4 [08:59:09]MH_SAM_APDU [08:59:09]CAPDU: 80 11 00 00 [08:59:09]Write to MH i2c: E2 08 00 11 17 80 11 00 00 00 00 00 00 A2 [08:59:09]Write i2c OK [08:59:09]MH_I2C_Read... [08:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:09]Read from MH i2c: E2 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 17 00 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 17 00 11 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F4 [08:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:59:09]wFMCommunicate OK [08:59:09]CreateOFDProtocolMessage done [08:59:09]OFDSenderStorePacket 64117 [08:59:09]StoreOFDPacket docnum=64117 [08:59:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 98 01 00 00 C3 15 90 01 C2 A8 5A 03 01 00 03 00 84 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 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 DE 28 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 75 FA 00 00 35 04 06 00 67 01 0E E2 31 50 05 AC D9 BC 62 70 78 AD [08:59:09]CheckFolder [08:59:09]dirname=/storage/ofd_packets [08:59:09]CheckFolder done [08:59:09]ProducePacketName [08:59:09]name=ofd_packets/00064117 [08:59:09]NVStorageSaveData ofd_packets/00064117 [08:59:09]File name is /storage/ofd_packets/00064117 [08:59:09]Write 438 bytes [08:59:09]NVStorageSaveData done [08:59:09]OFDSenderStorePacket done [08:59:09]KKMCreateOFDPacket done [08:59:09]NVStorageSaveData kkm_last_timestamp [08:59:09]File name is /storage/kkm_last_timestamp [08:59:09]Write 4 bytes [08:59:09]NVStorageSaveData done [08:59:09]ExternCall_PrintAddStr [08:59:09]wPrintStart [08:59:09]Write to MH i2c: 01 00 00 12 17 29 [08:59:09]OFD Sender: Processing packet 64117 [packets to send 14, broken 13] [08:59:09]ProducePacketName [08:59:09]name=ofd_packets/00064117 [08:59:09]OFD Sender: To server: pG, [08:59:09]CommunicateWithHost lk.salyk.kg:30040 [08:59:09]ConnectInit lk.salyk.kg [08:59:09]Write i2c OK [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: 01 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: 01 07 00 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: 01 07 00 12 17 00 00 00 00 00 FF 0F 3E [08:59:09]RasterBufferAndPrint [08:59:09]line Счет N : (3)73655 [08:59:09]line ИНН: 02508201610067 [08:59:09]line Контрольно-Кассовый Чек [08:59:09]line ПРОДАЖА [08:59:09]line Товар: 2000036220012 [08:59:09]line Кофе Капучино XL(GABB TRADE) [08:59:09]line 1.000 * 125.00 [08:59:09]line = 125.00 [08:59:09]line НДС 12% НСП 1% [08:59:09]line > о реализуемом товаре [08:59:09]line Товар: 2000036230011 [08:59:09]line Кофе Латте XL(GABB TRADE) [08:59:09]line 2.000 * 130.00 [08:59:09]line = 260.00 [08:59:09]line НДС 12% НСП 1% [08:59:09]line > о реализуемом товаре [08:59:09]line ИТОГО: 385.00 [08:59:09]line НСП 1% : 3.41 [08:59:09]line НДС 12% : 40.88 [08:59:09]line Наличными: 0.00 [08:59:09]line Безнал.: 385.00 [08:59:09]line Место: АЗС № 117 "Партнер Нефть" [08:59:09]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:59:09]line СНО: Общий режим [08:59:09]line Чек 37 05.06.2024 08:59 [08:59:09]line Смена: 375 ФФД: 1.0 [08:59:09]line ЗНМ: 0300000031 [08:59:09]line РНМ: 0000000000092737 [08:59:09]line Версия ККМ: 001 [08:59:09]line Платежная система: АКБ Кыргызстан [08:59:09]line ФМ: 0000000000875074 [08:59:09]line ФД: 64117 [08:59:09]line ФПД: 113254242333008 [08:59:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T085910&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64117&fm=113254242333008&tin=02508201610067®Number=0000000000092737&sum=38500 [08:59:09]line 0 [08:59:09]written 0, free lines is 4095 [08:59:09]Connected sock=10 [08:59:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 98 01 00 00 C3 15 90 01 C2 A8 5A 03 01 00 03 00 84 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 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 DE 28 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 75 FA 00 00 35 04 06 00 67 01 0E E2 31 50 05 AC D9 BC 62 70 78 AD [08:59:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 3A D8 47 00 D3 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 75 FA 00 00 F4 03 04 00 EA D4 5F 66 B6 04 01 00 00 BA A9 C4 71 09 83 69 68 [08:59:09]CommunicateWithHost err = 0 [08:59:09]CheckOFDResponse [08:59:09]1017 (14) - 77093643461234 [08:59:09]1041 (16) - 0000000000875074 [08:59:09]1040 (4) - 64117 [08:59:09]1012 (4) - 05.06.2024 03:00 [08:59:09]1206 (1) - 0 [08:59:09]OFD Sender: Remove packet 64117 [08:59:09]ProducePacketName [08:59:09]name=ofd_packets/00064117 [08:59:09]NVStorageDeleteData [08:59:10]Write to MH i2c: 01 00 00 43 17 5A [08:59:10]Write i2c OK [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: 01 [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: 01 07 00 [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: 01 07 00 43 17 00 00 00 00 00 84 0C F1 [08:59:10]RasterBufferAndPrint [08:59:10]line [08:59:10]line [08:59:10]line [08:59:10]line [08:59:10]line [08:59:10]written 0, free lines is 3210 [08:59:10]MH_Cut [08:59:10]Write to MH i2c: D1 01 00 4A 17 01 33 [08:59:10]Write i2c OK [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: D1 [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: D1 01 00 [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: D1 01 00 4A 17 00 32 [08:59:10]Write to MH i2c: 01 00 00 4B 17 62 [08:59:10]Write i2c OK [08:59:10]MH_I2C_Read... [08:59:10]OFD Sender: No OFD packet to send [08:59:10]*** Cut start [08:59:10]*** Partial cut [08:59:10]*** CUTSNS_PIN = 1 [08:59:10]*** CUTSNS_PIN = 0 [08:59:11]*** Brake cut motor [08:59:11]Read from MH i2c: 01 [08:59:11]MH_I2C_Read... [08:59:11]*** Stop cut motor [08:59:11]*** Cut end [08:59:11]Read from MH i2c: 01 07 00 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: 01 07 00 4B 17 00 00 00 00 00 FF 0F 77 [08:59:11]process_action close_receipt done [08:59:11]requested_data is exist [08:59:11]produce_requested_data [08:59:11]requested_item fm.sn is exist - process it [08:59:11]wFMCommunicate request_size=4 [08:59:11]MH_SAM_APDU [08:59:11]CAPDU: 80 11 00 00 [08:59:11]Write to MH i2c: E2 08 00 4C 17 80 11 00 00 00 00 00 00 DD [08:59:11]Write i2c OK [08:59:11]MH_I2C_Read... [08:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:11]Read from MH i2c: E2 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 17 00 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 17 00 4C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 2F [08:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:59:11]wFMCommunicate OK [08:59:11]requested_item fd.num is exist - process it [08:59:11]SAM_PROTO_GetFieldsCounters [08:59:11]wFMCommunicate request_size=4 [08:59:11]MH_SAM_APDU [08:59:11]CAPDU: 80 13 00 00 [08:59:11]Write to MH i2c: E2 08 00 4D 17 80 13 00 00 00 00 00 00 E0 [08:59:11]Write i2c OK [08:59:11]MH_I2C_Read... [08:59:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:11]Read from MH i2c: E2 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 62 00 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 62 00 4D 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 75 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [08:59:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 75 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:11]wFMCommunicate OK [08:59:11]SAM_PROTO_GetFieldsCounters done [08:59:11]requested_item shift.num is exist - process it [08:59:11]requested_item shift.opened is exist - process it [08:59:11]req_shift_opened [08:59:11]FM_GetShiftState [08:59:11]SAM_PROTO_GetShiftState [08:59:11]wFMCommunicate request_size=4 [08:59:11]MH_SAM_APDU [08:59:11]CAPDU: 80 13 01 00 [08:59:11]Write to MH i2c: E2 08 00 4E 17 80 13 01 00 00 00 00 00 E2 [08:59:11]Write i2c OK [08:59:11]MH_I2C_Read... [08:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:11]Read from MH i2c: E2 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 0E 00 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 0E 00 4E 17 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 23 [08:59:11]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [08:59:11]wFMCommunicate OK [08:59:11]SAM_PROTO_GetShiftState done [08:59:11]FM_GetShiftState done [08:59:11]req_shift_opened done [08:59:11]requested_item shift.open_date is exist - process it [08:59:11]req_shift_open_date [08:59:11]req_shift_open_date done [08:59:11]produce_requested_data done [08:59:11]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64117,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [08:59:11]process_action_free close_receipt [08:59:11]json_value_free [08:59:11]json_value_free done [08:59:11]process_json_proto returns [08:59:11]Send response to host [08:59:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64117,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [08:59:11]free response buf [08:59:11]execute_script done [08:59:11]execute_script returns [08:59:11]free content buf [08:59:11]Sock 9.Close socket [08:59:11]Sock 9.Thread stoped [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [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:05:32]ConnectInit Can't connect to host [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:51]accept exits with 8 [09:09:51]New connection [09:09:51]New thread 3067276644 created [09:09:51]Thread 3067133284 joined [09:09:51]Waiting for new connection... [09:09:51] Sock 8.Parse request [09:09:51]Sock 8.Check first char [09:09:51]Sock 8.First char is OK [09:09:51]request: POST /json_proto HTTP/1.0 [09:09:51]Method: POST [09:09:51]URL: /json_proto [09:09:51]Method is POST - this is cgi request [09:09:51]url: /json_proto [09:09:51]query_string will be loaded in cgi processing [09:09:51]execute_cgi json_proto POST (null) [09:09:51]execute_cgi path=json_proto method=POST [09:09:51]POST find Content-Length [09:09:51]Host: 172.17.60.69:8080 [09:09:51]Content-Length: 726 [09:09:51]Content-Type: application/json [09:09:51] [09:09:51]POST finish read [09:09:51]Found Content-Length = 726 [09:09:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 64108, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 1.000, "sum" : 72.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 72.00, "total" : 72.00, "payments": [ { "type": 0, "sum" : 72.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:51]execute_script... [09:09:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 64108, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 1.000, "sum" : 72.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 72.00, "total" : 72.00, "payments": [ { "type": 0, "sum" : 72.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:51]POST & json_proto [09:09:51]process_json_proto [09:09:51]json parsed OK: [09:09:51]protocol is kg_v1.0 [09:09:51]action value=close_receipt [09:09:51]process_action close_receipt [09:09:51]cmd_close_receipt [09:09:51]MH_GetDate [09:09:51]Write to MH i2c: F0 00 00 4F 17 55 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: F0 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: F0 09 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: F0 09 00 4F 17 00 62 2B 60 66 D2 83 5F 66 CB [09:09:51]GetLastDocTimeStamp 1717577950 [09:09:51]current date 1717578594 [09:09:51]FM_GetShiftState [09:09:51]SAM_PROTO_GetShiftState [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 13 01 00 [09:09:51]Write to MH i2c: E2 08 00 50 17 80 13 01 00 00 00 00 00 E4 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 0E 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 0E 00 50 17 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 25 [09:09:51]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:09:51]wFMCommunicate OK [09:09:51]SAM_PROTO_GetShiftState done [09:09:51]FM_GetShiftState done [09:09:51]opened in 1717545925 [09:09:51]opened+sec_in_day 1717632325 [09:09:51]quantity*price = 7290 [09:09:51]sum+1 = 7291 [09:09:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.90 ИТОГО: 72.00 НСП 1% : 0.64 НДС 12% : 7.74 Наличными: 72.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 38 05.06.2024 09:09 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФД осн.: 64108 ФМ осн.: 0000000000875074 ФМ: 0000000000875074 ФД: 64118 ФПД: 186209590563809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T090954&type=2&operation_type=1&fn_number=0000000000875074&fd_number=64118&fm=186209590563809&tin=02508201610067®Number=0000000000092737&sum=7200 [09:09:52]StoreToDocumentArchive [09:09:52]shift 375 fd 64118 [09:09:52]save to /storage/0375/doc_00064118 [09:09:52]save last doc name /storage/0375/doc_00064118 to /storage/kkm_last_doc_name [09:09:52]save OK [09:09:52]Clear old archive folders... [09:09:52]ProcessDocumentItem done err = 0, tmpTLVsize=276 [09:09:52]tlvbuf is 0108CA30 [09:09:52]SAM_PROTO_ClearQueue [09:09:52]wFMCommunicate request_size=4 [09:09:52]MH_SAM_APDU [09:09:52]CAPDU: 80 09 00 00 [09:09:52]Write to MH i2c: E2 08 00 5F 17 80 09 00 00 00 00 00 00 E8 [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:52]Read from MH i2c: E2 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: E2 03 00 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: E2 03 00 5F 17 00 90 00 EA [09:09:52]RAPDU: 90 00 [09:09:52]wFMCommunicate OK [09:09:52]SAM_PROTO_ClearQueue done [09:09:52]KKMCreateOFDPacket [09:09:52]OFDProtocolAddRootSTLVToBuf [09:09:52]FM_MakeSignedData [09:09:52]FM_MakeSignedData [09:09:52]SAM_PROTO_SignData [09:09:52]wFMCommunicate request_size=4 [09:09:52]MH_SAM_APDU [09:09:52]CAPDU: 80 0D 01 02 [09:09:52]Write to MH i2c: E2 08 00 60 17 80 0D 01 02 00 00 00 00 F0 [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:52]Read from MH i2c: E2 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: E2 03 00 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: E2 03 00 60 17 00 90 00 EB [09:09:52]RAPDU: 90 00 [09:09:52]wFMCommunicate OK [09:09:52]wFMCommunicate request_size=255 [09:09:52]MH_SAM_APDU [09:09:52]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7A 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 03 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 62 2B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 6C FA 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 [09:09:52]Write to MH i2c: E2 02 01 61 17 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7A 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 03 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 62 2B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 6C FA 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 00 00 70 [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:52]Read from MH i2c: E2 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: E2 03 00 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: E2 03 00 61 17 00 90 00 EC [09:09:52]RAPDU: 90 00 [09:09:52]wFMCommunicate OK [09:09:52]wFMCommunicate request_size=35 [09:09:52]MH_SAM_APDU [09:09:52]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 76 FA 00 00 35 04 06 00 A9 5B 4C 7F D3 E1 [09:09:52]Write to MH i2c: E2 26 00 62 17 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 76 FA 00 00 35 04 06 00 A9 5B 4C 7F D3 E1 00 00 D8 [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:53]Read from MH i2c: E2 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 03 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 03 00 62 17 00 90 00 ED [09:09:53]RAPDU: 90 00 [09:09:53]wFMCommunicate OK [09:09:53]wFMCommunicate request_size=4 [09:09:53]MH_SAM_APDU [09:09:53]CAPDU: 80 0D 03 02 [09:09:53]Write to MH i2c: E2 08 00 63 17 80 0D 03 02 00 00 00 00 F5 [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:53]Read from MH i2c: E2 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 0B 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 0B 00 63 17 00 C6 74 99 D4 F9 A8 D9 F0 90 00 07 [09:09:53]RAPDU: C6 74 99 D4 F9 A8 D9 F0 90 00 [09:09:53]wFMCommunicate OK [09:09:53]SAM_PROTO_SignData done [09:09:53]FM_MakeSignedData done [09:09:53]CreateOFDProtocolMessage [09:09:53]wFMCommunicate request_size=4 [09:09:53]MH_SAM_APDU [09:09:53]CAPDU: 80 11 00 00 [09:09:53]Write to MH i2c: E2 08 00 64 17 80 11 00 00 00 00 00 00 F5 [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:53]Read from MH i2c: E2 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 17 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 17 00 64 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 47 [09:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:09:53]wFMCommunicate OK [09:09:53]CreateOFDProtocolMessage done [09:09:53]OFDSenderStorePacket 64118 [09:09:53]StoreOFDPacket docnum=64118 [09:09:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 67 62 20 01 40 49 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7A 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 03 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 62 2B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 6C FA 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 76 FA 00 00 35 04 06 00 A9 5B 4C 7F D3 E1 C6 74 99 D4 F9 A8 D9 F0 [09:09:53]CheckFolder [09:09:53]dirname=/storage/ofd_packets [09:09:53]CheckFolder done [09:09:53]ProducePacketName [09:09:53]name=ofd_packets/00064118 [09:09:53]NVStorageSaveData ofd_packets/00064118 [09:09:53]File name is /storage/ofd_packets/00064118 [09:09:53]Write 326 bytes [09:09:53]NVStorageSaveData done [09:09:53]OFDSenderStorePacket done [09:09:53]KKMCreateOFDPacket done [09:09:53]NVStorageSaveData kkm_last_timestamp [09:09:53]File name is /storage/kkm_last_timestamp [09:09:53]Write 4 bytes [09:09:53]NVStorageSaveData done [09:09:53]ExternCall_PrintAddStr [09:09:53]wPrintStart [09:09:53]Write to MH i2c: 01 00 00 65 17 7C [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: 01 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: 01 07 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: 01 07 00 65 17 00 00 00 00 00 FF 0F 91 [09:09:53]RasterBufferAndPrint [09:09:53]line Счет N : (1)545374 [09:09:53]line ИНН: 02508201610067 [09:09:53]line Контрольно-Кассовый Чек [09:09:53]line ВОЗВРАТ ПРОДАЖИ [09:09:53]line ТРК (МРК, ГНК) : 51 [09:09:53]line Товар: 2710194210 [09:09:53]line ДТ-К-5 [09:09:53]line 1.000 * 72.90 [09:09:53]line = 72.90 [09:09:53]line НДС 12% НСП 1% [09:09:53]line > о реализуемом товаре [09:09:53]line ОКРУГЛЕНИЕ: -0.90 [09:09:53]line ИТОГО: 72.00 [09:09:53]line НСП 1% : 0.64 [09:09:53]line НДС 12% : 7.74 [09:09:53]line Наличными: 72.00 [09:09:53]line Безнал.: 0.00 [09:09:53]line Место: АЗС № 117 "Партнер Нефть" [09:09:53]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:09:53]line СНО: Общий режим [09:09:53]line Чек 38 05.06.2024 09:09 [09:09:53]line Смена: 375 ФФД: 1.0 [09:09:53]line ЗНМ: 0300000031 [09:09:53]line РНМ: 0000000000092737 [09:09:53]line Версия ККМ: 001 [09:09:53]line ФД осн.: 64108 [09:09:53]line ФМ осн.: 0000000000875074 [09:09:53]line ФМ: 0000000000875074 [09:09:53]line ФД: 64118 [09:09:53]line ФПД: 186209590563809 [09:09:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T090954&type=2&operation_type=1&fn_number=0000000000875074&fd_number=64118&fm=186209590563809&tin=02508201610067®Number=0000000000092737&sum=7200 [09:09:53]OFD Sender: Processing packet 64118 [packets to send 14, broken 13] [09:09:53]ProducePacketName [09:09:53]name=ofd_packets/00064118 [09:09:53]OFD Sender: To server: pG, [09:09:53]CommunicateWithHost lk.salyk.kg:30040 [09:09:53]ConnectInit lk.salyk.kg [09:09:53]written 0, free lines is 4095 [09:09:53]Connected sock=10 [09:09:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 67 62 20 01 40 49 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7A 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 03 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 62 2B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 6C FA 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 76 FA 00 00 35 04 06 00 A9 5B 4C 7F D3 E1 C6 74 99 D4 F9 A8 D9 F0 [09:09:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 14 66 47 00 9A D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 76 FA 00 00 F4 03 04 00 6E D7 5F 66 B6 04 01 00 00 7F F2 95 26 70 45 50 4F [09:09:53]CommunicateWithHost err = 0 [09:09:53]CheckOFDResponse [09:09:53]1017 (14) - 77093643461234 [09:09:53]1041 (16) - 0000000000875074 [09:09:53]1040 (4) - 64118 [09:09:53]1012 (4) - 05.06.2024 03:11 [09:09:53]1206 (1) - 0 [09:09:53]OFD Sender: Remove packet 64118 [09:09:53]ProducePacketName [09:09:53]name=ofd_packets/00064118 [09:09:53]NVStorageDeleteData [09:09:53]Write to MH i2c: 01 00 00 90 17 A7 [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: 01 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: 01 07 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: 01 07 00 90 17 00 00 00 00 00 E7 0C A1 [09:09:53]RasterBufferAndPrint [09:09:53]line [09:09:53]line [09:09:53]line [09:09:53]line [09:09:53]line [09:09:53]written 0, free lines is 3310 [09:09:53]MH_Cut [09:09:53]Write to MH i2c: D1 01 00 97 17 01 80 [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: D1 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: D1 01 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: D1 01 00 97 17 00 7F [09:09:53]Write to MH i2c: 01 00 00 98 17 AF [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:54]OFD Sender: No OFD packet to send [09:09:54]*** Cut start [09:09:54]*** Partial cut [09:09:54]*** CUTSNS_PIN = 1 [09:09:54]*** CUTSNS_PIN = 0 [09:09:55]*** Brake cut motor [09:09:55]Read from MH i2c: 01 [09:09:55]MH_I2C_Read... [09:09:55]*** Stop cut motor [09:09:55]*** Cut end [09:09:55]Read from MH i2c: 01 07 00 [09:09:55]MH_I2C_Read... [09:09:55]Read from MH i2c: 01 07 00 98 17 00 00 00 00 00 FF 0F C4 [09:09:55]process_action close_receipt done [09:09:55]requested_data is exist [09:09:55]produce_requested_data [09:09:55]requested_item fm.sn is exist - process it [09:09:55]wFMCommunicate request_size=4 [09:09:55]MH_SAM_APDU [09:09:55]CAPDU: 80 11 00 00 [09:09:55]Write to MH i2c: E2 08 00 99 17 80 11 00 00 00 00 00 00 2A [09:09:55]Write i2c OK [09:09:55]MH_I2C_Read... [09:09:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:55]Read from MH i2c: E2 [09:09:55]MH_I2C_Read... [09:09:55]Read from MH i2c: E2 17 00 [09:09:55]MH_I2C_Read... [09:09:55]Read from MH i2c: E2 17 00 99 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7C [09:09:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:09:55]wFMCommunicate OK [09:09:55]requested_item fd.num is exist - process it [09:09:55]SAM_PROTO_GetFieldsCounters [09:09:55]wFMCommunicate request_size=4 [09:09:55]MH_SAM_APDU [09:09:55]CAPDU: 80 13 00 00 [09:09:55]Write to MH i2c: E2 08 00 9A 17 80 13 00 00 00 00 00 00 2D [09:09:55]Write i2c OK [09:09:55]MH_I2C_Read... [09:09:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:55]Read from MH i2c: E2 [09:09:55]MH_I2C_Read... [09:09:55]Read from MH i2c: E2 62 00 [09:09:55]MH_I2C_Read... [09:09:55]Read from MH i2c: E2 62 00 9A 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 76 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [09:09:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 76 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:55]wFMCommunicate OK [09:09:55]SAM_PROTO_GetFieldsCounters done [09:09:55]requested_item shift.num is exist - process it [09:09:55]requested_item shift.opened is exist - process it [09:09:55]req_shift_opened [09:09:55]FM_GetShiftState [09:09:55]SAM_PROTO_GetShiftState [09:09:55]wFMCommunicate request_size=4 [09:09:55]MH_SAM_APDU [09:09:55]CAPDU: 80 13 01 00 [09:09:55]Write to MH i2c: E2 08 00 9B 17 80 13 01 00 00 00 00 00 2F [09:09:55]Write i2c OK [09:09:55]MH_I2C_Read... [09:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:55]Read from MH i2c: E2 [09:09:55]MH_I2C_Read... [09:09:55]Read from MH i2c: E2 0E 00 [09:09:55]MH_I2C_Read... [09:09:55]Read from MH i2c: E2 0E 00 9B 17 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 70 [09:09:55]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:09:55]wFMCommunicate OK [09:09:55]SAM_PROTO_GetShiftState done [09:09:55]FM_GetShiftState done [09:09:55]req_shift_opened done [09:09:55]requested_item shift.open_date is exist - process it [09:09:55]req_shift_open_date [09:09:55]req_shift_open_date done [09:09:55]produce_requested_data done [09:09:55]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64118,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [09:09:55]process_action_free close_receipt [09:09:55]json_value_free [09:09:55]json_value_free done [09:09:55]process_json_proto returns [09:09:55]Send response to host [09:09:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64118,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [09:09:55]free response buf [09:09:55]execute_script done [09:09:55]execute_script returns [09:09:55]free content buf [09:09:55]Sock 8.Close socket [09:09:55]Sock 8.Thread stoped [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:35]accept exits with 9 [09:11:35]New connection [09:11:35]New thread 3067133284 created [09:11:35]Thread 3067276644 joined [09:11:35]Waiting for new connection... [09:11:35] Sock 9.Parse request [09:11:35]Sock 9.Check first char [09:11:35]Sock 9.First char is OK [09:11:35]request: POST /json_proto HTTP/1.0 [09:11:35]Method: POST [09:11:35]URL: /json_proto [09:11:35]Method is POST - this is cgi request [09:11:35]url: /json_proto [09:11:35]query_string will be loaded in cgi processing [09:11:35]execute_cgi json_proto POST (null) [09:11:35]execute_cgi path=json_proto method=POST [09:11:35]POST find Content-Length [09:11:35]Host: 172.17.60.69:8080 [09:11:35]Content-Length: 846 [09:11:35]Content-Type: application/json [09:11:35] [09:11:35]POST finish read [09:11:35]Found Content-Length = 846 [09:11:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73656", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:35]execute_script... [09:11: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)73656", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:35]POST & json_proto [09:11:35]process_json_proto [09:11:35]json parsed OK: [09:11:35]protocol is kg_v1.0 [09:11:35]action value=close_receipt [09:11:35]process_action close_receipt [09:11:35]cmd_close_receipt [09:11:35]MH_GetDate [09:11:35]Write to MH i2c: F0 00 00 9C 17 A2 [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: F0 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: F0 09 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: F0 09 00 9C 17 00 CA 2B 60 66 D2 83 5F 66 80 [09:11:35]GetLastDocTimeStamp 1717578594 [09:11:35]current date 1717578698 [09:11:35]FM_GetShiftState [09:11:35]SAM_PROTO_GetShiftState [09:11:35]wFMCommunicate request_size=4 [09:11:35]MH_SAM_APDU [09:11:35]CAPDU: 80 13 01 00 [09:11:35]Write to MH i2c: E2 08 00 9D 17 80 13 01 00 00 00 00 00 31 [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:35]Read from MH i2c: E2 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 0E 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 0E 00 9D 17 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 72 [09:11:35]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:11:35]wFMCommunicate OK [09:11:35]SAM_PROTO_GetShiftState done [09:11:35]FM_GetShiftState done [09:11:35]opened in 1717545925 [09:11:35]opened+sec_in_day 1717632325 [09:11:35]quantity*price = 12500 [09:11:35]sum+1 = 12501 [09:11:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 39 05.06.2024 09:11 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64119 ФПД: 11259219469520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T091138&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64119&fm=11259219469520&tin=02508201610067®Number=0000000000092737&sum=12500 0 [09:11:36]StoreToDocumentArchive [09:11:36]shift 375 fd 64119 [09:11:36]save to /storage/0375/doc_00064119 [09:11:36]save last doc name /storage/0375/doc_00064119 to /storage/kkm_last_doc_name [09:11:36]save OK [09:11:36]Clear old archive folders... [09:11:36]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:11:36]tlvbuf is 00FFFA50 [09:11:36]SAM_PROTO_ClearQueue [09:11:36]wFMCommunicate request_size=4 [09:11:36]MH_SAM_APDU [09:11:36]CAPDU: 80 09 00 00 [09:11:36]Write to MH i2c: E2 08 00 AA 17 80 09 00 00 00 00 00 00 33 [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:36]Read from MH i2c: E2 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 03 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 03 00 AA 17 00 90 00 35 [09:11:36]RAPDU: 90 00 [09:11:36]wFMCommunicate OK [09:11:36]SAM_PROTO_ClearQueue done [09:11:36]KKMCreateOFDPacket [09:11:36]OFDProtocolAddRootSTLVToBuf [09:11:36]FM_MakeSignedData [09:11:36]FM_MakeSignedData [09:11:36]SAM_PROTO_SignData [09:11:36]wFMCommunicate request_size=4 [09:11:36]MH_SAM_APDU [09:11:36]CAPDU: 80 0D 01 02 [09:11:36]Write to MH i2c: E2 08 00 AB 17 80 0D 01 02 00 00 00 00 3B [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:36]Read from MH i2c: E2 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 03 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 03 00 AB 17 00 90 00 36 [09:11:36]RAPDU: 90 00 [09:11:36]wFMCommunicate OK [09:11:36]wFMCommunicate request_size=255 [09:11:36]MH_SAM_APDU [09:11:36]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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 CA 2B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [09:11:36]Write to MH i2c: E2 02 01 AC 17 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 CA 2B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 96 [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:37]Read from MH i2c: E2 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 03 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 03 00 AC 17 00 90 00 37 [09:11:37]RAPDU: 90 00 [09:11:37]wFMCommunicate OK [09:11:37]wFMCommunicate request_size=41 [09:11:37]MH_SAM_APDU [09:11:37]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 77 FA 00 00 35 04 06 00 0A 3D 7D C6 E4 D0 [09:11:37]Write to MH i2c: E2 2C 00 AD 17 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 77 FA 00 00 35 04 06 00 0A 3D 7D C6 E4 D0 00 00 BB [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:37]Read from MH i2c: E2 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 03 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 03 00 AD 17 00 90 00 38 [09:11:37]RAPDU: 90 00 [09:11:37]wFMCommunicate OK [09:11:37]wFMCommunicate request_size=4 [09:11:37]MH_SAM_APDU [09:11:37]CAPDU: 80 0D 03 02 [09:11:37]Write to MH i2c: E2 08 00 AE 17 80 0D 03 02 00 00 00 00 40 [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:37]Read from MH i2c: E2 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 0B 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 0B 00 AE 17 00 D9 34 B1 32 15 45 B5 60 90 00 A0 [09:11:37]RAPDU: D9 34 B1 32 15 45 B5 60 90 00 [09:11:37]wFMCommunicate OK [09:11:37]SAM_PROTO_SignData done [09:11:37]FM_MakeSignedData done [09:11:37]CreateOFDProtocolMessage [09:11:37]wFMCommunicate request_size=4 [09:11:37]MH_SAM_APDU [09:11:37]CAPDU: 80 11 00 00 [09:11:37]Write to MH i2c: E2 08 00 AF 17 80 11 00 00 00 00 00 00 40 [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:37]Read from MH i2c: E2 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 17 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 17 00 AF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 92 [09:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:11:37]wFMCommunicate OK [09:11:37]CreateOFDProtocolMessage done [09:11:37]OFDSenderStorePacket 64119 [09:11:37]StoreOFDPacket docnum=64119 [09:11:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 C2 4C 26 01 81 0B 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 CA 2B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 77 FA 00 00 35 04 06 00 0A 3D 7D C6 E4 D0 D9 34 B1 32 15 45 B5 60 [09:11:37]CheckFolder [09:11:37]dirname=/storage/ofd_packets [09:11:37]CheckFolder done [09:11:37]ProducePacketName [09:11:37]name=ofd_packets/00064119 [09:11:37]NVStorageSaveData ofd_packets/00064119 [09:11:37]File name is /storage/ofd_packets/00064119 [09:11:37]Write 332 bytes [09:11:37]NVStorageSaveData done [09:11:37]OFDSenderStorePacket done [09:11:37]KKMCreateOFDPacket done [09:11:37]NVStorageSaveData kkm_last_timestamp [09:11:37]File name is /storage/kkm_last_timestamp [09:11:37]Write 4 bytes [09:11:37]NVStorageSaveData done [09:11:37]ExternCall_PrintAddStr [09:11:37]wPrintStart [09:11:37]Write to MH i2c: 01 00 00 B0 17 C7 [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: 01 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: 01 07 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: 01 07 00 B0 17 00 00 00 00 00 FF 0F DC [09:11:37]RasterBufferAndPrint [09:11:37]line Счет N : (3)73656 [09:11:37]line ИНН: 02508201610067 [09:11:37]line Контрольно-Кассовый Чек [09:11:37]line ПРОДАЖА [09:11:37]line Товар: 2000036220012 [09:11:37]line Кофе Капучино XL(GABB TRADE) [09:11:37]line 1.000 * 125.00 [09:11:37]line = 125.00 [09:11:37]line НДС 12% НСП 1% [09:11:37]line > о реализуемом товаре [09:11:37]line ИТОГО: 125.00 [09:11:37]line НСП 1% : 1.11 [09:11:37]line НДС 12% : 13.27 [09:11:37]line Наличными: 0.00 [09:11:37]line Безнал.: 125.00 [09:11:37]line Место: АЗС № 117 "Партнер Нефть" [09:11:37]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:11:37]line СНО: Общий режим [09:11:37]line Чек 39 05.06.2024 09:11 [09:11:37]line Смена: 375 ФФД: 1.0 [09:11:37]line ЗНМ: 0300000031 [09:11:37]line РНМ: 0000000000092737 [09:11:37]line Версия ККМ: 001 [09:11:37]line Платежная система: АКБ Кыргызстан [09:11:37]line ФМ: 0000000000875074 [09:11:37]line ФД: 64119 [09:11:37]line ФПД: 11259219469520 [09:11:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T091138&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64119&fm=11259219469520&tin=02508201610067®Number=0000000000092737&sum=12500 [09:11:37]line 0 [09:11:37]OFD Sender: Processing packet 64119 [packets to send 14, broken 13] [09:11:37]ProducePacketName [09:11:37]name=ofd_packets/00064119 [09:11:37]OFD Sender: To server: pG, [09:11:37]CommunicateWithHost lk.salyk.kg:30040 [09:11:37]ConnectInit lk.salyk.kg [09:11:37]written 0, free lines is 4095 [09:11:37]Connected sock=10 [09:11:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 C2 4C 26 01 81 0B 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 CA 2B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 77 FA 00 00 35 04 06 00 0A 3D 7D C6 E4 D0 D9 34 B1 32 15 45 B5 60 [09:11:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D7 EB 47 00 0E 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 77 FA 00 00 F4 03 04 00 D6 D7 5F 66 B6 04 01 00 00 19 AB 39 F8 3C C4 C6 33 [09:11:37]CommunicateWithHost err = 0 [09:11:37]CheckOFDResponse [09:11:37]1017 (14) - 77093643461234 [09:11:37]1041 (16) - 0000000000875074 [09:11:37]1040 (4) - 64119 [09:11:37]1012 (4) - 05.06.2024 03:13 [09:11:37]1206 (1) - 0 [09:11:37]OFD Sender: Remove packet 64119 [09:11:37]ProducePacketName [09:11:37]name=ofd_packets/00064119 [09:11:37]NVStorageDeleteData [09:11:38]Write to MH i2c: 01 00 00 DB 17 F2 [09:11:38]Write i2c OK [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: 01 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: 01 07 00 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: 01 07 00 DB 17 00 00 00 00 00 CA 0C CF [09:11:38]RasterBufferAndPrint [09:11:38]line [09:11:38]line [09:11:38]line [09:11:38]line [09:11:38]line [09:11:38]written 0, free lines is 3280 [09:11:38]MH_Cut [09:11:38]Write to MH i2c: D1 01 00 E2 17 01 CB [09:11:38]Write i2c OK [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: D1 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: D1 01 00 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: D1 01 00 E2 17 00 CA [09:11:38]Write to MH i2c: 01 00 00 E3 17 FA [09:11:38]Write i2c OK [09:11:38]MH_I2C_Read... [09:11:38]OFD Sender: No OFD packet to send [09:11:38]*** Cut start [09:11:38]*** Partial cut [09:11:38]*** CUTSNS_PIN = 1 [09:11:38]*** CUTSNS_PIN = 0 [09:11:39]*** Brake cut motor [09:11:39]Read from MH i2c: 01 [09:11:39]MH_I2C_Read... [09:11:39]*** Stop cut motor [09:11:39]*** Cut end [09:11:39]Read from MH i2c: 01 07 00 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: 01 07 00 E3 17 00 00 00 00 00 FF 0F 0F [09:11:39]process_action close_receipt done [09:11:39]requested_data is exist [09:11:39]produce_requested_data [09:11:39]requested_item fm.sn is exist - process it [09:11:39]wFMCommunicate request_size=4 [09:11:39]MH_SAM_APDU [09:11:39]CAPDU: 80 11 00 00 [09:11:39]Write to MH i2c: E2 08 00 E4 17 80 11 00 00 00 00 00 00 75 [09:11:39]Write i2c OK [09:11:39]MH_I2C_Read... [09:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:39]Read from MH i2c: E2 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 17 00 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 17 00 E4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C7 [09:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:11:39]wFMCommunicate OK [09:11:39]requested_item fd.num is exist - process it [09:11:39]SAM_PROTO_GetFieldsCounters [09:11:39]wFMCommunicate request_size=4 [09:11:39]MH_SAM_APDU [09:11:39]CAPDU: 80 13 00 00 [09:11:39]Write to MH i2c: E2 08 00 E5 17 80 13 00 00 00 00 00 00 78 [09:11:39]Write i2c OK [09:11:39]MH_I2C_Read... [09:11:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:39]Read from MH i2c: E2 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 62 00 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 62 00 E5 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 77 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [09:11:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 77 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:39]wFMCommunicate OK [09:11:39]SAM_PROTO_GetFieldsCounters done [09:11:39]requested_item shift.num is exist - process it [09:11:39]requested_item shift.opened is exist - process it [09:11:39]req_shift_opened [09:11:39]FM_GetShiftState [09:11:39]SAM_PROTO_GetShiftState [09:11:39]wFMCommunicate request_size=4 [09:11:39]MH_SAM_APDU [09:11:39]CAPDU: 80 13 01 00 [09:11:39]Write to MH i2c: E2 08 00 E6 17 80 13 01 00 00 00 00 00 7A [09:11:39]Write i2c OK [09:11:39]MH_I2C_Read... [09:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:39]Read from MH i2c: E2 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 0E 00 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 0E 00 E6 17 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 BB [09:11:39]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:11:39]wFMCommunicate OK [09:11:39]SAM_PROTO_GetShiftState done [09:11:39]FM_GetShiftState done [09:11:39]req_shift_opened done [09:11:39]requested_item shift.open_date is exist - process it [09:11:39]req_shift_open_date [09:11:39]req_shift_open_date done [09:11:39]produce_requested_data done [09:11:39]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64119,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [09:11:39]process_action_free close_receipt [09:11:39]json_value_free [09:11:39]json_value_free done [09:11:39]process_json_proto returns [09:11:39]Send response to host [09:11:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64119,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [09:11:39]free response buf [09:11:39]execute_script done [09:11:39]execute_script returns [09:11:39]free content buf [09:11:39]Sock 9.Close socket [09:11:39]Sock 9.Thread stoped [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:57]recv_with_timeout no data received [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:56]accept exits with 8 [09:28:56]New connection [09:28:56]New thread 3067276644 created [09:28:56]Thread 3067133284 joined [09:28:56]Waiting for new connection... [09:28:56] Sock 8.Parse request [09:28:56]Sock 8.Check first char [09:28:56]Sock 8.First char is OK [09:28:56]request: POST /json_proto HTTP/1.0 [09:28:56]Method: POST [09:28:56]URL: /json_proto [09:28:56]Method is POST - this is cgi request [09:28:56]url: /json_proto [09:28:56]query_string will be loaded in cgi processing [09:28:56]execute_cgi json_proto POST (null) [09:28:56]execute_cgi path=json_proto method=POST [09:28:56]POST find Content-Length [09:28:56]Host: 172.17.60.69:8080 [09:28:56]Content-Length: 708 [09:28:56]Content-Type: application/json [09:28:56] [09:28:56]POST finish read [09:28:56]Found Content-Length = 708 [09:28:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73657", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "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" ] } } [09:28:56]execute_script... [09:28:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73657", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "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" ] } } [09:28:56]POST & json_proto [09:28:56]process_json_proto [09:28:56]json parsed OK: [09:28:56]protocol is kg_v1.0 [09:28:56]action value=close_receipt [09:28:56]process_action close_receipt [09:28:56]cmd_close_receipt [09:28:56]MH_GetDate [09:28:56]Write to MH i2c: F0 00 00 E7 17 ED [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: F0 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: F0 09 00 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: F0 09 00 E7 17 00 DB 2F 60 66 D2 83 5F 66 E0 [09:28:56]GetLastDocTimeStamp 1717578698 [09:28:56]current date 1717579739 [09:28:56]FM_GetShiftState [09:28:56]SAM_PROTO_GetShiftState [09:28:56]wFMCommunicate request_size=4 [09:28:56]MH_SAM_APDU [09:28:56]CAPDU: 80 13 01 00 [09:28:56]Write to MH i2c: E2 08 00 E8 17 80 13 01 00 00 00 00 00 7C [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:56]Read from MH i2c: E2 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E2 0E 00 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E2 0E 00 E8 17 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 BD [09:28:56]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:28:56]wFMCommunicate OK [09:28:56]SAM_PROTO_GetShiftState done [09:28:56]FM_GetShiftState done [09:28:56]opened in 1717545925 [09:28:56]opened+sec_in_day 1717632325 [09:28:56]quantity*price = 9500 [09:28:56]sum+1 = 9501 [09:28:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 40 05.06.2024 09:28 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64120 ФПД: 93696371708304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T092859&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64120&fm=93696371708304&tin=02508201610067®Number=0000000000092737&sum=9500 0 [09:28:57]StoreToDocumentArchive [09:28:57]shift 375 fd 64120 [09:28:57]save to /storage/0375/doc_00064120 [09:28:57]save last doc name /storage/0375/doc_00064120 to /storage/kkm_last_doc_name [09:28:57]save OK [09:28:57]Clear old archive folders... [09:28:57]ProcessDocumentItem done err = 0, tmpTLVsize=304 [09:28:57]tlvbuf is 010260A0 [09:28:57]SAM_PROTO_ClearQueue [09:28:57]wFMCommunicate request_size=4 [09:28:57]MH_SAM_APDU [09:28:57]CAPDU: 80 09 00 00 [09:28:57]Write to MH i2c: E2 08 00 F5 17 80 09 00 00 00 00 00 00 7E [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:57]Read from MH i2c: E2 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 03 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 03 00 F5 17 00 90 00 80 [09:28:57]RAPDU: 90 00 [09:28:57]wFMCommunicate OK [09:28:57]SAM_PROTO_ClearQueue done [09:28:57]KKMCreateOFDPacket [09:28:57]OFDProtocolAddRootSTLVToBuf [09:28:57]FM_MakeSignedData [09:28:57]FM_MakeSignedData [09:28:57]SAM_PROTO_SignData [09:28:57]wFMCommunicate request_size=4 [09:28:57]MH_SAM_APDU [09:28:57]CAPDU: 80 0D 01 02 [09:28:57]Write to MH i2c: E2 08 00 F6 17 80 0D 01 02 00 00 00 00 86 [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:57]Read from MH i2c: E2 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 03 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 03 00 F6 17 00 90 00 81 [09:28:57]RAPDU: 90 00 [09:28:57]wFMCommunicate OK [09:28:57]wFMCommunicate request_size=255 [09:28:57]MH_SAM_APDU [09:28:57]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 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 28 00 00 00 F4 03 04 00 DB 2F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 [09:28:57]Write to MH i2c: E2 02 01 F7 17 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 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 28 00 00 00 F4 03 04 00 DB 2F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 00 00 3C [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:57]Read from MH i2c: E2 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 03 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 03 00 F7 17 00 90 00 82 [09:28:57]RAPDU: 90 00 [09:28:57]wFMCommunicate OK [09:28:57]wFMCommunicate request_size=63 [09:28:57]MH_SAM_APDU [09:28:57]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 78 FA 00 00 35 04 06 00 55 37 62 F3 D1 90 [09:28:57]Write to MH i2c: E2 42 00 F8 17 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 78 FA 00 00 35 04 06 00 55 37 62 F3 D1 90 00 00 89 [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:57]Read from MH i2c: E2 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 03 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 03 00 F8 17 00 90 00 83 [09:28:57]RAPDU: 90 00 [09:28:57]wFMCommunicate OK [09:28:57]wFMCommunicate request_size=4 [09:28:57]MH_SAM_APDU [09:28:57]CAPDU: 80 0D 03 02 [09:28:57]Write to MH i2c: E2 08 00 F9 17 80 0D 03 02 00 00 00 00 8B [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:57]Read from MH i2c: E2 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 0B 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 0B 00 F9 17 00 97 61 C3 92 A5 8A BD 5C 90 00 21 [09:28:57]RAPDU: 97 61 C3 92 A5 8A BD 5C 90 00 [09:28:57]wFMCommunicate OK [09:28:57]SAM_PROTO_SignData done [09:28:57]FM_MakeSignedData done [09:28:57]CreateOFDProtocolMessage [09:28:57]wFMCommunicate request_size=4 [09:28:57]MH_SAM_APDU [09:28:57]CAPDU: 80 11 00 00 [09:28:57]Write to MH i2c: E2 08 00 FA 17 80 11 00 00 00 00 00 00 8B [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:57]Read from MH i2c: E2 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 17 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 17 00 FA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DD [09:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:28:57]wFMCommunicate OK [09:28:57]CreateOFDProtocolMessage done [09:28:57]OFDSenderStorePacket 64120 [09:28:57]StoreOFDPacket docnum=64120 [09:28:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 44 01 00 00 FE 5B 3C 01 99 70 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 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 28 00 00 00 F4 03 04 00 DB 2F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 78 FA 00 00 35 04 06 00 55 37 62 F3 D1 90 97 61 C3 92 A5 8A BD 5C [09:28:57]CheckFolder [09:28:57]dirname=/storage/ofd_packets [09:28:57]CheckFolder done [09:28:57]ProducePacketName [09:28:57]name=ofd_packets/00064120 [09:28:57]NVStorageSaveData ofd_packets/00064120 [09:28:57]File name is /storage/ofd_packets/00064120 [09:28:57]Write 354 bytes [09:28:57]NVStorageSaveData done [09:28:57]OFDSenderStorePacket done [09:28:57]KKMCreateOFDPacket done [09:28:57]NVStorageSaveData kkm_last_timestamp [09:28:57]File name is /storage/kkm_last_timestamp [09:28:57]Write 4 bytes [09:28:57]NVStorageSaveData done [09:28:57]ExternCall_PrintAddStr [09:28:57]wPrintStart [09:28:57]Write to MH i2c: 01 00 00 FB 17 12 [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: 01 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: 01 07 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: 01 07 00 FB 17 00 00 00 00 00 FF 0F 27 [09:28:57]RasterBufferAndPrint [09:28:57]line Счет N : (3)73657 [09:28:57]line ИНН: 02508201610067 [09:28:57]line Контрольно-Кассовый Чек [09:28:57]line ПРОДАЖА [09:28:57]line Товар: 4700000480302 [09:28:57]line Напиток энерг Nitro манго-клуб 0.45 ж/б [09:28:57]line 1.000 * 95.00 [09:28:57]line = 95.00 [09:28:57]line НДС 12% НСП 1% [09:28:57]line > о реализуемом товаре [09:28:57]line ИТОГО: 95.00 [09:28:57]line НСП 1% : 0.84 [09:28:57]line НДС 12% : 10.09 [09:28:57]line Наличными: 95.00 [09:28:57]line Безнал.: 0.00 [09:28:57]line Место: АЗС № 117 "Партнер Нефть" [09:28:57]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:28:57]line СНО: Общий режим [09:28:57]line Чек 40 05.06.2024 09:28 [09:28:57]line Смена: 375 ФФД: 1.0 [09:28:57]line ЗНМ: 0300000031 [09:28:57]line РНМ: 0000000000092737 [09:28:57]line Версия ККМ: 001 [09:28:57]line ФМ: 0000000000875074 [09:28:57]line ФД: 64120 [09:28:57]line ФПД: 93696371708304 [09:28:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T092859&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64120&fm=93696371708304&tin=02508201610067®Number=0000000000092737&sum=9500 [09:28:58]line 0 [09:28:58]OFD Sender: Processing packet 64120 [packets to send 14, broken 13] [09:28:58]ProducePacketName [09:28:58]name=ofd_packets/00064120 [09:28:58]OFD Sender: To server: pG, [09:28:58]CommunicateWithHost lk.salyk.kg:30040 [09:28:58]ConnectInit lk.salyk.kg [09:28:58]written 0, free lines is 4095 [09:28:58]Connected sock=10 [09:28:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 44 01 00 00 FE 5B 3C 01 99 70 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 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 28 00 00 00 F4 03 04 00 DB 2F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 78 FA 00 00 35 04 06 00 55 37 62 F3 D1 90 97 61 C3 92 A5 8A BD 5C [09:28:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 FF 27 47 00 54 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 78 FA 00 00 F4 03 04 00 E7 DB 5F 66 B6 04 01 00 00 5C 4F D9 DB F9 A8 1B 53 [09:28:58]CommunicateWithHost err = 0 [09:28:58]CheckOFDResponse [09:28:58]1017 (14) - 77093643461234 [09:28:58]1041 (16) - 0000000000875074 [09:28:58]1040 (4) - 64120 [09:28:58]1012 (4) - 05.06.2024 03:30 [09:28:58]1206 (1) - 0 [09:28:58]OFD Sender: Remove packet 64120 [09:28:58]ProducePacketName [09:28:58]name=ofd_packets/00064120 [09:28:58]NVStorageDeleteData [09:28:58]Write to MH i2c: 01 00 00 24 18 3C [09:28:58]Write i2c OK [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: 01 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: 01 07 00 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: 01 07 00 24 18 00 00 00 00 00 E0 0C 2F [09:28:58]RasterBufferAndPrint [09:28:58]line [09:28:58]line [09:28:58]line [09:28:58]line [09:28:58]line [09:28:58]written 0, free lines is 3302 [09:28:58]MH_Cut [09:28:58]Write to MH i2c: D1 01 00 2B 18 01 15 [09:28:58]Write i2c OK [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: D1 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: D1 01 00 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: D1 01 00 2B 18 00 14 [09:28:58]Write to MH i2c: 01 00 00 2C 18 44 [09:28:58]Write i2c OK [09:28:58]MH_I2C_Read... [09:28:59]OFD Sender: No OFD packet to send [09:28:59]*** Cut start [09:28:59]*** Partial cut [09:28:59]*** CUTSNS_PIN = 1 [09:28:59]*** CUTSNS_PIN = 0 [09:28:59]*** Brake cut motor [09:29:00]Read from MH i2c: 01 [09:29:00]MH_I2C_Read... [09:29:00]*** Stop cut motor [09:29:00]*** Cut end [09:29:00]Read from MH i2c: 01 07 00 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: 01 07 00 2C 18 00 00 00 00 00 FF 0F 59 [09:29:00]process_action close_receipt done [09:29:00]requested_data is exist [09:29:00]produce_requested_data [09:29:00]requested_item fm.sn is exist - process it [09:29:00]wFMCommunicate request_size=4 [09:29:00]MH_SAM_APDU [09:29:00]CAPDU: 80 11 00 00 [09:29:00]Write to MH i2c: E2 08 00 2D 18 80 11 00 00 00 00 00 00 BF [09:29:00]Write i2c OK [09:29:00]MH_I2C_Read... [09:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:00]Read from MH i2c: E2 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 17 00 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 17 00 2D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 11 [09:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:29:00]wFMCommunicate OK [09:29:00]requested_item fd.num is exist - process it [09:29:00]SAM_PROTO_GetFieldsCounters [09:29:00]wFMCommunicate request_size=4 [09:29:00]MH_SAM_APDU [09:29:00]CAPDU: 80 13 00 00 [09:29:00]Write to MH i2c: E2 08 00 2E 18 80 13 00 00 00 00 00 00 C2 [09:29:00]Write i2c OK [09:29:00]MH_I2C_Read... [09:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:00]Read from MH i2c: E2 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 62 00 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 62 00 2E 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 78 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [09:29:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 78 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:00]wFMCommunicate OK [09:29:00]SAM_PROTO_GetFieldsCounters done [09:29:00]requested_item shift.num is exist - process it [09:29:00]requested_item shift.opened is exist - process it [09:29:00]req_shift_opened [09:29:00]FM_GetShiftState [09:29:00]SAM_PROTO_GetShiftState [09:29:00]wFMCommunicate request_size=4 [09:29:00]MH_SAM_APDU [09:29:00]CAPDU: 80 13 01 00 [09:29:00]Write to MH i2c: E2 08 00 2F 18 80 13 01 00 00 00 00 00 C4 [09:29:00]Write i2c OK [09:29:00]MH_I2C_Read... [09:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:00]Read from MH i2c: E2 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 0E 00 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 0E 00 2F 18 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 05 [09:29:00]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:29:00]wFMCommunicate OK [09:29:00]SAM_PROTO_GetShiftState done [09:29:00]FM_GetShiftState done [09:29:00]req_shift_opened done [09:29:00]requested_item shift.open_date is exist - process it [09:29:00]req_shift_open_date [09:29:00]req_shift_open_date done [09:29:00]produce_requested_data done [09:29:00]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64120,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [09:29:00]process_action_free close_receipt [09:29:00]json_value_free [09:29:00]json_value_free done [09:29:00]process_json_proto returns [09:29:00]Send response to host [09:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64120,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [09:29:00]free response buf [09:29:00]execute_script done [09:29:00]execute_script returns [09:29:00]free content buf [09:29:00]Sock 8.Close socket [09:29:00]Sock 8.Thread stoped [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:11]accept exits with 9 [09:36:11]New connection [09:36:11]New thread 3067133284 created [09:36:11]Thread 3067276644 joined [09:36:11]Waiting for new connection... [09:36:11] Sock 9.Parse request [09:36:11]Sock 9.Check first char [09:36:11]Sock 9.First char is OK [09:36:11]request: POST /json_proto HTTP/1.0 [09:36:11]Method: POST [09:36:11]URL: /json_proto [09:36:11]Method is POST - this is cgi request [09:36:11]url: /json_proto [09:36:11]query_string will be loaded in cgi processing [09:36:11]execute_cgi json_proto POST (null) [09:36:11]execute_cgi path=json_proto method=POST [09:36:11]POST find Content-Length [09:36:11]Host: 172.17.60.69:8080 [09:36:11]Content-Length: 656 [09:36:11]Content-Type: application/json [09:36:11] [09:36:11]POST finish read [09:36:11]Found Content-Length = 656 [09:36:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73658", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 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" ] } } [09:36:11]execute_script... [09:36:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73658", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 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" ] } } [09:36:11]POST & json_proto [09:36:11]process_json_proto [09:36:11]json parsed OK: [09:36:11]protocol is kg_v1.0 [09:36:11]action value=close_receipt [09:36:11]process_action close_receipt [09:36:11]cmd_close_receipt [09:36:11]MH_GetDate [09:36:11]Write to MH i2c: F0 00 00 30 18 37 [09:36:11]Write i2c OK [09:36:11]MH_I2C_Read... [09:36:11]Read from MH i2c: F0 [09:36:11]MH_I2C_Read... [09:36:11]Read from MH i2c: F0 09 00 [09:36:11]MH_I2C_Read... [09:36:11]Read from MH i2c: F0 09 00 30 18 00 8E 31 60 66 D2 83 5F 66 DF [09:36:11]GetLastDocTimeStamp 1717579739 [09:36:11]current date 1717580174 [09:36:11]FM_GetShiftState [09:36:11]SAM_PROTO_GetShiftState [09:36:11]wFMCommunicate request_size=4 [09:36:11]MH_SAM_APDU [09:36:11]CAPDU: 80 13 01 00 [09:36:11]Write to MH i2c: E2 08 00 31 18 80 13 01 00 00 00 00 00 C6 [09:36:11]Write i2c OK [09:36:11]MH_I2C_Read... [09:36:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:11]Read from MH i2c: E2 [09:36:11]MH_I2C_Read... [09:36:11]Read from MH i2c: E2 0E 00 [09:36:11]MH_I2C_Read... [09:36:11]Read from MH i2c: E2 0E 00 31 18 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 07 [09:36:11]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:36:11]wFMCommunicate OK [09:36:11]SAM_PROTO_GetShiftState done [09:36:11]FM_GetShiftState done [09:36:11]opened in 1717545925 [09:36:11]opened+sec_in_day 1717632325 [09:36:11]quantity*price = 8500 [09:36:11]sum+1 = 8501 [09:36:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 41 05.06.2024 09:36 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64121 ФПД: 240624904426774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T093614&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64121&fm=240624904426774&tin=02508201610067®Number=0000000000092737&sum=8500 0 [09:36:12]StoreToDocumentArchive [09:36:12]shift 375 fd 64121 [09:36:12]save to /storage/0375/doc_00064121 [09:36:12]save last doc name /storage/0375/doc_00064121 to /storage/kkm_last_doc_name [09:36:12]save OK [09:36:12]Clear old archive folders... [09:36:12]ProcessDocumentItem done err = 0, tmpTLVsize=288 [09:36:12]tlvbuf is 00FFF9A0 [09:36:12]SAM_PROTO_ClearQueue [09:36:12]wFMCommunicate request_size=4 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 09 00 00 [09:36:12]Write to MH i2c: E2 08 00 3E 18 80 09 00 00 00 00 00 00 C8 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 3E 18 00 90 00 CA [09:36:12]RAPDU: 90 00 [09:36:12]wFMCommunicate OK [09:36:12]SAM_PROTO_ClearQueue done [09:36:12]KKMCreateOFDPacket [09:36:12]OFDProtocolAddRootSTLVToBuf [09:36:12]FM_MakeSignedData [09:36:12]FM_MakeSignedData [09:36:12]SAM_PROTO_SignData [09:36:12]wFMCommunicate request_size=4 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 0D 01 02 [09:36:12]Write to MH i2c: E2 08 00 3F 18 80 0D 01 02 00 00 00 00 D0 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 3F 18 00 90 00 CB [09:36:12]RAPDU: 90 00 [09:36:12]wFMCommunicate OK [09:36:12]wFMCommunicate request_size=255 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 8E 31 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [09:36:12]Write to MH i2c: E2 02 01 40 18 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 8E 31 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 BE [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 40 18 00 90 00 CC [09:36:12]RAPDU: 90 00 [09:36:12]wFMCommunicate OK [09:36:12]wFMCommunicate request_size=47 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 0D 02 02 2A 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 79 FA 00 00 35 04 06 00 DA D8 D9 F3 D5 16 [09:36:12]Write to MH i2c: E2 32 00 41 18 80 0D 02 02 2A 00 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 79 FA 00 00 35 04 06 00 DA D8 D9 F3 D5 16 00 00 71 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 41 18 00 90 00 CD [09:36:12]RAPDU: 90 00 [09:36:12]wFMCommunicate OK [09:36:12]wFMCommunicate request_size=4 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 0D 03 02 [09:36:12]Write to MH i2c: E2 08 00 42 18 80 0D 03 02 00 00 00 00 D5 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 0B 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 0B 00 42 18 00 A3 4C 48 AF DB 1D DA A0 90 00 2E [09:36:12]RAPDU: A3 4C 48 AF DB 1D DA A0 90 00 [09:36:12]wFMCommunicate OK [09:36:12]SAM_PROTO_SignData done [09:36:12]FM_MakeSignedData done [09:36:12]CreateOFDProtocolMessage [09:36:12]wFMCommunicate request_size=4 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 11 00 00 [09:36:12]Write to MH i2c: E2 08 00 43 18 80 11 00 00 00 00 00 00 D5 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 17 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 17 00 43 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 27 [09:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:36:12]wFMCommunicate OK [09:36:12]CreateOFDProtocolMessage done [09:36:12]OFDSenderStorePacket 64121 [09:36:12]StoreOFDPacket docnum=64121 [09:36:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 34 01 00 00 7D 70 2C 01 31 51 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 8E 31 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 79 FA 00 00 35 04 06 00 DA D8 D9 F3 D5 16 A3 4C 48 AF DB 1D DA A0 [09:36:12]CheckFolder [09:36:12]dirname=/storage/ofd_packets [09:36:12]CheckFolder done [09:36:12]ProducePacketName [09:36:12]name=ofd_packets/00064121 [09:36:12]NVStorageSaveData ofd_packets/00064121 [09:36:12]File name is /storage/ofd_packets/00064121 [09:36:12]Write 338 bytes [09:36:12]NVStorageSaveData done [09:36:12]OFDSenderStorePacket done [09:36:12]KKMCreateOFDPacket done [09:36:12]NVStorageSaveData kkm_last_timestamp [09:36:12]File name is /storage/kkm_last_timestamp [09:36:12]Write 4 bytes [09:36:12]NVStorageSaveData done [09:36:12]ExternCall_PrintAddStr [09:36:12]wPrintStart [09:36:12]Write to MH i2c: 01 00 00 44 18 5C [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: 01 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: 01 07 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: 01 07 00 44 18 00 00 00 00 00 FF 0F 71 [09:36:12]RasterBufferAndPrint [09:36:12]line Счет N : (3)73658 [09:36:12]line ИНН: 02508201610067 [09:36:12]line Контрольно-Кассовый Чек [09:36:12]line ПРОДАЖА [09:36:12]line Товар: 4700000481453 [09:36:12]line Напиток энерг Nitro Max 0,45 ж/б [09:36:12]line 1.000 * 85.00 [09:36:12]line = 85.00 [09:36:12]line НДС 12% НСП 1% [09:36:12]line > о реализуемом товаре [09:36:12]line ИТОГО: 85.00 [09:36:12]line НСП 1% : 0.75 [09:36:12]line НДС 12% : 9.03 [09:36:12]line Наличными: 85.00 [09:36:12]line Безнал.: 0.00 [09:36:12]line Место: АЗС № 117 "Партнер Нефть" [09:36:12]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:36:12]line СНО: Общий режим [09:36:12]line Чек 41 05.06.2024 09:36 [09:36:12]line Смена: 375 ФФД: 1.0 [09:36:12]line ЗНМ: 0300000031 [09:36:12]line РНМ: 0000000000092737 [09:36:12]line Версия ККМ: 001 [09:36:12]line ФМ: 0000000000875074 [09:36:12]line ФД: 64121 [09:36:12]line ФПД: 240624904426774 [09:36:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T093614&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64121&fm=240624904426774&tin=02508201610067®Number=0000000000092737&sum=8500 [09:36:13]line 0 [09:36:13]OFD Sender: Processing packet 64121 [packets to send 14, broken 13] [09:36:13]ProducePacketName [09:36:13]name=ofd_packets/00064121 [09:36:13]OFD Sender: To server: pG, [09:36:13]CommunicateWithHost lk.salyk.kg:30040 [09:36:13]ConnectInit lk.salyk.kg [09:36:13]written 0, free lines is 4095 [09:36:13]Connected sock=10 [09:36:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 34 01 00 00 7D 70 2C 01 31 51 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 8E 31 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 79 FA 00 00 35 04 06 00 DA D8 D9 F3 D5 16 A3 4C 48 AF DB 1D DA A0 [09:36:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 01 C4 47 00 2B 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 79 FA 00 00 F4 03 04 00 9A DD 5F 66 B6 04 01 00 00 46 13 7F 22 99 B1 6F DC [09:36:13]CommunicateWithHost err = 0 [09:36:13]CheckOFDResponse [09:36:13]1017 (14) - 77093643461234 [09:36:13]1041 (16) - 0000000000875074 [09:36:13]1040 (4) - 64121 [09:36:13]1012 (4) - 05.06.2024 03:38 [09:36:13]1206 (1) - 0 [09:36:13]OFD Sender: Remove packet 64121 [09:36:13]ProducePacketName [09:36:13]name=ofd_packets/00064121 [09:36:13]NVStorageDeleteData [09:36:13]Write to MH i2c: 01 00 00 6D 18 85 [09:36:13]Write i2c OK [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: 01 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: 01 07 00 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: 01 07 00 6D 18 00 00 00 00 00 E1 0C 79 [09:36:13]RasterBufferAndPrint [09:36:13]line [09:36:13]line [09:36:13]line [09:36:13]line [09:36:13]line [09:36:13]written 0, free lines is 3303 [09:36:13]MH_Cut [09:36:13]Write to MH i2c: D1 01 00 74 18 01 5E [09:36:13]Write i2c OK [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: D1 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: D1 01 00 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: D1 01 00 74 18 00 5D [09:36:13]Write to MH i2c: 01 00 00 75 18 8D [09:36:13]Write i2c OK [09:36:13]MH_I2C_Read... [09:36:14]OFD Sender: No OFD packet to send [09:36:14]*** Cut start [09:36:14]*** Partial cut [09:36:14]*** CUTSNS_PIN = 1 [09:36:14]*** CUTSNS_PIN = 0 [09:36:14]*** Brake cut motor [09:36:15]Read from MH i2c: 01 [09:36:15]MH_I2C_Read... [09:36:15]*** Stop cut motor [09:36:15]*** Cut end [09:36:15]Read from MH i2c: 01 07 00 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: 01 07 00 75 18 00 00 00 00 00 FF 0F A2 [09:36:15]process_action close_receipt done [09:36:15]requested_data is exist [09:36:15]produce_requested_data [09:36:15]requested_item fm.sn is exist - process it [09:36:15]wFMCommunicate request_size=4 [09:36:15]MH_SAM_APDU [09:36:15]CAPDU: 80 11 00 00 [09:36:15]Write to MH i2c: E2 08 00 76 18 80 11 00 00 00 00 00 00 08 [09:36:15]Write i2c OK [09:36:15]MH_I2C_Read... [09:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:15]Read from MH i2c: E2 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: E2 17 00 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: E2 17 00 76 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 5A [09:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:36:15]wFMCommunicate OK [09:36:15]requested_item fd.num is exist - process it [09:36:15]SAM_PROTO_GetFieldsCounters [09:36:15]wFMCommunicate request_size=4 [09:36:15]MH_SAM_APDU [09:36:15]CAPDU: 80 13 00 00 [09:36:15]Write to MH i2c: E2 08 00 77 18 80 13 00 00 00 00 00 00 0B [09:36:15]Write i2c OK [09:36:15]MH_I2C_Read... [09:36:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:15]Read from MH i2c: E2 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: E2 62 00 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: E2 62 00 77 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 79 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [09:36:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 79 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:15]wFMCommunicate OK [09:36:15]SAM_PROTO_GetFieldsCounters done [09:36:15]requested_item shift.num is exist - process it [09:36:15]requested_item shift.opened is exist - process it [09:36:15]req_shift_opened [09:36:15]FM_GetShiftState [09:36:15]SAM_PROTO_GetShiftState [09:36:15]wFMCommunicate request_size=4 [09:36:15]MH_SAM_APDU [09:36:15]CAPDU: 80 13 01 00 [09:36:15]Write to MH i2c: E2 08 00 78 18 80 13 01 00 00 00 00 00 0D [09:36:15]Write i2c OK [09:36:15]MH_I2C_Read... [09:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:15]Read from MH i2c: E2 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: E2 0E 00 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: E2 0E 00 78 18 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 4E [09:36:15]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:36:15]wFMCommunicate OK [09:36:15]SAM_PROTO_GetShiftState done [09:36:15]FM_GetShiftState done [09:36:15]req_shift_opened done [09:36:15]requested_item shift.open_date is exist - process it [09:36:15]req_shift_open_date [09:36:15]req_shift_open_date done [09:36:15]produce_requested_data done [09:36:15]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64121,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [09:36:15]process_action_free close_receipt [09:36:15]json_value_free [09:36:15]json_value_free done [09:36:15]process_json_proto returns [09:36:15]Send response to host [09:36:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64121,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [09:36:15]free response buf [09:36:15]execute_script done [09:36:15]execute_script returns [09:36:15]free content buf [09:36:15]Sock 9.Close socket [09:36:15]Sock 9.Thread stoped [09:36:19]OFD Sender: No OFD packet to send [09:36:19]accept exits with 8 [09:36:19]New connection [09:36:19]New thread 3067276644 created [09:36:19]Thread 3067133284 joined [09:36:19]Waiting for new connection... [09:36:19] Sock 8.Parse request [09:36:19]Sock 8.Check first char [09:36:19]Sock 8.First char is OK [09:36:19]request: POST /json_proto HTTP/1.0 [09:36:19]Method: POST [09:36:19]URL: /json_proto [09:36:19]Method is POST - this is cgi request [09:36:19]url: /json_proto [09:36:19]query_string will be loaded in cgi processing [09:36:19]execute_cgi json_proto POST (null) [09:36:19]execute_cgi path=json_proto method=POST [09:36:19]POST find Content-Length [09:36:20]Host: 172.17.60.69:8080 [09:36:20]Content-Length: 627 [09:36:20]Content-Type: application/json [09:36:20] [09:36:20]POST finish read [09:36:20]Found Content-Length = 627 [09:36:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73659", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:20]execute_script... [09: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 : (3)73659", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:20]POST & json_proto [09:36:20]process_json_proto [09:36:20]json parsed OK: [09:36:20]protocol is kg_v1.0 [09:36:20]action value=close_receipt [09:36:20]process_action close_receipt [09:36:20]cmd_close_receipt [09:36:20]MH_GetDate [09:36:20]Write to MH i2c: F0 00 00 79 18 80 [09:36:20]Write i2c OK [09:36:20]MH_I2C_Read... [09:36:20]Read from MH i2c: F0 [09:36:20]MH_I2C_Read... [09:36:20]Read from MH i2c: F0 09 00 [09:36:20]MH_I2C_Read... [09:36:20]Read from MH i2c: F0 09 00 79 18 00 96 31 60 66 D2 83 5F 66 30 [09:36:20]GetLastDocTimeStamp 1717580174 [09:36:20]current date 1717580182 [09:36:20]FM_GetShiftState [09:36:20]SAM_PROTO_GetShiftState [09:36:20]wFMCommunicate request_size=4 [09:36:20]MH_SAM_APDU [09:36:20]CAPDU: 80 13 01 00 [09:36:20]Write to MH i2c: E2 08 00 7A 18 80 13 01 00 00 00 00 00 0F [09:36:20]Write i2c OK [09:36:20]MH_I2C_Read... [09:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:20]Read from MH i2c: E2 [09:36:20]MH_I2C_Read... [09:36:20]Read from MH i2c: E2 0E 00 [09:36:20]MH_I2C_Read... [09:36:20]Read from MH i2c: E2 0E 00 7A 18 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 50 [09:36:20]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:36:20]wFMCommunicate OK [09:36:20]SAM_PROTO_GetShiftState done [09:36:20]FM_GetShiftState done [09:36:20]opened in 1717545925 [09:36:20]opened+sec_in_day 1717632325 [09:36:20]quantity*price = 26000 [09:36:20]sum+1 = 26001 [09:36:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 42 05.06.2024 09:36 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64122 ФПД: 141940625080998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T093622&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64122&fm=141940625080998&tin=02508201610067®Number=0000000000092737&sum=26000 0 [09:36:21]StoreToDocumentArchive [09:36:21]shift 375 fd 64122 [09:36:21]save to /storage/0375/doc_00064122 [09:36:21]save last doc name /storage/0375/doc_00064122 to /storage/kkm_last_doc_name [09:36:21]save OK [09:36:21]Clear old archive folders... [09:36:21]ProcessDocumentItem done err = 0, tmpTLVsize=276 [09:36:21]tlvbuf is 01118CB0 [09:36:21]SAM_PROTO_ClearQueue [09:36:21]wFMCommunicate request_size=4 [09:36:21]MH_SAM_APDU [09:36:21]CAPDU: 80 09 00 00 [09:36:21]Write to MH i2c: E2 08 00 87 18 80 09 00 00 00 00 00 00 11 [09:36:21]Write i2c OK [09:36:21]MH_I2C_Read... [09:36:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:21]Read from MH i2c: E2 [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: E2 03 00 [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: E2 03 00 87 18 00 90 00 13 [09:36:21]RAPDU: 90 00 [09:36:21]wFMCommunicate OK [09:36:21]SAM_PROTO_ClearQueue done [09:36:21]KKMCreateOFDPacket [09:36:21]OFDProtocolAddRootSTLVToBuf [09:36:21]FM_MakeSignedData [09:36:21]FM_MakeSignedData [09:36:21]SAM_PROTO_SignData [09:36:21]wFMCommunicate request_size=4 [09:36:21]MH_SAM_APDU [09:36:21]CAPDU: 80 0D 01 02 [09:36:21]Write to MH i2c: E2 08 00 88 18 80 0D 01 02 00 00 00 00 19 [09:36:21]Write i2c OK [09:36:21]MH_I2C_Read... [09:36:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:21]Read from MH i2c: E2 [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: E2 03 00 [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: E2 03 00 88 18 00 90 00 14 [09:36:21]RAPDU: 90 00 [09:36:21]wFMCommunicate OK [09:36:21]wFMCommunicate request_size=255 [09:36:21]MH_SAM_APDU [09:36:21]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 96 31 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [09:36:21]Write to MH i2c: E2 02 01 89 18 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 96 31 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 00 00 20 [09:36:21]Write i2c OK [09:36:21]MH_I2C_Read... [09:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:21]Read from MH i2c: E2 [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: E2 03 00 [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: E2 03 00 89 18 00 90 00 15 [09:36:21]RAPDU: 90 00 [09:36:21]wFMCommunicate OK [09:36:21]wFMCommunicate request_size=35 [09:36:21]MH_SAM_APDU [09:36:21]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7A FA 00 00 35 04 06 00 81 18 20 89 82 A6 [09:36:21]Write to MH i2c: E2 26 00 8A 18 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7A FA 00 00 35 04 06 00 81 18 20 89 82 A6 00 00 EC [09:36:21]Write i2c OK [09:36:21]MH_I2C_Read... [09:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:21]Read from MH i2c: E2 [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: E2 03 00 [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: E2 03 00 8A 18 00 90 00 16 [09:36:21]RAPDU: 90 00 [09:36:21]wFMCommunicate OK [09:36:21]wFMCommunicate request_size=4 [09:36:21]MH_SAM_APDU [09:36:21]CAPDU: 80 0D 03 02 [09:36:21]Write to MH i2c: E2 08 00 8B 18 80 0D 03 02 00 00 00 00 1E [09:36:21]Write i2c OK [09:36:21]MH_I2C_Read... [09:36:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:21]Read from MH i2c: E2 [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: E2 0B 00 [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: E2 0B 00 8B 18 00 33 7E 90 46 FA 0E AE 1A 90 00 76 [09:36:21]RAPDU: 33 7E 90 46 FA 0E AE 1A 90 00 [09:36:21]wFMCommunicate OK [09:36:21]SAM_PROTO_SignData done [09:36:21]FM_MakeSignedData done [09:36:21]CreateOFDProtocolMessage [09:36:21]wFMCommunicate request_size=4 [09:36:21]MH_SAM_APDU [09:36:21]CAPDU: 80 11 00 00 [09:36:21]Write to MH i2c: E2 08 00 8C 18 80 11 00 00 00 00 00 00 1E [09:36:21]Write i2c OK [09:36:21]MH_I2C_Read... [09:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:21]Read from MH i2c: E2 [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: E2 17 00 [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: E2 17 00 8C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 70 [09:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:36:21]wFMCommunicate OK [09:36:21]CreateOFDProtocolMessage done [09:36:21]OFDSenderStorePacket 64122 [09:36:21]StoreOFDPacket docnum=64122 [09:36:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 9A 12 20 01 93 FD 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 96 31 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7A FA 00 00 35 04 06 00 81 18 20 89 82 A6 33 7E 90 46 FA 0E AE 1A [09:36:21]CheckFolder [09:36:21]dirname=/storage/ofd_packets [09:36:21]CheckFolder done [09:36:21]ProducePacketName [09:36:21]name=ofd_packets/00064122 [09:36:21]NVStorageSaveData ofd_packets/00064122 [09:36:21]File name is /storage/ofd_packets/00064122 [09:36:21]Write 326 bytes [09:36:21]NVStorageSaveData done [09:36:21]OFDSenderStorePacket done [09:36:21]KKMCreateOFDPacket done [09:36:21]NVStorageSaveData kkm_last_timestamp [09:36:21]File name is /storage/kkm_last_timestamp [09:36:21]Write 4 bytes [09:36:21]NVStorageSaveData done [09:36:21]ExternCall_PrintAddStr [09:36:21]wPrintStart [09:36:21]Write to MH i2c: 01 00 00 8D 18 A5 [09:36:21]Write i2c OK [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: 01 [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: 01 07 00 [09:36:21]MH_I2C_Read... [09:36:21]Read from MH i2c: 01 07 00 8D 18 00 00 00 00 00 FF 0F BA [09:36:21]RasterBufferAndPrint [09:36:21]line Счет N : (3)73659 [09:36:21]line ИНН: 02508201610067 [09:36:21]line Контрольно-Кассовый Чек [09:36:21]line ПРОДАЖА [09:36:21]line Товар: 2000036230011 [09:36:21]line Кофе Латте XL(GABB TRADE) [09:36:21]line 2.000 * 130.00 [09:36:21]line = 260.00 [09:36:21]line НДС 12% НСП 1% [09:36:21]line > о реализуемом товаре [09:36:21]line ИТОГО: 260.00 [09:36:21]line НСП 1% : 2.30 [09:36:21]line НДС 12% : 27.61 [09:36:21]line Наличными: 260.00 [09:36:21]line Безнал.: 0.00 [09:36:21]line Место: АЗС № 117 "Партнер Нефть" [09:36:21]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:36:21]line СНО: Общий режим [09:36:21]line Чек 42 05.06.2024 09:36 [09:36:21]line Смена: 375 ФФД: 1.0 [09:36:21]line ЗНМ: 0300000031 [09:36:21]line РНМ: 0000000000092737 [09:36:21]line Версия ККМ: 001 [09:36:21]line ФМ: 0000000000875074 [09:36:21]line ФД: 64122 [09:36:21]line ФПД: 141940625080998 [09:36:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T093622&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64122&fm=141940625080998&tin=02508201610067®Number=0000000000092737&sum=26000 [09:36:21]line 0 [09:36:21]written 0, free lines is 4095 [09:36:21]OFD Sender: Processing packet 64122 [packets to send 14, broken 13] [09:36:21]ProducePacketName [09:36:21]name=ofd_packets/00064122 [09:36:21]OFD Sender: To server: pG, [09:36:21]CommunicateWithHost lk.salyk.kg:30040 [09:36:21]ConnectInit lk.salyk.kg [09:36:22]Connected sock=10 [09:36:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 9A 12 20 01 93 FD 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 96 31 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7A FA 00 00 35 04 06 00 81 18 20 89 82 A6 33 7E 90 46 FA 0E AE 1A [09:36:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 EF 62 47 00 0C 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7A FA 00 00 F4 03 04 00 A2 DD 5F 66 B6 04 01 00 00 B5 5B 7B 00 D1 A6 86 BB [09:36:22]CommunicateWithHost err = 0 [09:36:22]CheckOFDResponse [09:36:22]1017 (14) - 77093643461234 [09:36:22]1041 (16) - 0000000000875074 [09:36:22]1040 (4) - 64122 [09:36:22]1012 (4) - 05.06.2024 03:38 [09:36:22]1206 (1) - 0 [09:36:22]OFD Sender: Remove packet 64122 [09:36:22]ProducePacketName [09:36:22]name=ofd_packets/00064122 [09:36:22]NVStorageDeleteData [09:36:22]Write to MH i2c: 01 00 00 B5 18 CD [09:36:22]Write i2c OK [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: 01 [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: 01 07 00 [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: 01 07 00 B5 18 00 00 00 00 00 09 0D EA [09:36:22]RasterBufferAndPrint [09:36:22]line [09:36:22]line [09:36:22]line [09:36:22]line [09:36:22]line [09:36:22]written 0, free lines is 3346 [09:36:22]MH_Cut [09:36:22]Write to MH i2c: D1 01 00 BC 18 01 A6 [09:36:22]Write i2c OK [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: D1 [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: D1 01 00 [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: D1 01 00 BC 18 00 A5 [09:36:22]Write to MH i2c: 01 00 00 BD 18 D5 [09:36:22]Write i2c OK [09:36:22]MH_I2C_Read... [09:36:22]OFD Sender: No OFD packet to send [09:36:23]*** Cut start [09:36:23]*** Partial cut [09:36:23]*** CUTSNS_PIN = 1 [09:36:23]*** CUTSNS_PIN = 0 [09:36:23]*** Brake cut motor [09:36:23]Read from MH i2c: 01 [09:36:23]MH_I2C_Read... [09:36:23]*** Stop cut motor [09:36:23]*** Cut end [09:36:23]Read from MH i2c: 01 07 00 [09:36:23]MH_I2C_Read... [09:36:23]Read from MH i2c: 01 07 00 BD 18 00 00 00 00 00 FF 0F EA [09:36:23]process_action close_receipt done [09:36:23]requested_data is exist [09:36:23]produce_requested_data [09:36:23]requested_item fm.sn is exist - process it [09:36:23]wFMCommunicate request_size=4 [09:36:23]MH_SAM_APDU [09:36:23]CAPDU: 80 11 00 00 [09:36:23]Write to MH i2c: E2 08 00 BE 18 80 11 00 00 00 00 00 00 50 [09:36:23]Write i2c OK [09:36:23]MH_I2C_Read... [09:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:23]Read from MH i2c: E2 [09:36:23]MH_I2C_Read... [09:36:23]Read from MH i2c: E2 17 00 [09:36:23]MH_I2C_Read... [09:36:23]Read from MH i2c: E2 17 00 BE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A2 [09:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:36:23]wFMCommunicate OK [09:36:23]requested_item fd.num is exist - process it [09:36:23]SAM_PROTO_GetFieldsCounters [09:36:23]wFMCommunicate request_size=4 [09:36:23]MH_SAM_APDU [09:36:23]CAPDU: 80 13 00 00 [09:36:23]Write to MH i2c: E2 08 00 BF 18 80 13 00 00 00 00 00 00 53 [09:36:23]Write i2c OK [09:36:23]MH_I2C_Read... [09:36:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:23]Read from MH i2c: E2 [09:36:23]MH_I2C_Read... [09:36:23]Read from MH i2c: E2 62 00 [09:36:23]MH_I2C_Read... [09:36:23]Read from MH i2c: E2 62 00 BF 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7A FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [09:36:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7A FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:23]wFMCommunicate OK [09:36:23]SAM_PROTO_GetFieldsCounters done [09:36:23]requested_item shift.num is exist - process it [09:36:23]requested_item shift.opened is exist - process it [09:36:23]req_shift_opened [09:36:23]FM_GetShiftState [09:36:23]SAM_PROTO_GetShiftState [09:36:23]wFMCommunicate request_size=4 [09:36:23]MH_SAM_APDU [09:36:23]CAPDU: 80 13 01 00 [09:36:23]Write to MH i2c: E2 08 00 C0 18 80 13 01 00 00 00 00 00 55 [09:36:23]Write i2c OK [09:36:23]MH_I2C_Read... [09:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:23]Read from MH i2c: E2 [09:36:23]MH_I2C_Read... [09:36:23]Read from MH i2c: E2 0E 00 [09:36:23]MH_I2C_Read... [09:36:23]Read from MH i2c: E2 0E 00 C0 18 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 96 [09:36:23]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:36:23]wFMCommunicate OK [09:36:23]SAM_PROTO_GetShiftState done [09:36:23]FM_GetShiftState done [09:36:23]req_shift_opened done [09:36:23]requested_item shift.open_date is exist - process it [09:36:23]req_shift_open_date [09:36:23]req_shift_open_date done [09:36:23]produce_requested_data done [09:36:23]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64122,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [09:36:23]process_action_free close_receipt [09:36:23]json_value_free [09:36:23]json_value_free done [09:36:23]process_json_proto returns [09:36:23]Send response to host [09:36:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64122,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [09:36:23]free response buf [09:36:23]execute_script done [09:36:23]execute_script returns [09:36:23]free content buf [09:36:23]Sock 8.Close socket [09:36:23]Sock 8.Thread stoped [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:37]accept exits with 9 [09:44:37]New connection [09:44:37]New thread 3067133284 created [09:44:37]Thread 3067276644 joined [09:44:37]Waiting for new connection... [09:44:37] Sock 9.Parse request [09:44:37]Sock 9.Check first char [09:44:37]Sock 9.First char is OK [09:44:37]request: POST /json_proto HTTP/1.0 [09:44:37]Method: POST [09:44:37]URL: /json_proto [09:44:37]Method is POST - this is cgi request [09:44:37]url: /json_proto [09:44:37]query_string will be loaded in cgi processing [09:44:37]execute_cgi json_proto POST (null) [09:44:37]execute_cgi path=json_proto method=POST [09:44:37]POST find Content-Length [09:44:37]Host: 172.17.60.69:8080 [09:44:37]Content-Length: 1150 [09:44:37]Content-Type: application/json [09:44:37] [09:44:37]POST finish read [09:44:37]Found Content-Length = 1150 [09:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73660", "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": "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": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 578.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:37]execute_script... [09:44: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)73660", "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": "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": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 578.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:37]POST & json_proto [09:44:37]process_json_proto [09:44:37]json parsed OK: [09:44:37]protocol is kg_v1.0 [09:44:37]action value=close_receipt [09:44:37]process_action close_receipt [09:44:37]cmd_close_receipt [09:44:37]MH_GetDate [09:44:37]Write to MH i2c: F0 00 00 C1 18 C8 [09:44:37]Write i2c OK [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: F0 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: F0 09 00 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: F0 09 00 C1 18 00 88 33 60 66 D2 83 5F 66 6C [09:44:37]GetLastDocTimeStamp 1717580182 [09:44:37]current date 1717580680 [09:44:37]FM_GetShiftState [09:44:37]SAM_PROTO_GetShiftState [09:44:37]wFMCommunicate request_size=4 [09:44:37]MH_SAM_APDU [09:44:37]CAPDU: 80 13 01 00 [09:44:37]Write to MH i2c: E2 08 00 C2 18 80 13 01 00 00 00 00 00 57 [09:44:37]Write i2c OK [09:44:37]MH_I2C_Read... [09:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:37]Read from MH i2c: E2 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: E2 0E 00 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: E2 0E 00 C2 18 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 98 [09:44:37]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:44:37]wFMCommunicate OK [09:44:37]SAM_PROTO_GetShiftState done [09:44:37]FM_GetShiftState done [09:44:37]opened in 1717545925 [09:44:37]opened+sec_in_day 1717632325 [09:44:37]quantity*price = 9500 [09:44:37]sum+1 = 9501 [09:44:37]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 3.000 * 115.00 = 345.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 1.000 * 138.00 = 138.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 578.00 НСП 1% : 5.11 НДС 12% : 61.38 Наличными: 578.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 43 05.06.2024 09:44 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64123 ФПД: 273430696294012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T094440&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64123&fm=273430696294012&tin=02508201610067®Number=0000000000092737&sum=57800 0 [09:44:38]StoreToDocumentArchive [09:44:38]shift 375 fd 64123 [09:44:38]save to /storage/0375/doc_00064123 [09:44:38]save last doc name /storage/0375/doc_00064123 to /storage/kkm_last_doc_name [09:44:38]save OK [09:44:38]Clear old archive folders... [09:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=505 [09:44:38]tlvbuf is 0108D1C0 [09:44:38]SAM_PROTO_ClearQueue [09:44:38]wFMCommunicate request_size=4 [09:44:38]MH_SAM_APDU [09:44:38]CAPDU: 80 09 00 00 [09:44:38]Write to MH i2c: E2 08 00 CF 18 80 09 00 00 00 00 00 00 59 [09:44:38]Write i2c OK [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: E2 [09:44:38]MH_I2C_Read... [09:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:38]Read from MH i2c: E2 03 00 [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: E2 03 00 CF 18 00 90 00 5B [09:44:38]RAPDU: 90 00 [09:44:38]wFMCommunicate OK [09:44:38]SAM_PROTO_ClearQueue done [09:44:38]KKMCreateOFDPacket [09:44:38]OFDProtocolAddRootSTLVToBuf [09:44:38]FM_MakeSignedData [09:44:38]FM_MakeSignedData [09:44:38]SAM_PROTO_SignData [09:44:38]wFMCommunicate request_size=4 [09:44:38]MH_SAM_APDU [09:44:38]CAPDU: 80 0D 01 02 [09:44:38]Write to MH i2c: E2 08 00 D0 18 80 0D 01 02 00 00 00 00 61 [09:44:38]Write i2c OK [09:44:38]MH_I2C_Read... [09:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:38]Read from MH i2c: E2 [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: E2 03 00 [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: E2 03 00 D0 18 00 90 00 5C [09:44:38]RAPDU: 90 00 [09:44:38]wFMCommunicate OK [09:44:38]wFMCommunicate request_size=255 [09:44:38]MH_SAM_APDU [09:44:38]CAPDU: 80 0D 02 02 FA 03 00 F9 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 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 62 00 8A 04 0D 00 [09:44:39]Write to MH i2c: E2 02 01 D1 18 80 0D 02 02 FA 00 03 00 F9 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 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 62 00 8A 04 0D 00 00 00 3B [09:44:39]Write i2c OK [09:44:39]MH_I2C_Read... [09:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:39]Read from MH i2c: E2 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 03 00 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 03 00 D1 18 00 90 00 5D [09:44:39]RAPDU: 90 00 [09:44:39]wFMCommunicate OK [09:44:39]wFMCommunicate request_size=255 [09:44:39]MH_SAM_APDU [09:44:39]CAPDU: 80 0D 02 02 FA 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 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 C8 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 17 00 00 00 00 07 04 06 00 C8 E1 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 88 33 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7B FA 00 00 35 [09:44:39]Write to MH i2c: E2 02 01 D2 18 80 0D 02 02 FA 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 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 C8 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 17 00 00 00 00 07 04 06 00 C8 E1 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 88 33 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7B FA 00 00 35 00 00 A7 [09:44:39]Write i2c OK [09:44:39]MH_I2C_Read... [09:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:39]Read from MH i2c: E2 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 03 00 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 03 00 D2 18 00 90 00 5E [09:44:39]RAPDU: 90 00 [09:44:39]wFMCommunicate OK [09:44:39]wFMCommunicate request_size=14 [09:44:39]MH_SAM_APDU [09:44:39]CAPDU: 80 0D 02 02 09 04 06 00 F8 AF 0B 85 F6 7C [09:44:39]Write to MH i2c: E2 11 00 D3 18 80 0D 02 02 09 00 04 06 00 F8 AF 0B 85 F6 7C 00 00 2A [09:44:39]Write i2c OK [09:44:39]MH_I2C_Read... [09:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:39]Read from MH i2c: E2 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 03 00 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 03 00 D3 18 00 90 00 5F [09:44:39]RAPDU: 90 00 [09:44:39]wFMCommunicate OK [09:44:39]wFMCommunicate request_size=4 [09:44:39]MH_SAM_APDU [09:44:39]CAPDU: 80 0D 03 02 [09:44:39]Write to MH i2c: E2 08 00 D4 18 80 0D 03 02 00 00 00 00 67 [09:44:39]Write i2c OK [09:44:39]MH_I2C_Read... [09:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:39]Read from MH i2c: E2 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 0B 00 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 0B 00 D4 18 00 C5 6B 77 56 19 27 33 B7 90 00 8F [09:44:39]RAPDU: C5 6B 77 56 19 27 33 B7 90 00 [09:44:39]wFMCommunicate OK [09:44:39]SAM_PROTO_SignData done [09:44:39]FM_MakeSignedData done [09:44:39]CreateOFDProtocolMessage [09:44:39]wFMCommunicate request_size=4 [09:44:39]MH_SAM_APDU [09:44:39]CAPDU: 80 11 00 00 [09:44:39]Write to MH i2c: E2 08 00 D5 18 80 11 00 00 00 00 00 00 67 [09:44:39]Write i2c OK [09:44:39]MH_I2C_Read... [09:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:39]Read from MH i2c: E2 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 17 00 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 17 00 D5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B9 [09:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:44:39]wFMCommunicate OK [09:44:39]CreateOFDProtocolMessage done [09:44:39]OFDSenderStorePacket 64123 [09:44:39]StoreOFDPacket docnum=64123 [09:44:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 02 00 00 74 8A 05 02 6A 8B 5A 03 01 00 03 00 F9 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 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 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 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 C8 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 17 00 00 00 00 07 04 06 00 C8 E1 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 88 33 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7B FA 00 00 35 04 06 00 F8 AF 0B 85 F6 7C C5 6B 77 56 19 27 33 B7 [09:44:39]CheckFolder [09:44:39]dirname=/storage/ofd_packets [09:44:39]CheckFolder done [09:44:39]ProducePacketName [09:44:39]name=ofd_packets/00064123 [09:44:39]NVStorageSaveData ofd_packets/00064123 [09:44:39]File name is /storage/ofd_packets/00064123 [09:44:39]Write 555 bytes [09:44:39]NVStorageSaveData done [09:44:39]OFDSenderStorePacket done [09:44:39]KKMCreateOFDPacket done [09:44:39]NVStorageSaveData kkm_last_timestamp [09:44:39]File name is /storage/kkm_last_timestamp [09:44:39]Write 4 bytes [09:44:39]NVStorageSaveData done [09:44:39]ExternCall_PrintAddStr [09:44:39]wPrintStart [09:44:39]Write to MH i2c: 01 00 00 D6 18 EE [09:44:39]Write i2c OK [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: 01 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: 01 07 00 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: 01 07 00 D6 18 00 00 00 00 00 FF 0F 03 [09:44:39]RasterBufferAndPrint [09:44:39]line Счет N : (3)73660 [09:44:39]line ИНН: 02508201610067 [09:44:39]line Контрольно-Кассовый Чек [09:44:39]line ПРОДАЖА [09:44:39]line Товар: 4700000480050 [09:44:39]line Напиток Nitro Energy эн green ж/б 0,45л [09:44:39]line 1.000 * 95.00 [09:44:39]line = 95.00 [09:44:39]line НДС 12% НСП 1% [09:44:39]line > о реализуемом товаре [09:44:39]line Товар: 2000036210013 [09:44:39]line Кофе Капучино (GABB TRADE) [09:44:39]line 3.000 * 115.00 [09:44:39]line = 345.00 [09:44:39]line НДС 12% НСП 1% [09:44:39]line > о реализуемом товаре [09:44:39]line Товар: 4640030091607 [09:44:39]line Сигареты ESSE Exchange [09:44:39]line 1.000 * 138.00 [09:44:39]line = 138.00 [09:44:39]line НДС 12% НСП 1% [09:44:39]line > о реализуемом товаре [09:44:39]line ИТОГО: 578.00 [09:44:39]line НСП 1% : 5.11 [09:44:39]line НДС 12% : 61.38 [09:44:39]line Наличными: 578.00 [09:44:39]line Безнал.: 0.00 [09:44:39]line Место: АЗС № 117 "Партнер Нефть" [09:44:39]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:44:39]line СНО: Общий режим [09:44:39]line Чек 43 05.06.2024 09:44 [09:44:39]line Смена: 375 ФФД: 1.0 [09:44:39]line ЗНМ: 0300000031 [09:44:39]line РНМ: 0000000000092737 [09:44:39]line Версия ККМ: 001 [09:44:39]line ФМ: 0000000000875074 [09:44:39]line ФД: 64123 [09:44:39]line ФПД: 273430696294012 [09:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T094440&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64123&fm=273430696294012&tin=02508201610067®Number=0000000000092737&sum=57800 [09:44:40]line 0 [09:44:40]OFD Sender: Processing packet 64123 [packets to send 14, broken 13] [09:44:40]ProducePacketName [09:44:40]name=ofd_packets/00064123 [09:44:40]OFD Sender: To server: pG, [09:44:40]CommunicateWithHost lk.salyk.kg:30040 [09:44:40]ConnectInit lk.salyk.kg [09:44:40]written 0, free lines is 4095 [09:44:40]Connected sock=10 [09:44:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 02 00 00 74 8A 05 02 6A 8B 5A 03 01 00 03 00 F9 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 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 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 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 C8 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 17 00 00 00 00 07 04 06 00 C8 E1 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 88 33 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7B FA 00 00 35 04 06 00 F8 AF 0B 85 F6 7C C5 6B 77 56 19 27 33 B7 [09:44:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 52 52 47 00 A3 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7B FA 00 00 F4 03 04 00 95 DF 5F 66 B6 04 01 00 00 02 89 AF 91 63 0D 54 F7 [09:44:40]CommunicateWithHost err = 0 [09:44:40]CheckOFDResponse [09:44:40]1017 (14) - 77093643461234 [09:44:40]1041 (16) - 0000000000875074 [09:44:40]1040 (4) - 64123 [09:44:40]1012 (4) - 05.06.2024 03:46 [09:44:40]1206 (1) - 0 [09:44:40]OFD Sender: Remove packet 64123 [09:44:40]ProducePacketName [09:44:40]name=ofd_packets/00064123 [09:44:40]NVStorageDeleteData [09:44:40]Write to MH i2c: 01 00 00 0B 19 24 [09:44:40]Write i2c OK [09:44:40]MH_I2C_Read... [09:44:40]Read from MH i2c: 01 [09:44:40]MH_I2C_Read... [09:44:40]Read from MH i2c: 01 07 00 [09:44:40]MH_I2C_Read... [09:44:40]Read from MH i2c: 01 07 00 0B 19 00 00 00 00 00 33 0C 6A [09:44:40]RasterBufferAndPrint [09:44:40]line [09:44:40]line [09:44:40]line [09:44:40]line [09:44:40]line [09:44:40]written 0, free lines is 3130 [09:44:40]MH_Cut [09:44:40]Write to MH i2c: D1 01 00 12 19 01 FD [09:44:40]Write i2c OK [09:44:40]MH_I2C_Read... [09:44:40]Read from MH i2c: D1 [09:44:40]MH_I2C_Read... [09:44:40]Read from MH i2c: D1 01 00 [09:44:40]MH_I2C_Read... [09:44:40]Read from MH i2c: D1 01 00 12 19 00 FC [09:44:40]Write to MH i2c: 01 00 00 13 19 2C [09:44:40]Write i2c OK [09:44:40]MH_I2C_Read... [09:44:41]OFD Sender: No OFD packet to send [09:44:41]*** Cut start [09:44:41]*** Partial cut [09:44:41]*** CUTSNS_PIN = 1 [09:44:41]*** CUTSNS_PIN = 0 [09:44:41]*** Brake cut motor [09:44:42]Read from MH i2c: 01 [09:44:42]MH_I2C_Read... [09:44:42]*** Stop cut motor [09:44:42]*** Cut end [09:44:42]Read from MH i2c: 01 07 00 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: 01 07 00 13 19 00 00 00 00 00 FF 0F 41 [09:44:42]process_action close_receipt done [09:44:42]requested_data is exist [09:44:42]produce_requested_data [09:44:42]requested_item fm.sn is exist - process it [09:44:42]wFMCommunicate request_size=4 [09:44:42]MH_SAM_APDU [09:44:42]CAPDU: 80 11 00 00 [09:44:42]Write to MH i2c: E2 08 00 14 19 80 11 00 00 00 00 00 00 A7 [09:44:42]Write i2c OK [09:44:42]MH_I2C_Read... [09:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:42]Read from MH i2c: E2 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: E2 17 00 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: E2 17 00 14 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F9 [09:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:44:42]wFMCommunicate OK [09:44:42]requested_item fd.num is exist - process it [09:44:42]SAM_PROTO_GetFieldsCounters [09:44:42]wFMCommunicate request_size=4 [09:44:42]MH_SAM_APDU [09:44:42]CAPDU: 80 13 00 00 [09:44:42]Write to MH i2c: E2 08 00 15 19 80 13 00 00 00 00 00 00 AA [09:44:42]Write i2c OK [09:44:42]MH_I2C_Read... [09:44:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:42]Read from MH i2c: E2 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: E2 62 00 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: E2 62 00 15 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7B FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [09:44:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7B FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:42]wFMCommunicate OK [09:44:42]SAM_PROTO_GetFieldsCounters done [09:44:42]requested_item shift.num is exist - process it [09:44:42]requested_item shift.opened is exist - process it [09:44:42]req_shift_opened [09:44:42]FM_GetShiftState [09:44:42]SAM_PROTO_GetShiftState [09:44:42]wFMCommunicate request_size=4 [09:44:42]MH_SAM_APDU [09:44:42]CAPDU: 80 13 01 00 [09:44:42]Write to MH i2c: E2 08 00 16 19 80 13 01 00 00 00 00 00 AC [09:44:42]Write i2c OK [09:44:42]MH_I2C_Read... [09:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:42]Read from MH i2c: E2 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: E2 0E 00 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: E2 0E 00 16 19 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 ED [09:44:42]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:44:42]wFMCommunicate OK [09:44:42]SAM_PROTO_GetShiftState done [09:44:42]FM_GetShiftState done [09:44:42]req_shift_opened done [09:44:42]requested_item shift.open_date is exist - process it [09:44:42]req_shift_open_date [09:44:42]req_shift_open_date done [09:44:42]produce_requested_data done [09:44:42]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64123,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [09:44:42]process_action_free close_receipt [09:44:42]json_value_free [09:44:42]json_value_free done [09:44:42]process_json_proto returns [09:44:42]Send response to host [09:44:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64123,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [09:44:42]free response buf [09:44:42]execute_script done [09:44:42]execute_script returns [09:44:42]free content buf [09:44:42]Sock 9.Close socket [09:44:42]Sock 9.Thread stoped [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:07]accept exits with 8 [09:45:07]New connection [09:45:07]New thread 3067276644 created [09:45:07]Thread 3067133284 joined [09:45:07]Waiting for new connection... [09:45:07] Sock 8.Parse request [09:45:07]Sock 8.Check first char [09:45:07]Sock 8.First char is OK [09:45:07]request: POST /json_proto HTTP/1.0 [09:45:07]Method: POST [09:45:07]URL: /json_proto [09:45:07]Method is POST - this is cgi request [09:45:07]url: /json_proto [09:45:07]query_string will be loaded in cgi processing [09:45:07]execute_cgi json_proto POST (null) [09:45:07]execute_cgi path=json_proto method=POST [09:45:07]POST find Content-Length [09:45:07]Host: 172.17.60.69:8080 [09:45:07]Content-Length: 619 [09:45:07]Content-Type: application/json [09:45:07] [09:45:07]POST finish read [09:45:07]Found Content-Length = 619 [09:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73661", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "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" ] } } [09:45:07]execute_script... [09:45: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)73661", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "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" ] } } [09:45:07]POST & json_proto [09:45:07]process_json_proto [09:45:07]json parsed OK: [09:45:07]protocol is kg_v1.0 [09:45:07]action value=close_receipt [09:45:07]process_action close_receipt [09:45:07]cmd_close_receipt [09:45:07]MH_GetDate [09:45:07]Write to MH i2c: F0 00 00 17 19 1F [09:45:07]Write i2c OK [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: F0 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: F0 09 00 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: F0 09 00 17 19 00 A6 33 60 66 D2 83 5F 66 E1 [09:45:07]GetLastDocTimeStamp 1717580680 [09:45:07]current date 1717580710 [09:45:07]FM_GetShiftState [09:45:07]SAM_PROTO_GetShiftState [09:45:07]wFMCommunicate request_size=4 [09:45:07]MH_SAM_APDU [09:45:07]CAPDU: 80 13 01 00 [09:45:07]Write to MH i2c: E2 08 00 18 19 80 13 01 00 00 00 00 00 AE [09:45:07]Write i2c OK [09:45:07]MH_I2C_Read... [09:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:07]Read from MH i2c: E2 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: E2 0E 00 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: E2 0E 00 18 19 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 EF [09:45:07]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:45:07]wFMCommunicate OK [09:45:07]SAM_PROTO_GetShiftState done [09:45:07]FM_GetShiftState done [09:45:07]opened in 1717545925 [09:45:07]opened+sec_in_day 1717632325 [09:45:07]quantity*price = 13800 [09:45:07]sum+1 = 13801 [09:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 44 05.06.2024 09:45 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64124 ФПД: 261495346535761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T094510&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64124&fm=261495346535761&tin=02508201610067®Number=0000000000092737&sum=13800 0 [09:45:08]StoreToDocumentArchive [09:45:08]shift 375 fd 64124 [09:45:08]save to /storage/0375/doc_00064124 [09:45:08]save last doc name /storage/0375/doc_00064124 to /storage/kkm_last_doc_name [09:45:08]save OK [09:45:08]Clear old archive folders... [09:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=272 [09:45:08]tlvbuf is B6F10EC0 [09:45:08]SAM_PROTO_ClearQueue [09:45:08]wFMCommunicate request_size=4 [09:45:08]MH_SAM_APDU [09:45:08]CAPDU: 80 09 00 00 [09:45:08]Write to MH i2c: E2 08 00 25 19 80 09 00 00 00 00 00 00 B0 [09:45:08]Write i2c OK [09:45:08]MH_I2C_Read... [09:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:08]Read from MH i2c: E2 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 03 00 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 03 00 25 19 00 90 00 B2 [09:45:08]RAPDU: 90 00 [09:45:08]wFMCommunicate OK [09:45:08]SAM_PROTO_ClearQueue done [09:45:08]KKMCreateOFDPacket [09:45:08]OFDProtocolAddRootSTLVToBuf [09:45:08]FM_MakeSignedData [09:45:08]FM_MakeSignedData [09:45:08]SAM_PROTO_SignData [09:45:08]wFMCommunicate request_size=4 [09:45:08]MH_SAM_APDU [09:45:08]CAPDU: 80 0D 01 02 [09:45:08]Write to MH i2c: E2 08 00 26 19 80 0D 01 02 00 00 00 00 B8 [09:45:08]Write i2c OK [09:45:08]MH_I2C_Read... [09:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:08]Read from MH i2c: E2 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 03 00 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 03 00 26 19 00 90 00 B3 [09:45:08]RAPDU: 90 00 [09:45:08]wFMCommunicate OK [09:45:08]wFMCommunicate request_size=255 [09:45:08]MH_SAM_APDU [09:45: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 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 2C 00 00 00 F4 03 04 00 A6 33 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [09:45:08]Write to MH i2c: E2 02 01 27 19 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 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 2C 00 00 00 F4 03 04 00 A6 33 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 26 [09:45:08]Write i2c OK [09:45:08]MH_I2C_Read... [09:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:08]Read from MH i2c: E2 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 03 00 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 03 00 27 19 00 90 00 B4 [09:45:08]RAPDU: 90 00 [09:45:08]wFMCommunicate OK [09:45:08]wFMCommunicate request_size=31 [09:45:08]MH_SAM_APDU [09:45:08]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 37 34 10 04 04 00 7C FA 00 00 35 04 06 00 ED D4 21 3D 9D 51 [09:45:08]Write to MH i2c: E2 22 00 28 19 80 0D 02 02 1A 00 30 30 38 37 35 30 37 34 10 04 04 00 7C FA 00 00 35 04 06 00 ED D4 21 3D 9D 51 00 00 68 [09:45:08]Write i2c OK [09:45:08]MH_I2C_Read... [09:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:08]Read from MH i2c: E2 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 03 00 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 03 00 28 19 00 90 00 B5 [09:45:08]RAPDU: 90 00 [09:45:08]wFMCommunicate OK [09:45:08]wFMCommunicate request_size=4 [09:45:08]MH_SAM_APDU [09:45:08]CAPDU: 80 0D 03 02 [09:45:08]Write to MH i2c: E2 08 00 29 19 80 0D 03 02 00 00 00 00 BD [09:45:08]Write i2c OK [09:45:08]MH_I2C_Read... [09:45:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:08]Read from MH i2c: E2 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 0B 00 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 0B 00 29 19 00 CF 39 FA DC 8F 3C 58 C3 90 00 82 [09:45:08]RAPDU: CF 39 FA DC 8F 3C 58 C3 90 00 [09:45:08]wFMCommunicate OK [09:45:08]SAM_PROTO_SignData done [09:45:08]FM_MakeSignedData done [09:45:08]CreateOFDProtocolMessage [09:45:08]wFMCommunicate request_size=4 [09:45:08]MH_SAM_APDU [09:45:08]CAPDU: 80 11 00 00 [09:45:08]Write to MH i2c: E2 08 00 2A 19 80 11 00 00 00 00 00 00 BD [09:45:08]Write i2c OK [09:45:08]MH_I2C_Read... [09:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:08]Read from MH i2c: E2 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 17 00 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 17 00 2A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0F [09:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:45:08]wFMCommunicate OK [09:45:08]CreateOFDProtocolMessage done [09:45:08]OFDSenderStorePacket 64124 [09:45:08]StoreOFDPacket docnum=64124 [09:45:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 24 01 00 00 AE D0 1C 01 C2 0A 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 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 2C 00 00 00 F4 03 04 00 A6 33 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7C FA 00 00 35 04 06 00 ED D4 21 3D 9D 51 CF 39 FA DC 8F 3C 58 C3 [09:45:08]CheckFolder [09:45:08]dirname=/storage/ofd_packets [09:45:08]CheckFolder done [09:45:08]ProducePacketName [09:45:08]name=ofd_packets/00064124 [09:45:08]NVStorageSaveData ofd_packets/00064124 [09:45:08]File name is /storage/ofd_packets/00064124 [09:45:08]Write 322 bytes [09:45:08]NVStorageSaveData done [09:45:08]OFDSenderStorePacket done [09:45:08]KKMCreateOFDPacket done [09:45:08]NVStorageSaveData kkm_last_timestamp [09:45:08]File name is /storage/kkm_last_timestamp [09:45:08]Write 4 bytes [09:45:08]NVStorageSaveData done [09:45:08]ExternCall_PrintAddStr [09:45:08]wPrintStart [09:45:08]Write to MH i2c: 01 00 00 2B 19 44 [09:45:08]Write i2c OK [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: 01 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: 01 07 00 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: 01 07 00 2B 19 00 00 00 00 00 FF 0F 59 [09:45:08]RasterBufferAndPrint [09:45:08]line Счет N : (3)73661 [09:45:08]line ИНН: 02508201610067 [09:45:08]line Контрольно-Кассовый Чек [09:45:08]line ПРОДАЖА [09:45:08]line Товар: 4640030091607 [09:45:08]line Сигареты ESSE Exchange [09:45:08]line 1.000 * 138.00 [09:45:08]line = 138.00 [09:45:08]line НДС 12% НСП 1% [09:45:08]line > о реализуемом товаре [09:45:08]line ИТОГО: 138.00 [09:45:08]line НСП 1% : 1.22 [09:45:08]line НДС 12% : 14.65 [09:45:08]line Наличными: 138.00 [09:45:08]line Безнал.: 0.00 [09:45:08]line Место: АЗС № 117 "Партнер Нефть" [09:45:08]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:45:08]line СНО: Общий режим [09:45:08]line Чек 44 05.06.2024 09:45 [09:45:08]line Смена: 375 ФФД: 1.0 [09:45:08]line ЗНМ: 0300000031 [09:45:08]line РНМ: 0000000000092737 [09:45:08]line Версия ККМ: 001 [09:45:08]line ФМ: 0000000000875074 [09:45:08]line ФД: 64124 [09:45:08]line ФПД: 261495346535761 [09:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T094510&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64124&fm=261495346535761&tin=02508201610067®Number=0000000000092737&sum=13800 [09:45:09]line 0 [09:45:09]OFD Sender: Processing packet 64124 [packets to send 14, broken 13] [09:45:09]ProducePacketName [09:45:09]name=ofd_packets/00064124 [09:45:09]OFD Sender: To server: pG, [09:45:09]CommunicateWithHost lk.salyk.kg:30040 [09:45:09]ConnectInit lk.salyk.kg [09:45:09]written 0, free lines is 4095 [09:45:09]Connected sock=10 [09:45:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 24 01 00 00 AE D0 1C 01 C2 0A 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 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 2C 00 00 00 F4 03 04 00 A6 33 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7C FA 00 00 35 04 06 00 ED D4 21 3D 9D 51 CF 39 FA DC 8F 3C 58 C3 [09:45:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 B0 FE 47 00 83 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7C FA 00 00 F4 03 04 00 B2 DF 5F 66 B6 04 01 00 00 A3 31 02 89 C5 F9 EE B6 [09:45:09]CommunicateWithHost err = 0 [09:45:09]CheckOFDResponse [09:45:09]1017 (14) - 77093643461234 [09:45:09]1041 (16) - 0000000000875074 [09:45:09]1040 (4) - 64124 [09:45:09]1012 (4) - 05.06.2024 03:46 [09:45:09]1206 (1) - 0 [09:45:09]OFD Sender: Remove packet 64124 [09:45:09]ProducePacketName [09:45:09]name=ofd_packets/00064124 [09:45:09]NVStorageDeleteData [09:45:09]Write to MH i2c: 01 00 00 53 19 6C [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: 01 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: 01 07 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: 01 07 00 53 19 00 00 00 00 00 FE 0C 7D [09:45:09]RasterBufferAndPrint [09:45:09]line [09:45:09]line [09:45:09]line [09:45:09]line [09:45:09]line [09:45:09]written 0, free lines is 3332 [09:45:09]MH_Cut [09:45:09]Write to MH i2c: D1 01 00 5A 19 01 45 [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: D1 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: D1 01 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: D1 01 00 5A 19 00 44 [09:45:09]Write to MH i2c: 01 00 00 5B 19 74 [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]OFD Sender: No OFD packet to send [09:45:10]*** Cut start [09:45:10]*** Partial cut [09:45:10]*** CUTSNS_PIN = 1 [09:45:10]*** CUTSNS_PIN = 0 [09:45:10]*** Brake cut motor [09:45:10]Read from MH i2c: 01 [09:45:10]MH_I2C_Read... [09:45:10]*** Stop cut motor [09:45:10]*** Cut end [09:45:10]Read from MH i2c: 01 07 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: 01 07 00 5B 19 00 00 00 00 00 FF 0F 89 [09:45:10]process_action close_receipt done [09:45:10]requested_data is exist [09:45:10]produce_requested_data [09:45:10]requested_item fm.sn is exist - process it [09:45:10]wFMCommunicate request_size=4 [09:45:10]MH_SAM_APDU [09:45:10]CAPDU: 80 11 00 00 [09:45:10]Write to MH i2c: E2 08 00 5C 19 80 11 00 00 00 00 00 00 EF [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 17 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 17 00 5C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 41 [09:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:45:11]wFMCommunicate OK [09:45:11]requested_item fd.num is exist - process it [09:45:11]SAM_PROTO_GetFieldsCounters [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 13 00 00 [09:45:11]Write to MH i2c: E2 08 00 5D 19 80 13 00 00 00 00 00 00 F2 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 62 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 62 00 5D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7C FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [09:45:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7C FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:11]wFMCommunicate OK [09:45:11]SAM_PROTO_GetFieldsCounters done [09:45:11]requested_item shift.num is exist - process it [09:45:11]requested_item shift.opened is exist - process it [09:45:11]req_shift_opened [09:45:11]FM_GetShiftState [09:45:11]SAM_PROTO_GetShiftState [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 13 01 00 [09:45:11]Write to MH i2c: E2 08 00 5E 19 80 13 01 00 00 00 00 00 F4 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 0E 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 0E 00 5E 19 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 35 [09:45:11]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:45:11]wFMCommunicate OK [09:45:11]SAM_PROTO_GetShiftState done [09:45:11]FM_GetShiftState done [09:45:11]req_shift_opened done [09:45:11]requested_item shift.open_date is exist - process it [09:45:11]req_shift_open_date [09:45:11]req_shift_open_date done [09:45:11]produce_requested_data done [09:45:11]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64124,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [09:45:11]process_action_free close_receipt [09:45:11]json_value_free [09:45:11]json_value_free done [09:45:11]process_json_proto returns [09:45:11]Send response to host [09:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64124,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [09:45:11]free response buf [09:45:11]execute_script done [09:45:11]execute_script returns [09:45:11]free content buf [09:45:11]Sock 8.Close socket [09:45:11]Sock 8.Thread stoped [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:15]accept exits with 9 [09:48:15]New connection [09:48:15]New thread 3067133284 created [09:48:15]Thread 3067276644 joined [09:48:15]Waiting for new connection... [09:48:15] Sock 9.Parse request [09:48:15]Sock 9.Check first char [09:48:15]Sock 9.First char is OK [09:48:15]request: POST /json_proto HTTP/1.0 [09:48:15]Method: POST [09:48:15]URL: /json_proto [09:48:15]Method is POST - this is cgi request [09:48:15]url: /json_proto [09:48:15]query_string will be loaded in cgi processing [09:48:15]execute_cgi json_proto POST (null) [09:48:15]execute_cgi path=json_proto method=POST [09:48:15]POST find Content-Length [09:48:15]Host: 172.17.60.69:8080 [09:48:15]Content-Length: 677 [09:48:15]Content-Type: application/json [09:48:15] [09:48:15]POST finish read [09:48:15]Found Content-Length = 677 [09:48:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:15]execute_script... [09:48:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:15]POST & json_proto [09:48:15]process_json_proto [09:48:15]json parsed OK: [09:48:15]protocol is kg_v1.0 [09:48:15]action value=close_receipt [09:48:15]process_action close_receipt [09:48:15]cmd_close_receipt [09:48:15]MH_GetDate [09:48:15]Write to MH i2c: F0 00 00 5F 19 67 [09:48:15]Write i2c OK [09:48:15]MH_I2C_Read... [09:48:15]Read from MH i2c: F0 [09:48:15]MH_I2C_Read... [09:48:15]Read from MH i2c: F0 09 00 [09:48:15]MH_I2C_Read... [09:48:15]Read from MH i2c: F0 09 00 5F 19 00 62 34 60 66 D2 83 5F 66 E6 [09:48:15]GetLastDocTimeStamp 1717580710 [09:48:15]current date 1717580898 [09:48:15]FM_GetShiftState [09:48:15]SAM_PROTO_GetShiftState [09:48:15]wFMCommunicate request_size=4 [09:48:15]MH_SAM_APDU [09:48:15]CAPDU: 80 13 01 00 [09:48:15]Write to MH i2c: E2 08 00 60 19 80 13 01 00 00 00 00 00 F6 [09:48:15]Write i2c OK [09:48:15]MH_I2C_Read... [09:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:15]Read from MH i2c: E2 [09:48:15]MH_I2C_Read... [09:48:15]Read from MH i2c: E2 0E 00 [09:48:15]MH_I2C_Read... [09:48:15]Read from MH i2c: E2 0E 00 60 19 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 37 [09:48:15]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:48:15]wFMCommunicate OK [09:48:15]SAM_PROTO_GetShiftState done [09:48:15]FM_GetShiftState done [09:48:15]opened in 1717545925 [09:48:15]opened+sec_in_day 1717632325 [09:48:15]quantity*price = 50041 [09:48:15]sum+1 = 50042 [09:48:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 45 05.06.2024 09:48 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64125 ФПД: 178608283468120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T094818&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64125&fm=178608283468120&tin=02508201610067®Number=0000000000092737&sum=50000 [09:48:16]StoreToDocumentArchive [09:48:16]shift 375 fd 64125 [09:48:16]save to /storage/0375/doc_00064125 [09:48:16]save last doc name /storage/0375/doc_00064125 to /storage/kkm_last_doc_name [09:48:16]save OK [09:48:16]Clear old archive folders... [09:48:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:16]tlvbuf is 01025850 [09:48:16]SAM_PROTO_ClearQueue [09:48:16]wFMCommunicate request_size=4 [09:48:16]MH_SAM_APDU [09:48:16]CAPDU: 80 09 00 00 [09:48:16]Write to MH i2c: E2 08 00 6D 19 80 09 00 00 00 00 00 00 F8 [09:48:16]Write i2c OK [09:48:16]MH_I2C_Read... [09:48:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:16]Read from MH i2c: E2 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: E2 03 00 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: E2 03 00 6D 19 00 90 00 FA [09:48:16]RAPDU: 90 00 [09:48:16]wFMCommunicate OK [09:48:16]SAM_PROTO_ClearQueue done [09:48:16]KKMCreateOFDPacket [09:48:16]OFDProtocolAddRootSTLVToBuf [09:48:16]FM_MakeSignedData [09:48:16]FM_MakeSignedData [09:48:16]SAM_PROTO_SignData [09:48:16]wFMCommunicate request_size=4 [09:48:16]MH_SAM_APDU [09:48:16]CAPDU: 80 0D 01 02 [09:48:16]Write to MH i2c: E2 08 00 6E 19 80 0D 01 02 00 00 00 00 00 [09:48:16]Write i2c OK [09:48:16]MH_I2C_Read... [09:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:17]Read from MH i2c: E2 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: E2 03 00 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: E2 03 00 6E 19 00 90 00 FB [09:48:17]RAPDU: 90 00 [09:48:17]wFMCommunicate OK [09:48:17]wFMCommunicate request_size=255 [09:48:17]MH_SAM_APDU [09:48:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 62 34 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7D FA 00 00 35 04 06 00 A2 [09:48:17]Write to MH i2c: E2 02 01 6F 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 62 34 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7D FA 00 00 35 04 06 00 A2 00 00 AB [09:48:17]Write i2c OK [09:48:17]MH_I2C_Read... [09:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:17]Read from MH i2c: E2 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: E2 03 00 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: E2 03 00 6F 19 00 90 00 FC [09:48:17]RAPDU: 90 00 [09:48:17]wFMCommunicate OK [09:48:17]wFMCommunicate request_size=10 [09:48:17]MH_SAM_APDU [09:48:17]CAPDU: 80 0D 02 02 05 71 7B 4A 41 58 [09:48:17]Write to MH i2c: E2 0D 00 70 19 80 0D 02 02 05 00 71 7B 4A 41 58 00 00 DC [09:48:17]Write i2c OK [09:48:17]MH_I2C_Read... [09:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:17]Read from MH i2c: E2 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: E2 03 00 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: E2 03 00 70 19 00 90 00 FD [09:48:17]RAPDU: 90 00 [09:48:17]wFMCommunicate OK [09:48:17]wFMCommunicate request_size=4 [09:48:17]MH_SAM_APDU [09:48:17]CAPDU: 80 0D 03 02 [09:48:17]Write to MH i2c: E2 08 00 71 19 80 0D 03 02 00 00 00 00 05 [09:48:17]Write i2c OK [09:48:17]MH_I2C_Read... [09:48:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:17]Read from MH i2c: E2 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: E2 0B 00 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: E2 0B 00 71 19 00 3F BC 1C B1 C6 10 2A 8A 90 00 58 [09:48:17]RAPDU: 3F BC 1C B1 C6 10 2A 8A 90 00 [09:48:17]wFMCommunicate OK [09:48:17]SAM_PROTO_SignData done [09:48:17]FM_MakeSignedData done [09:48:17]CreateOFDProtocolMessage [09:48:17]wFMCommunicate request_size=4 [09:48:17]MH_SAM_APDU [09:48:17]CAPDU: 80 11 00 00 [09:48:17]Write to MH i2c: E2 08 00 72 19 80 11 00 00 00 00 00 00 05 [09:48:17]Write i2c OK [09:48:17]MH_I2C_Read... [09:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:17]Read from MH i2c: E2 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: E2 17 00 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: E2 17 00 72 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 57 [09:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:48:17]wFMCommunicate OK [09:48:17]CreateOFDProtocolMessage done [09:48:17]OFDSenderStorePacket 64125 [09:48:17]StoreOFDPacket docnum=64125 [09:48:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 1E 65 07 01 0B 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 62 34 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7D FA 00 00 35 04 06 00 A2 71 7B 4A 41 58 3F BC 1C B1 C6 10 2A 8A [09:48:17]CheckFolder [09:48:17]dirname=/storage/ofd_packets [09:48:17]CheckFolder done [09:48:17]ProducePacketName [09:48:17]name=ofd_packets/00064125 [09:48:17]NVStorageSaveData ofd_packets/00064125 [09:48:17]File name is /storage/ofd_packets/00064125 [09:48:17]Write 301 bytes [09:48:17]NVStorageSaveData done [09:48:17]OFDSenderStorePacket done [09:48:17]KKMCreateOFDPacket done [09:48:17]NVStorageSaveData kkm_last_timestamp [09:48:17]File name is /storage/kkm_last_timestamp [09:48:17]Write 4 bytes [09:48:17]NVStorageSaveData done [09:48:17]ExternCall_PrintAddStr [09:48:17]wPrintStart [09:48:17]Write to MH i2c: 01 00 00 73 19 8C [09:48:17]Write i2c OK [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: 01 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: 01 07 00 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: 01 07 00 73 19 00 00 00 00 00 FF 0F A1 [09:48:17]RasterBufferAndPrint [09:48:17]line Счет N : (1)545481 [09:48:17]line ИНН: 02508201610067 [09:48:17]line Контрольно-Кассовый Чек [09:48:17]line ПРОДАЖА [09:48:17]line ТРК (МРК, ГНК) : 12 [09:48:17]line Товар: 2710124130 [09:48:17]line Аи-92-К-5 [09:48:17]line 7.480 * 66.90 [09:48:17]line = 500.41 [09:48:17]line НДС 12% НСП 1% [09:48:17]line > о реализуемом товаре [09:48:17]line ОКРУГЛЕНИЕ: -0.41 [09:48:17]line ИТОГО: 500.00 [09:48:17]line Внесено: 500.00 [09:48:17]line СДАЧА: 0.00 [09:48:17]line НСП 1% : 4.43 [09:48:17]line НДС 12% : 53.14 [09:48:17]line Наличными: 500.00 [09:48:17]line Безнал.: 0.00 [09:48:17]line Место: АЗС № 117 "Партнер Нефть" [09:48:17]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:48:17]line СНО: Общий режим [09:48:17]line Чек 45 05.06.2024 09:48 [09:48:17]line Смена: 375 ФФД: 1.0 [09:48:17]line ЗНМ: 0300000031 [09:48:17]line РНМ: 0000000000092737 [09:48:17]line Версия ККМ: 001 [09:48:17]line ФМ: 0000000000875074 [09:48:17]line ФД: 64125 [09:48:17]line ФПД: 178608283468120 [09:48:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T094818&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64125&fm=178608283468120&tin=02508201610067®Number=0000000000092737&sum=50000 [09:48:17]OFD Sender: Processing packet 64125 [packets to send 14, broken 13] [09:48:17]ProducePacketName [09:48:17]name=ofd_packets/00064125 [09:48:17]OFD Sender: To server: pG, [09:48:17]CommunicateWithHost lk.salyk.kg:30040 [09:48:17]ConnectInit lk.salyk.kg [09:48:17]written 0, free lines is 4095 [09:48:17]Connected sock=10 [09:48:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 1E 65 07 01 0B 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 62 34 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7D FA 00 00 35 04 06 00 A2 71 7B 4A 41 58 3F BC 1C B1 C6 10 2A 8A [09:48:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 05 9F 47 00 D5 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7D FA 00 00 F4 03 04 00 6E E0 5F 66 B6 04 01 00 00 A8 85 4E 30 C4 C8 54 8D [09:48:18]CommunicateWithHost err = 0 [09:48:18]CheckOFDResponse [09:48:18]1017 (14) - 77093643461234 [09:48:18]1041 (16) - 0000000000875074 [09:48:18]1040 (4) - 64125 [09:48:18]1012 (4) - 05.06.2024 03:50 [09:48:18]1206 (1) - 0 [09:48:18]OFD Sender: Remove packet 64125 [09:48:18]ProducePacketName [09:48:18]name=ofd_packets/00064125 [09:48:18]NVStorageDeleteData [09:48:18]Write to MH i2c: 01 00 00 9E 19 B7 [09:48:18]Write i2c OK [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: 01 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: 01 07 00 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: 01 07 00 9E 19 00 00 00 00 00 D9 0C A3 [09:48:18]RasterBufferAndPrint [09:48:18]line [09:48:18]line [09:48:18]line [09:48:18]line [09:48:18]line [09:48:18]written 0, free lines is 3296 [09:48:18]MH_Cut [09:48:18]Write to MH i2c: D1 01 00 A5 19 01 90 [09:48:18]Write i2c OK [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: D1 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: D1 01 00 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: D1 01 00 A5 19 00 8F [09:48:18]Write to MH i2c: 01 00 00 A6 19 BF [09:48:18]Write i2c OK [09:48:18]MH_I2C_Read... [09:48:18]OFD Sender: No OFD packet to send [09:48:19]*** Cut start [09:48:19]*** Partial cut [09:48:19]*** CUTSNS_PIN = 1 [09:48:19]*** CUTSNS_PIN = 0 [09:48:19]*** Brake cut motor [09:48:19]Read from MH i2c: 01 [09:48:19]MH_I2C_Read... [09:48:19]*** Stop cut motor [09:48:19]*** Cut end [09:48:19]Read from MH i2c: 01 07 00 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: 01 07 00 A6 19 00 00 00 00 00 FF 0F D4 [09:48:19]process_action close_receipt done [09:48:19]requested_data is exist [09:48:19]produce_requested_data [09:48:19]requested_item fm.sn is exist - process it [09:48:19]wFMCommunicate request_size=4 [09:48:19]MH_SAM_APDU [09:48:19]CAPDU: 80 11 00 00 [09:48:19]Write to MH i2c: E2 08 00 A7 19 80 11 00 00 00 00 00 00 3A [09:48:19]Write i2c OK [09:48:19]MH_I2C_Read... [09:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:19]Read from MH i2c: E2 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 17 00 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 17 00 A7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8C [09:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:48:19]wFMCommunicate OK [09:48:19]requested_item fd.num is exist - process it [09:48:19]SAM_PROTO_GetFieldsCounters [09:48:19]wFMCommunicate request_size=4 [09:48:19]MH_SAM_APDU [09:48:19]CAPDU: 80 13 00 00 [09:48:19]Write to MH i2c: E2 08 00 A8 19 80 13 00 00 00 00 00 00 3D [09:48:19]Write i2c OK [09:48:19]MH_I2C_Read... [09:48:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:19]Read from MH i2c: E2 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 62 00 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 62 00 A8 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7D FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [09:48:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7D FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:19]wFMCommunicate OK [09:48:19]SAM_PROTO_GetFieldsCounters done [09:48:19]requested_item shift.num is exist - process it [09:48:19]requested_item shift.opened is exist - process it [09:48:19]req_shift_opened [09:48:19]FM_GetShiftState [09:48:19]SAM_PROTO_GetShiftState [09:48:19]wFMCommunicate request_size=4 [09:48:19]MH_SAM_APDU [09:48:19]CAPDU: 80 13 01 00 [09:48:19]Write to MH i2c: E2 08 00 A9 19 80 13 01 00 00 00 00 00 3F [09:48:19]Write i2c OK [09:48:19]MH_I2C_Read... [09:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:19]Read from MH i2c: E2 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 0E 00 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 0E 00 A9 19 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 80 [09:48:19]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [09:48:19]wFMCommunicate OK [09:48:19]SAM_PROTO_GetShiftState done [09:48:19]FM_GetShiftState done [09:48:19]req_shift_opened done [09:48:19]requested_item shift.open_date is exist - process it [09:48:19]req_shift_open_date [09:48:19]req_shift_open_date done [09:48:19]produce_requested_data done [09:48:19]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64125,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [09:48:19]process_action_free close_receipt [09:48:19]json_value_free [09:48:19]json_value_free done [09:48:19]process_json_proto returns [09:48:19]Send response to host [09:48:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64125,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [09:48:19]free response buf [09:48:19]execute_script done [09:48:19]execute_script returns [09:48:19]free content buf [09:48:19]Sock 9.Close socket [09:48:19]Sock 9.Thread stoped [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:15]accept exits with 8 [10:01:15]New connection [10:01:15]New thread 3067276644 created [10:01:15]Thread 3067133284 joined [10:01:15]Waiting for new connection... [10:01:15] Sock 8.Parse request [10:01:15]Sock 8.Check first char [10:01:15]Sock 8.First char is OK [10:01:15]request: POST /json_proto HTTP/1.0 [10:01:15]Method: POST [10:01:15]URL: /json_proto [10:01:15]Method is POST - this is cgi request [10:01:15]url: /json_proto [10:01:15]query_string will be loaded in cgi processing [10:01:15]execute_cgi json_proto POST (null) [10:01:15]execute_cgi path=json_proto method=POST [10:01:15]POST find Content-Length [10:01:15]Host: 172.17.60.69:8080 [10:01:15]Content-Length: 644 [10:01:15]Content-Type: application/json [10:01:15] [10:01:15]POST finish read [10:01:15]Found Content-Length = 644 [10:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73662", "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" ] } } [10:01:15]execute_script... [10:01: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)73662", "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" ] } } [10:01:15]POST & json_proto [10:01:15]process_json_proto [10:01:15]json parsed OK: [10:01:15]protocol is kg_v1.0 [10:01:15]action value=close_receipt [10:01:15]process_action close_receipt [10:01:15]cmd_close_receipt [10:01:15]MH_GetDate [10:01:15]Write to MH i2c: F0 00 00 AA 19 B2 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: F0 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: F0 09 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: F0 09 00 AA 19 00 6E 37 60 66 D2 83 5F 66 40 [10:01:15]GetLastDocTimeStamp 1717580898 [10:01:15]current date 1717581678 [10:01:15]FM_GetShiftState [10:01:15]SAM_PROTO_GetShiftState [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 13 01 00 [10:01:15]Write to MH i2c: E2 08 00 AB 19 80 13 01 00 00 00 00 00 41 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 0E 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 0E 00 AB 19 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 82 [10:01:15]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:01:15]wFMCommunicate OK [10:01:15]SAM_PROTO_GetShiftState done [10:01:15]FM_GetShiftState done [10:01:15]opened in 1717545925 [10:01:15]opened+sec_in_day 1717632325 [10:01:15]quantity*price = 6000 [10:01:15]sum+1 = 6001 [10:01:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 46 05.06.2024 10:01 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64126 ФПД: 76828749773683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T100118&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64126&fm=76828749773683&tin=02508201610067®Number=0000000000092737&sum=6000 0 [10:01:16]StoreToDocumentArchive [10:01:16]shift 375 fd 64126 [10:01:16]save to /storage/0375/doc_00064126 [10:01:16]save last doc name /storage/0375/doc_00064126 to /storage/kkm_last_doc_name [10:01:16]save OK [10:01:16]Clear old archive folders... [10:01:16]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:01:16]tlvbuf is B6EF7090 [10:01:16]SAM_PROTO_ClearQueue [10:01:16]wFMCommunicate request_size=4 [10:01:16]MH_SAM_APDU [10:01:16]CAPDU: 80 09 00 00 [10:01:16]Write to MH i2c: E2 08 00 B8 19 80 09 00 00 00 00 00 00 43 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 03 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 03 00 B8 19 00 90 00 45 [10:01:16]RAPDU: 90 00 [10:01:16]wFMCommunicate OK [10:01:16]SAM_PROTO_ClearQueue done [10:01:16]KKMCreateOFDPacket [10:01:16]OFDProtocolAddRootSTLVToBuf [10:01:16]FM_MakeSignedData [10:01:16]FM_MakeSignedData [10:01:16]SAM_PROTO_SignData [10:01:16]wFMCommunicate request_size=4 [10:01:16]MH_SAM_APDU [10:01:16]CAPDU: 80 0D 01 02 [10:01:16]Write to MH i2c: E2 08 00 B9 19 80 0D 01 02 00 00 00 00 4B [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 03 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 03 00 B9 19 00 90 00 46 [10:01:16]RAPDU: 90 00 [10:01:16]wFMCommunicate OK [10:01:16]wFMCommunicate request_size=255 [10:01:16]MH_SAM_APDU [10:01:16]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 2E 00 00 00 F4 03 04 00 6E 37 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [10:01:16]Write to MH i2c: E2 02 01 BA 19 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 2E 00 00 00 F4 03 04 00 6E 37 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 00 00 9A [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 03 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 03 00 BA 19 00 90 00 47 [10:01:16]RAPDU: 90 00 [10:01:16]wFMCommunicate OK [10:01:16]wFMCommunicate request_size=35 [10:01:16]MH_SAM_APDU [10:01:16]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7E FA 00 00 35 04 06 00 45 E0 16 56 BB 73 [10:01:16]Write to MH i2c: E2 26 00 BB 19 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7E FA 00 00 35 04 06 00 45 E0 16 56 BB 73 00 00 77 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 03 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 03 00 BB 19 00 90 00 48 [10:01:16]RAPDU: 90 00 [10:01:16]wFMCommunicate OK [10:01:16]wFMCommunicate request_size=4 [10:01:16]MH_SAM_APDU [10:01:16]CAPDU: 80 0D 03 02 [10:01:16]Write to MH i2c: E2 08 00 BC 19 80 0D 03 02 00 00 00 00 50 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 0B 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 0B 00 BC 19 00 FA 2B D4 CC 5C C9 D6 DA 90 00 EB [10:01:16]RAPDU: FA 2B D4 CC 5C C9 D6 DA 90 00 [10:01:16]wFMCommunicate OK [10:01:16]SAM_PROTO_SignData done [10:01:16]FM_MakeSignedData done [10:01:16]CreateOFDProtocolMessage [10:01:16]wFMCommunicate request_size=4 [10:01:16]MH_SAM_APDU [10:01:16]CAPDU: 80 11 00 00 [10:01:16]Write to MH i2c: E2 08 00 BD 19 80 11 00 00 00 00 00 00 50 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 17 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 17 00 BD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A2 [10:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:01:16]wFMCommunicate OK [10:01:16]CreateOFDProtocolMessage done [10:01:16]OFDSenderStorePacket 64126 [10:01:16]StoreOFDPacket docnum=64126 [10:01:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 7C 58 20 01 4E D4 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 2E 00 00 00 F4 03 04 00 6E 37 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7E FA 00 00 35 04 06 00 45 E0 16 56 BB 73 FA 2B D4 CC 5C C9 D6 DA [10:01:16]CheckFolder [10:01:16]dirname=/storage/ofd_packets [10:01:16]CheckFolder done [10:01:16]ProducePacketName [10:01:16]name=ofd_packets/00064126 [10:01:16]NVStorageSaveData ofd_packets/00064126 [10:01:16]File name is /storage/ofd_packets/00064126 [10:01:16]Write 326 bytes [10:01:16]NVStorageSaveData done [10:01:16]OFDSenderStorePacket done [10:01:16]KKMCreateOFDPacket done [10:01:16]NVStorageSaveData kkm_last_timestamp [10:01:16]File name is /storage/kkm_last_timestamp [10:01:16]Write 4 bytes [10:01:16]NVStorageSaveData done [10:01:16]ExternCall_PrintAddStr [10:01:16]wPrintStart [10:01:16]Write to MH i2c: 01 00 00 BE 19 D7 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 BE 19 00 00 00 00 00 FF 0F EC [10:01:16]RasterBufferAndPrint [10:01:16]line Счет N : (3)73662 [10:01:16]line ИНН: 02508201610067 [10:01:16]line Контрольно-Кассовый Чек [10:01:16]line ПРОДАЖА [10:01:16]line Товар: 4700000310043 [10:01:16]line Вода Жалалабат 27 1л [10:01:16]line 1.000 * 60.00 [10:01:16]line = 60.00 [10:01:16]line НДС 12% НСП 1% [10:01:16]line > о реализуемом товаре [10:01:16]line ИТОГО: 60.00 [10:01:16]line НСП 1% : 0.53 [10:01:16]line НДС 12% : 6.37 [10:01:16]line Наличными: 60.00 [10:01:16]line Безнал.: 0.00 [10:01:16]line Место: АЗС № 117 "Партнер Нефть" [10:01:16]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:01:16]line СНО: Общий режим [10:01:16]line Чек 46 05.06.2024 10:01 [10:01:16]line Смена: 375 ФФД: 1.0 [10:01:16]line ЗНМ: 0300000031 [10:01:16]line РНМ: 0000000000092737 [10:01:16]line Версия ККМ: 001 [10:01:16]line ФМ: 0000000000875074 [10:01:16]line ФД: 64126 [10:01:16]line ФПД: 76828749773683 [10:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T100118&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64126&fm=76828749773683&tin=02508201610067®Number=0000000000092737&sum=6000 [10:01:17]line 0 [10:01:17]OFD Sender: Processing packet 64126 [packets to send 14, broken 13] [10:01:17]ProducePacketName [10:01:17]name=ofd_packets/00064126 [10:01:17]OFD Sender: To server: pG, [10:01:17]CommunicateWithHost lk.salyk.kg:30040 [10:01:17]ConnectInit lk.salyk.kg [10:01:17]written 0, free lines is 4095 [10:01:17]Connected sock=10 [10:01:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 7C 58 20 01 4E D4 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 2E 00 00 00 F4 03 04 00 6E 37 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7E FA 00 00 35 04 06 00 45 E0 16 56 BB 73 FA 2B D4 CC 5C C9 D6 DA [10:01:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 59 3F 47 00 EC 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7E FA 00 00 F4 03 04 00 7A E3 5F 66 B6 04 01 00 00 F1 B7 4C F9 DD 77 09 B5 [10:01:17]CommunicateWithHost err = 0 [10:01:17]CheckOFDResponse [10:01:17]1017 (14) - 77093643461234 [10:01:17]1041 (16) - 0000000000875074 [10:01:17]1040 (4) - 64126 [10:01:17]1012 (4) - 05.06.2024 04:03 [10:01:17]1206 (1) - 0 [10:01:17]OFD Sender: Remove packet 64126 [10:01:17]ProducePacketName [10:01:17]name=ofd_packets/00064126 [10:01:17]NVStorageDeleteData [10:01:17]Write to MH i2c: 01 00 00 E6 19 FF [10:01:17]Write i2c OK [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: 01 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: 01 07 00 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: 01 07 00 E6 19 00 00 00 00 00 F6 0C 08 [10:01:17]RasterBufferAndPrint [10:01:17]line [10:01:17]line [10:01:17]line [10:01:17]line [10:01:17]line [10:01:17]written 0, free lines is 3324 [10:01:17]MH_Cut [10:01:17]Write to MH i2c: D1 01 00 ED 19 01 D8 [10:01:17]Write i2c OK [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: D1 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: D1 01 00 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: D1 01 00 ED 19 00 D7 [10:01:17]Write to MH i2c: 01 00 00 EE 19 07 [10:01:17]Write i2c OK [10:01:17]MH_I2C_Read... [10:01:17]OFD Sender: No OFD packet to send [10:01:18]*** Cut start [10:01:18]*** Partial cut [10:01:18]*** CUTSNS_PIN = 1 [10:01:18]*** CUTSNS_PIN = 0 [10:01:18]*** Brake cut motor [10:01:19]Read from MH i2c: 01 [10:01:19]MH_I2C_Read... [10:01:19]*** Stop cut motor [10:01:19]*** Cut end [10:01:19]Read from MH i2c: 01 07 00 [10:01:19]MH_I2C_Read... [10:01:19]Read from MH i2c: 01 07 00 EE 19 00 00 00 00 00 FF 0F 1C [10:01:19]process_action close_receipt done [10:01:19]requested_data is exist [10:01:19]produce_requested_data [10:01:19]requested_item fm.sn is exist - process it [10:01:19]wFMCommunicate request_size=4 [10:01:19]MH_SAM_APDU [10:01:19]CAPDU: 80 11 00 00 [10:01:19]Write to MH i2c: E2 08 00 EF 19 80 11 00 00 00 00 00 00 82 [10:01:19]Write i2c OK [10:01:19]MH_I2C_Read... [10:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:19]Read from MH i2c: E2 [10:01:19]MH_I2C_Read... [10:01:19]Read from MH i2c: E2 17 00 [10:01:19]MH_I2C_Read... [10:01:19]Read from MH i2c: E2 17 00 EF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D4 [10:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:01:19]wFMCommunicate OK [10:01:19]requested_item fd.num is exist - process it [10:01:19]SAM_PROTO_GetFieldsCounters [10:01:19]wFMCommunicate request_size=4 [10:01:19]MH_SAM_APDU [10:01:19]CAPDU: 80 13 00 00 [10:01:19]Write to MH i2c: E2 08 00 F0 19 80 13 00 00 00 00 00 00 85 [10:01:19]Write i2c OK [10:01:19]MH_I2C_Read... [10:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:19]Read from MH i2c: E2 [10:01:19]MH_I2C_Read... [10:01:19]Read from MH i2c: E2 62 00 [10:01:19]MH_I2C_Read... [10:01:19]Read from MH i2c: E2 62 00 F0 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7E FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [10:01:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7E FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:19]wFMCommunicate OK [10:01:19]SAM_PROTO_GetFieldsCounters done [10:01:19]requested_item shift.num is exist - process it [10:01:19]requested_item shift.opened is exist - process it [10:01:19]req_shift_opened [10:01:19]FM_GetShiftState [10:01:19]SAM_PROTO_GetShiftState [10:01:19]wFMCommunicate request_size=4 [10:01:19]MH_SAM_APDU [10:01:19]CAPDU: 80 13 01 00 [10:01:19]Write to MH i2c: E2 08 00 F1 19 80 13 01 00 00 00 00 00 87 [10:01:19]Write i2c OK [10:01:19]MH_I2C_Read... [10:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:19]Read from MH i2c: E2 [10:01:19]MH_I2C_Read... [10:01:19]Read from MH i2c: E2 0E 00 [10:01:19]MH_I2C_Read... [10:01:19]Read from MH i2c: E2 0E 00 F1 19 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 C8 [10:01:19]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:01:19]wFMCommunicate OK [10:01:19]SAM_PROTO_GetShiftState done [10:01:19]FM_GetShiftState done [10:01:19]req_shift_opened done [10:01:19]requested_item shift.open_date is exist - process it [10:01:19]req_shift_open_date [10:01:19]req_shift_open_date done [10:01:19]produce_requested_data done [10:01:19]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64126,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:01:19]process_action_free close_receipt [10:01:19]json_value_free [10:01:19]json_value_free done [10:01:19]process_json_proto returns [10:01:19]Send response to host [10:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64126,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:01:19]free response buf [10:01:19]execute_script done [10:01:19]execute_script returns [10:01:19]free content buf [10:01:19]Sock 8.Close socket [10:01:19]Sock 8.Thread stoped [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:25]accept exits with 9 [10:07:25]New connection [10:07:25]New thread 3067133284 created [10:07:25]Thread 3067276644 joined [10:07:25]Waiting for new connection... [10:07:25] Sock 9.Parse request [10:07:25]Sock 9.Check first char [10:07:25]Sock 9.First char is OK [10:07:25]request: POST /json_proto HTTP/1.0 [10:07:25]Method: POST [10:07:25]URL: /json_proto [10:07:25]Method is POST - this is cgi request [10:07:25]url: /json_proto [10:07:25]query_string will be loaded in cgi processing [10:07:25]execute_cgi json_proto POST (null) [10:07:25]execute_cgi path=json_proto method=POST [10:07:25]POST find Content-Length [10:07:25]Host: 172.17.60.69:8080 [10:07:25]Content-Length: 679 [10:07:25]Content-Type: application/json [10:07:25] [10:07:25]POST finish read [10:07:25]Found Content-Length = 679 [10:07:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:25]execute_script... [10:07:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:25]POST & json_proto [10:07:25]process_json_proto [10:07:25]json parsed OK: [10:07:25]protocol is kg_v1.0 [10:07:25]action value=close_receipt [10:07:25]process_action close_receipt [10:07:25]cmd_close_receipt [10:07:25]MH_GetDate [10:07:25]Write to MH i2c: F0 00 00 F2 19 FA [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: F0 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: F0 09 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: F0 09 00 F2 19 00 E0 38 60 66 D2 83 5F 66 FB [10:07:25]GetLastDocTimeStamp 1717581678 [10:07:25]current date 1717582048 [10:07:25]FM_GetShiftState [10:07:25]SAM_PROTO_GetShiftState [10:07:25]wFMCommunicate request_size=4 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 13 01 00 [10:07:25]Write to MH i2c: E2 08 00 F3 19 80 13 01 00 00 00 00 00 89 [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 0E 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 0E 00 F3 19 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 CA [10:07:25]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:07:25]wFMCommunicate OK [10:07:25]SAM_PROTO_GetShiftState done [10:07:25]FM_GetShiftState done [10:07:25]opened in 1717545925 [10:07:25]opened+sec_in_day 1717632325 [10:07:25]quantity*price = 100018 [10:07:25]sum+1 = 100020 [10:07:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 47 05.06.2024 10:07 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64127 ФПД: 74081537310911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T100728&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64127&fm=74081537310911&tin=02508201610067®Number=0000000000092737&sum=100000 [10:07:26]StoreToDocumentArchive [10:07:26]shift 375 fd 64127 [10:07:26]save to /storage/0375/doc_00064127 [10:07:26]save last doc name /storage/0375/doc_00064127 to /storage/kkm_last_doc_name [10:07:26]save OK [10:07:26]Clear old archive folders... [10:07:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:07:26]tlvbuf is 00FADF10 [10:07:26]SAM_PROTO_ClearQueue [10:07:26]wFMCommunicate request_size=4 [10:07:26]MH_SAM_APDU [10:07:26]CAPDU: 80 09 00 00 [10:07:26]Write to MH i2c: E2 08 00 00 1A 80 09 00 00 00 00 00 00 8C [10:07:26]Write i2c OK [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 [10:07:26]MH_I2C_Read... [10:07:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:26]Read from MH i2c: E2 03 00 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 03 00 00 1A 00 90 00 8E [10:07:26]RAPDU: 90 00 [10:07:26]wFMCommunicate OK [10:07:26]SAM_PROTO_ClearQueue done [10:07:26]KKMCreateOFDPacket [10:07:26]OFDProtocolAddRootSTLVToBuf [10:07:26]FM_MakeSignedData [10:07:26]FM_MakeSignedData [10:07:26]SAM_PROTO_SignData [10:07:26]wFMCommunicate request_size=4 [10:07:26]MH_SAM_APDU [10:07:26]CAPDU: 80 0D 01 02 [10:07:26]Write to MH i2c: E2 08 00 01 1A 80 0D 01 02 00 00 00 00 94 [10:07:26]Write i2c OK [10:07:26]MH_I2C_Read... [10:07:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:26]Read from MH i2c: E2 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 03 00 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 03 00 01 1A 00 90 00 8F [10:07:26]RAPDU: 90 00 [10:07:26]wFMCommunicate OK [10:07:26]wFMCommunicate request_size=255 [10:07:26]MH_SAM_APDU [10:07:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E0 38 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7F FA 00 00 35 04 06 00 43 60 73 B7 [10:07:26]Write to MH i2c: E2 02 01 02 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E0 38 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7F FA 00 00 35 04 06 00 43 60 73 B7 00 00 C7 [10:07:26]Write i2c OK [10:07:26]MH_I2C_Read... [10:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:26]Read from MH i2c: E2 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 03 00 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 03 00 02 1A 00 90 00 90 [10:07:26]RAPDU: 90 00 [10:07:26]wFMCommunicate OK [10:07:26]wFMCommunicate request_size=7 [10:07:26]MH_SAM_APDU [10:07:26]CAPDU: 80 0D 02 02 02 40 BF [10:07:26]Write to MH i2c: E2 0A 00 03 1A 80 0D 02 02 02 00 40 BF 00 00 9A [10:07:26]Write i2c OK [10:07:26]MH_I2C_Read... [10:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:26]Read from MH i2c: E2 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 03 00 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 03 00 03 1A 00 90 00 91 [10:07:26]RAPDU: 90 00 [10:07:26]wFMCommunicate OK [10:07:26]wFMCommunicate request_size=4 [10:07:26]MH_SAM_APDU [10:07:26]CAPDU: 80 0D 03 02 [10:07:26]Write to MH i2c: E2 08 00 04 1A 80 0D 03 02 00 00 00 00 99 [10:07:26]Write i2c OK [10:07:26]MH_I2C_Read... [10:07:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:26]Read from MH i2c: E2 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 0B 00 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 0B 00 04 1A 00 02 35 64 DD 98 36 1D F2 90 00 EF [10:07:26]RAPDU: 02 35 64 DD 98 36 1D F2 90 00 [10:07:26]wFMCommunicate OK [10:07:26]SAM_PROTO_SignData done [10:07:26]FM_MakeSignedData done [10:07:26]CreateOFDProtocolMessage [10:07:26]wFMCommunicate request_size=4 [10:07:26]MH_SAM_APDU [10:07:26]CAPDU: 80 11 00 00 [10:07:26]Write to MH i2c: E2 08 00 05 1A 80 11 00 00 00 00 00 00 99 [10:07:26]Write i2c OK [10:07:26]MH_I2C_Read... [10:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:27]Read from MH i2c: E2 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: E2 17 00 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: E2 17 00 05 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EB [10:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:07:27]wFMCommunicate OK [10:07:27]CreateOFDProtocolMessage done [10:07:27]OFDSenderStorePacket 64127 [10:07:27]StoreOFDPacket docnum=64127 [10:07:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 64 91 04 01 00 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E0 38 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7F FA 00 00 35 04 06 00 43 60 73 B7 40 BF 02 35 64 DD 98 36 1D F2 [10:07:27]CheckFolder [10:07:27]dirname=/storage/ofd_packets [10:07:27]CheckFolder done [10:07:27]ProducePacketName [10:07:27]name=ofd_packets/00064127 [10:07:27]NVStorageSaveData ofd_packets/00064127 [10:07:27]File name is /storage/ofd_packets/00064127 [10:07:27]Write 298 bytes [10:07:27]NVStorageSaveData done [10:07:27]OFDSenderStorePacket done [10:07:27]KKMCreateOFDPacket done [10:07:27]NVStorageSaveData kkm_last_timestamp [10:07:27]File name is /storage/kkm_last_timestamp [10:07:27]Write 4 bytes [10:07:27]NVStorageSaveData done [10:07:27]ExternCall_PrintAddStr [10:07:27]wPrintStart [10:07:27]Write to MH i2c: 01 00 00 06 1A 20 [10:07:27]Write i2c OK [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: 01 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: 01 07 00 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: 01 07 00 06 1A 00 00 00 00 00 FF 0F 35 [10:07:27]RasterBufferAndPrint [10:07:27]line Счет N : (1)545502 [10:07:27]line ИНН: 02508201610067 [10:07:27]line Контрольно-Кассовый Чек [10:07:27]line ПРОДАЖА [10:07:27]line ТРК (МРК, ГНК) : 31 [10:07:27]line Товар: 2710194210 [10:07:27]line ДТ-К-5 [10:07:27]line 13.720 * 72.90 [10:07:27]line = 1000.19 [10:07:27]line НДС 12% НСП 1% [10:07:27]line > о реализуемом товаре [10:07:27]line ОКРУГЛЕНИЕ: -0.19 [10:07:27]line ИТОГО: 1000.00 [10:07:27]line Внесено: 1000.00 [10:07:27]line СДАЧА: 0.00 [10:07:27]line НСП 1% : 8.85 [10:07:27]line НДС 12% : 106.21 [10:07:27]line Наличными: 1000.00 [10:07:27]line Безнал.: 0.00 [10:07:27]line Место: АЗС № 117 "Партнер Нефть" [10:07:27]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:07:27]line СНО: Общий режим [10:07:27]line Чек 47 05.06.2024 10:07 [10:07:27]line Смена: 375 ФФД: 1.0 [10:07:27]line ЗНМ: 0300000031 [10:07:27]line РНМ: 0000000000092737 [10:07:27]line Версия ККМ: 001 [10:07:27]line ФМ: 0000000000875074 [10:07:27]line ФД: 64127 [10:07:27]line ФПД: 74081537310911 [10:07:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T100728&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64127&fm=74081537310911&tin=02508201610067®Number=0000000000092737&sum=100000 [10:07:27]OFD Sender: Processing packet 64127 [packets to send 14, broken 13] [10:07:27]ProducePacketName [10:07:27]name=ofd_packets/00064127 [10:07:27]OFD Sender: To server: pG, [10:07:27]CommunicateWithHost lk.salyk.kg:30040 [10:07:27]ConnectInit lk.salyk.kg [10:07:27]written 0, free lines is 4095 [10:07:27]Connected sock=10 [10:07:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 64 91 04 01 00 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E0 38 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7F FA 00 00 35 04 06 00 43 60 73 B7 40 BF 02 35 64 DD 98 36 1D F2 [10:07:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 22 D4 47 00 67 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7F FA 00 00 F4 03 04 00 EC E4 5F 66 B6 04 01 00 00 32 EC 94 09 2E 7F BD 97 [10:07:27]CommunicateWithHost err = 0 [10:07:27]CheckOFDResponse [10:07:27]1017 (14) - 77093643461234 [10:07:27]1041 (16) - 0000000000875074 [10:07:27]1040 (4) - 64127 [10:07:27]1012 (4) - 05.06.2024 04:09 [10:07:27]1206 (1) - 0 [10:07:27]OFD Sender: Remove packet 64127 [10:07:27]ProducePacketName [10:07:27]name=ofd_packets/00064127 [10:07:27]NVStorageDeleteData [10:07:27]Write to MH i2c: 01 00 00 31 1A 4B [10:07:27]Write i2c OK [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: 01 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: 01 07 00 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: 01 07 00 31 1A 00 00 00 00 00 C3 0C 21 [10:07:27]RasterBufferAndPrint [10:07:27]line [10:07:27]line [10:07:27]line [10:07:27]line [10:07:27]line [10:07:27]written 0, free lines is 3273 [10:07:27]MH_Cut [10:07:27]Write to MH i2c: D1 01 00 38 1A 01 24 [10:07:27]Write i2c OK [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: D1 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: D1 01 00 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: D1 01 00 38 1A 00 23 [10:07:27]Write to MH i2c: 01 00 00 39 1A 53 [10:07:27]Write i2c OK [10:07:27]MH_I2C_Read... [10:07:28]OFD Sender: No OFD packet to send [10:07:28]*** Cut start [10:07:28]*** Partial cut [10:07:28]*** CUTSNS_PIN = 1 [10:07:28]*** CUTSNS_PIN = 0 [10:07:28]*** Brake cut motor [10:07:29]Read from MH i2c: 01 [10:07:29]MH_I2C_Read... [10:07:29]*** Stop cut motor [10:07:29]*** Cut end [10:07:29]Read from MH i2c: 01 07 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: 01 07 00 39 1A 00 00 00 00 00 FF 0F 68 [10:07:29]process_action close_receipt done [10:07:29]requested_data is exist [10:07:29]produce_requested_data [10:07:29]requested_item fm.sn is exist - process it [10:07:29]wFMCommunicate request_size=4 [10:07:29]MH_SAM_APDU [10:07:29]CAPDU: 80 11 00 00 [10:07:29]Write to MH i2c: E2 08 00 3A 1A 80 11 00 00 00 00 00 00 CE [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:29]Read from MH i2c: E2 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 17 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 17 00 3A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 20 [10:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:07:29]wFMCommunicate OK [10:07:29]requested_item fd.num is exist - process it [10:07:29]SAM_PROTO_GetFieldsCounters [10:07:29]wFMCommunicate request_size=4 [10:07:29]MH_SAM_APDU [10:07:29]CAPDU: 80 13 00 00 [10:07:29]Write to MH i2c: E2 08 00 3B 1A 80 13 00 00 00 00 00 00 D1 [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:29]Read from MH i2c: E2 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 62 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 62 00 3B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7F FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [10:07:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7F FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:29]wFMCommunicate OK [10:07:29]SAM_PROTO_GetFieldsCounters done [10:07:29]requested_item shift.num is exist - process it [10:07:29]requested_item shift.opened is exist - process it [10:07:29]req_shift_opened [10:07:29]FM_GetShiftState [10:07:29]SAM_PROTO_GetShiftState [10:07:29]wFMCommunicate request_size=4 [10:07:29]MH_SAM_APDU [10:07:29]CAPDU: 80 13 01 00 [10:07:29]Write to MH i2c: E2 08 00 3C 1A 80 13 01 00 00 00 00 00 D3 [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:29]Read from MH i2c: E2 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 0E 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 0E 00 3C 1A 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 14 [10:07:29]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:07:29]wFMCommunicate OK [10:07:29]SAM_PROTO_GetShiftState done [10:07:29]FM_GetShiftState done [10:07:29]req_shift_opened done [10:07:29]requested_item shift.open_date is exist - process it [10:07:29]req_shift_open_date [10:07:29]req_shift_open_date done [10:07:29]produce_requested_data done [10:07:29]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64127,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:07:29]process_action_free close_receipt [10:07:29]json_value_free [10:07:29]json_value_free done [10:07:29]process_json_proto returns [10:07:29]Send response to host [10:07:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64127,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:07:29]free response buf [10:07:29]execute_script done [10:07:29]execute_script returns [10:07:29]free content buf [10:07:29]Sock 9.Close socket [10:07:29]Sock 9.Thread stoped [10:07:33]OFD Sender: No OFD packet to send [10:07:35]accept exits with 8 [10:07:35]New connection [10:07:35]New thread 3067276644 created [10:07:35]Thread 3067133284 joined [10:07:35]Waiting for new connection... [10:07:35] Sock 8.Parse request [10:07:35]Sock 8.Check first char [10:07:35]Sock 8.First char is OK [10:07:35]request: POST /json_proto HTTP/1.0 [10:07:35]Method: POST [10:07:35]URL: /json_proto [10:07:35]Method is POST - this is cgi request [10:07:35]url: /json_proto [10:07:35]query_string will be loaded in cgi processing [10:07:35]execute_cgi json_proto POST (null) [10:07:35]execute_cgi path=json_proto method=POST [10:07:35]POST find Content-Length [10:07:35]Host: 172.17.60.69:8080 [10:07:35]Content-Length: 678 [10:07:35]Content-Type: application/json [10:07:35] [10:07:35]POST finish read [10:07:35]Found Content-Length = 678 [10:07:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:35]execute_script... [10:07: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)545501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:35]POST & json_proto [10:07:35]process_json_proto [10:07:35]json parsed OK: [10:07:35]protocol is kg_v1.0 [10:07:35]action value=close_receipt [10:07:35]process_action close_receipt [10:07:35]cmd_close_receipt [10:07:35]MH_GetDate [10:07:35]Write to MH i2c: F0 00 00 3D 1A 46 [10:07:35]Write i2c OK [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: F0 [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: F0 09 00 [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: F0 09 00 3D 1A 00 EA 38 60 66 D2 83 5F 66 51 [10:07:35]GetLastDocTimeStamp 1717582048 [10:07:35]current date 1717582058 [10:07:35]FM_GetShiftState [10:07:35]SAM_PROTO_GetShiftState [10:07:35]wFMCommunicate request_size=4 [10:07:35]MH_SAM_APDU [10:07:35]CAPDU: 80 13 01 00 [10:07:35]Write to MH i2c: E2 08 00 3E 1A 80 13 01 00 00 00 00 00 D5 [10:07:35]Write i2c OK [10:07:35]MH_I2C_Read... [10:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:35]Read from MH i2c: E2 [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: E2 0E 00 [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: E2 0E 00 3E 1A 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 16 [10:07:35]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:07:35]wFMCommunicate OK [10:07:35]SAM_PROTO_GetShiftState done [10:07:35]FM_GetShiftState done [10:07:35]opened in 1717545925 [10:07:35]opened+sec_in_day 1717632325 [10:07:35]quantity*price = 80012 [10:07:35]sum+1 = 80013 [10:07:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 48 05.06.2024 10:07 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64128 ФПД: 70409771901568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T100738&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64128&fm=70409771901568&tin=02508201610067®Number=0000000000092737&sum=80000 [10:07:36]StoreToDocumentArchive [10:07:36]shift 375 fd 64128 [10:07:36]save to /storage/0375/doc_00064128 [10:07:36]save last doc name /storage/0375/doc_00064128 to /storage/kkm_last_doc_name [10:07:36]save OK [10:07:36]Clear old archive folders... [10:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:36]tlvbuf is 00FF9690 [10:07:36]SAM_PROTO_ClearQueue [10:07:36]wFMCommunicate request_size=4 [10:07:36]MH_SAM_APDU [10:07:36]CAPDU: 80 09 00 00 [10:07:36]Write to MH i2c: E2 08 00 4B 1A 80 09 00 00 00 00 00 00 D7 [10:07:36]Write i2c OK [10:07:36]MH_I2C_Read... [10:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:36]Read from MH i2c: E2 [10:07:36]MH_I2C_Read... [10:07:36]Read from MH i2c: E2 03 00 [10:07:36]MH_I2C_Read... [10:07:36]Read from MH i2c: E2 03 00 4B 1A 00 90 00 D9 [10:07:36]RAPDU: 90 00 [10:07:36]wFMCommunicate OK [10:07:36]SAM_PROTO_ClearQueue done [10:07:36]KKMCreateOFDPacket [10:07:36]OFDProtocolAddRootSTLVToBuf [10:07:36]FM_MakeSignedData [10:07:36]FM_MakeSignedData [10:07:36]SAM_PROTO_SignData [10:07:36]wFMCommunicate request_size=4 [10:07:36]MH_SAM_APDU [10:07:36]CAPDU: 80 0D 01 02 [10:07:36]Write to MH i2c: E2 08 00 4C 1A 80 0D 01 02 00 00 00 00 DF [10:07:36]Write i2c OK [10:07:36]MH_I2C_Read... [10:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:36]Read from MH i2c: E2 [10:07:36]MH_I2C_Read... [10:07:36]Read from MH i2c: E2 03 00 [10:07:36]MH_I2C_Read... [10:07:36]Read from MH i2c: E2 03 00 4C 1A 00 90 00 DA [10:07:36]RAPDU: 90 00 [10:07:36]wFMCommunicate OK [10:07:36]wFMCommunicate request_size=255 [10:07:36]MH_SAM_APDU [10:07:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 EA 38 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 80 FA 00 00 35 04 06 00 40 [10:07:36]Write to MH i2c: E2 02 01 4D 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 EA 38 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 80 FA 00 00 35 04 06 00 40 00 00 A6 [10:07:36]Write i2c OK [10:07:36]MH_I2C_Read... [10:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:37]Read from MH i2c: E2 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 03 00 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 03 00 4D 1A 00 90 00 DB [10:07:37]RAPDU: 90 00 [10:07:37]wFMCommunicate OK [10:07:37]wFMCommunicate request_size=10 [10:07:37]MH_SAM_APDU [10:07:37]CAPDU: 80 0D 02 02 05 09 8D 71 62 80 [10:07:37]Write to MH i2c: E2 0D 00 4E 1A 80 0D 02 02 05 00 09 8D 71 62 80 00 00 D5 [10:07:37]Write i2c OK [10:07:37]MH_I2C_Read... [10:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:37]Read from MH i2c: E2 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 03 00 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 03 00 4E 1A 00 90 00 DC [10:07:37]RAPDU: 90 00 [10:07:37]wFMCommunicate OK [10:07:37]wFMCommunicate request_size=4 [10:07:37]MH_SAM_APDU [10:07:37]CAPDU: 80 0D 03 02 [10:07:37]Write to MH i2c: E2 08 00 4F 1A 80 0D 03 02 00 00 00 00 E4 [10:07:37]Write i2c OK [10:07:37]MH_I2C_Read... [10:07:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:37]Read from MH i2c: E2 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 0B 00 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 0B 00 4F 1A 00 69 60 90 5F A7 CB C1 0A 90 00 DA [10:07:37]RAPDU: 69 60 90 5F A7 CB C1 0A 90 00 [10:07:37]wFMCommunicate OK [10:07:37]SAM_PROTO_SignData done [10:07:37]FM_MakeSignedData done [10:07:37]CreateOFDProtocolMessage [10:07:37]wFMCommunicate request_size=4 [10:07:37]MH_SAM_APDU [10:07:37]CAPDU: 80 11 00 00 [10:07:37]Write to MH i2c: E2 08 00 50 1A 80 11 00 00 00 00 00 00 E4 [10:07:37]Write i2c OK [10:07:37]MH_I2C_Read... [10:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:37]Read from MH i2c: E2 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 17 00 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 17 00 50 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 36 [10:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:07:37]wFMCommunicate OK [10:07:37]CreateOFDProtocolMessage done [10:07:37]OFDSenderStorePacket 64128 [10:07:37]StoreOFDPacket docnum=64128 [10:07:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 9F D8 07 01 CE AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 EA 38 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 80 FA 00 00 35 04 06 00 40 09 8D 71 62 80 69 60 90 5F A7 CB C1 0A [10:07:37]CheckFolder [10:07:37]dirname=/storage/ofd_packets [10:07:37]CheckFolder done [10:07:37]ProducePacketName [10:07:37]name=ofd_packets/00064128 [10:07:37]NVStorageSaveData ofd_packets/00064128 [10:07:37]File name is /storage/ofd_packets/00064128 [10:07:37]Write 301 bytes [10:07:37]NVStorageSaveData done [10:07:37]OFDSenderStorePacket done [10:07:37]KKMCreateOFDPacket done [10:07:37]NVStorageSaveData kkm_last_timestamp [10:07:37]File name is /storage/kkm_last_timestamp [10:07:37]Write 4 bytes [10:07:37]NVStorageSaveData done [10:07:37]ExternCall_PrintAddStr [10:07:37]wPrintStart [10:07:37]Write to MH i2c: 01 00 00 51 1A 6B [10:07:37]Write i2c OK [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: 01 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: 01 07 00 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: 01 07 00 51 1A 00 00 00 00 00 FF 0F 80 [10:07:37]RasterBufferAndPrint [10:07:37]line Счет N : (1)545501 [10:07:37]line ИНН: 02508201610067 [10:07:37]line Контрольно-Кассовый Чек [10:07:37]line ПРОДАЖА [10:07:37]line ТРК (МРК, ГНК) : 22 [10:07:37]line Товар: 2710124130 [10:07:37]line Аи-92-К-5 [10:07:37]line 11.960 * 66.90 [10:07:37]line = 800.12 [10:07:37]line НДС 12% НСП 1% [10:07:37]line > о реализуемом товаре [10:07:37]line ОКРУГЛЕНИЕ: -0.12 [10:07:37]line ИТОГО: 800.00 [10:07:37]line Внесено: 800.00 [10:07:37]line СДАЧА: 0.00 [10:07:37]line НСП 1% : 7.08 [10:07:37]line НДС 12% : 84.97 [10:07:37]line Наличными: 800.00 [10:07:37]line Безнал.: 0.00 [10:07:37]line Место: АЗС № 117 "Партнер Нефть" [10:07:37]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:07:37]line СНО: Общий режим [10:07:37]line Чек 48 05.06.2024 10:07 [10:07:37]line Смена: 375 ФФД: 1.0 [10:07:37]line ЗНМ: 0300000031 [10:07:37]line РНМ: 0000000000092737 [10:07:37]line Версия ККМ: 001 [10:07:37]line ФМ: 0000000000875074 [10:07:37]line ФД: 64128 [10:07:37]line ФПД: 70409771901568 [10:07:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T100738&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64128&fm=70409771901568&tin=02508201610067®Number=0000000000092737&sum=80000 [10:07:37]written 0, free lines is 4095 [10:07:37]OFD Sender: Processing packet 64128 [packets to send 14, broken 13] [10:07:37]ProducePacketName [10:07:37]name=ofd_packets/00064128 [10:07:37]OFD Sender: To server: pG, [10:07:37]CommunicateWithHost lk.salyk.kg:30040 [10:07:37]ConnectInit lk.salyk.kg [10:07:37]Connected sock=9 [10:07:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 9F D8 07 01 CE AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 EA 38 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 80 FA 00 00 35 04 06 00 40 09 8D 71 62 80 69 60 90 5F A7 CB C1 0A [10:07:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 93 F6 47 00 DA CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 80 FA 00 00 F4 03 04 00 F6 E4 5F 66 B6 04 01 00 00 55 5F DF E6 72 69 5A 1A [10:07:37]CommunicateWithHost err = 0 [10:07:37]CheckOFDResponse [10:07:37]1017 (14) - 77093643461234 [10:07:37]1041 (16) - 0000000000875074 [10:07:37]1040 (4) - 64128 [10:07:37]1012 (4) - 05.06.2024 04:09 [10:07:37]1206 (1) - 0 [10:07:37]OFD Sender: Remove packet 64128 [10:07:37]ProducePacketName [10:07:37]name=ofd_packets/00064128 [10:07:37]NVStorageDeleteData [10:07:37]Write to MH i2c: 01 00 00 7C 1A 96 [10:07:37]Write i2c OK [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: 01 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: 01 07 00 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: 01 07 00 7C 1A 00 00 00 00 00 E4 0C 8D [10:07:37]RasterBufferAndPrint [10:07:37]line [10:07:37]line [10:07:37]line [10:07:37]line [10:07:37]line [10:07:37]written 0, free lines is 3309 [10:07:37]MH_Cut [10:07:37]Write to MH i2c: D1 01 00 83 1A 01 6F [10:07:37]Write i2c OK [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: D1 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: D1 01 00 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: D1 01 00 83 1A 00 6E [10:07:37]Write to MH i2c: 01 00 00 84 1A 9E [10:07:37]Write i2c OK [10:07:37]MH_I2C_Read... [10:07:38]OFD Sender: No OFD packet to send [10:07:38]*** Cut start [10:07:38]*** Partial cut [10:07:38]*** CUTSNS_PIN = 1 [10:07:38]*** CUTSNS_PIN = 0 [10:07:38]*** Brake cut motor [10:07:39]Read from MH i2c: 01 [10:07:39]MH_I2C_Read... [10:07:39]*** Stop cut motor [10:07:39]*** Cut end [10:07:39]Read from MH i2c: 01 07 00 [10:07:39]MH_I2C_Read... [10:07:39]Read from MH i2c: 01 07 00 84 1A 00 00 00 00 00 FF 0F B3 [10:07:39]process_action close_receipt done [10:07:39]requested_data is exist [10:07:39]produce_requested_data [10:07:39]requested_item fm.sn is exist - process it [10:07:39]wFMCommunicate request_size=4 [10:07:39]MH_SAM_APDU [10:07:39]CAPDU: 80 11 00 00 [10:07:39]Write to MH i2c: E2 08 00 85 1A 80 11 00 00 00 00 00 00 19 [10:07:39]Write i2c OK [10:07:39]MH_I2C_Read... [10:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:39]Read from MH i2c: E2 [10:07:39]MH_I2C_Read... [10:07:39]Read from MH i2c: E2 17 00 [10:07:39]MH_I2C_Read... [10:07:39]Read from MH i2c: E2 17 00 85 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6B [10:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:07:39]wFMCommunicate OK [10:07:39]requested_item fd.num is exist - process it [10:07:39]SAM_PROTO_GetFieldsCounters [10:07:39]wFMCommunicate request_size=4 [10:07:39]MH_SAM_APDU [10:07:39]CAPDU: 80 13 00 00 [10:07:39]Write to MH i2c: E2 08 00 86 1A 80 13 00 00 00 00 00 00 1C [10:07:39]Write i2c OK [10:07:39]MH_I2C_Read... [10:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:39]Read from MH i2c: E2 [10:07:39]MH_I2C_Read... [10:07:39]Read from MH i2c: E2 62 00 [10:07:39]MH_I2C_Read... [10:07:39]Read from MH i2c: E2 62 00 86 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 80 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [10:07:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 80 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:39]wFMCommunicate OK [10:07:39]SAM_PROTO_GetFieldsCounters done [10:07:39]requested_item shift.num is exist - process it [10:07:39]requested_item shift.opened is exist - process it [10:07:39]req_shift_opened [10:07:39]FM_GetShiftState [10:07:39]SAM_PROTO_GetShiftState [10:07:39]wFMCommunicate request_size=4 [10:07:39]MH_SAM_APDU [10:07:39]CAPDU: 80 13 01 00 [10:07:39]Write to MH i2c: E2 08 00 87 1A 80 13 01 00 00 00 00 00 1E [10:07:39]Write i2c OK [10:07:39]MH_I2C_Read... [10:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:39]Read from MH i2c: E2 [10:07:39]MH_I2C_Read... [10:07:39]Read from MH i2c: E2 0E 00 [10:07:39]MH_I2C_Read... [10:07:39]Read from MH i2c: E2 0E 00 87 1A 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 5F [10:07:39]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:07:39]wFMCommunicate OK [10:07:39]SAM_PROTO_GetShiftState done [10:07:39]FM_GetShiftState done [10:07:39]req_shift_opened done [10:07:39]requested_item shift.open_date is exist - process it [10:07:39]req_shift_open_date [10:07:39]req_shift_open_date done [10:07:39]produce_requested_data done [10:07:39]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64128,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:07:39]process_action_free close_receipt [10:07:39]json_value_free [10:07:39]json_value_free done [10:07:39]process_json_proto returns [10:07:39]Send response to host [10:07:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64128,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:07:39]free response buf [10:07:39]execute_script done [10:07:39]execute_script returns [10:07:39]free content buf [10:07:39]Sock 8.Close socket [10:07:39]Sock 8.Thread stoped [10:07:40]accept exits with 10 [10:07:40]New connection [10:07:40]New thread 3067133284 created [10:07:40]Thread 3067276644 joined [10:07:40]Waiting for new connection... [10:07:40] Sock 10.Parse request [10:07:40]Sock 10.Check first char [10:07:40]Sock 10.First char is OK [10:07:40]request: POST /json_proto HTTP/1.0 [10:07:40]Method: POST [10:07:40]URL: /json_proto [10:07:40]Method is POST - this is cgi request [10:07:40]url: /json_proto [10:07:40]query_string will be loaded in cgi processing [10:07:40]execute_cgi json_proto POST (null) [10:07:40]execute_cgi path=json_proto method=POST [10:07:40]POST find Content-Length [10:07:40]Host: 172.17.60.69:8080 [10:07:40]Content-Length: 643 [10:07:40]Content-Type: application/json [10:07:40] [10:07:40]POST finish read [10:07:40]Found Content-Length = 643 [10:07:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73663", "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" : 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" ] } } [10:07:40]execute_script... [10:07: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)73663", "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" : 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" ] } } [10:07:40]POST & json_proto [10:07:40]process_json_proto [10:07:40]json parsed OK: [10:07:40]protocol is kg_v1.0 [10:07:40]action value=close_receipt [10:07:40]process_action close_receipt [10:07:40]cmd_close_receipt [10:07:40]MH_GetDate [10:07:40]Write to MH i2c: F0 00 00 88 1A 91 [10:07:40]Write i2c OK [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: F0 [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: F0 09 00 [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: F0 09 00 88 1A 00 EF 38 60 66 D2 83 5F 66 A1 [10:07:40]GetLastDocTimeStamp 1717582058 [10:07:40]current date 1717582063 [10:07:40]FM_GetShiftState [10:07:40]SAM_PROTO_GetShiftState [10:07:40]wFMCommunicate request_size=4 [10:07:40]MH_SAM_APDU [10:07:40]CAPDU: 80 13 01 00 [10:07:40]Write to MH i2c: E2 08 00 89 1A 80 13 01 00 00 00 00 00 20 [10:07:40]Write i2c OK [10:07:40]MH_I2C_Read... [10:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:40]Read from MH i2c: E2 [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: E2 0E 00 [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: E2 0E 00 89 1A 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 61 [10:07:40]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:07:40]wFMCommunicate OK [10:07:40]SAM_PROTO_GetShiftState done [10:07:40]FM_GetShiftState done [10:07:40]opened in 1717545925 [10:07:40]opened+sec_in_day 1717632325 [10:07:40]quantity*price = 11500 [10:07:40]sum+1 = 11501 [10:07:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 49 05.06.2024 10:07 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64129 ФПД: 176234123305143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T100743&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64129&fm=176234123305143&tin=02508201610067®Number=0000000000092737&sum=11500 0 [10:07:41]StoreToDocumentArchive [10:07:41]shift 375 fd 64129 [10:07:41]save to /storage/0375/doc_00064129 [10:07:41]save last doc name /storage/0375/doc_00064129 to /storage/kkm_last_doc_name [10:07:41]save OK [10:07:41]Clear old archive folders... [10:07:41]ProcessDocumentItem done err = 0, tmpTLVsize=280 [10:07:41]tlvbuf is 0110CF40 [10:07:41]SAM_PROTO_ClearQueue [10:07:41]wFMCommunicate request_size=4 [10:07:41]MH_SAM_APDU [10:07:41]CAPDU: 80 09 00 00 [10:07:41]Write to MH i2c: E2 08 00 96 1A 80 09 00 00 00 00 00 00 22 [10:07:41]Write i2c OK [10:07:41]MH_I2C_Read... [10:07:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:41]Read from MH i2c: E2 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: E2 03 00 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: E2 03 00 96 1A 00 90 00 24 [10:07:41]RAPDU: 90 00 [10:07:41]wFMCommunicate OK [10:07:41]SAM_PROTO_ClearQueue done [10:07:41]KKMCreateOFDPacket [10:07:41]OFDProtocolAddRootSTLVToBuf [10:07:41]FM_MakeSignedData [10:07:41]FM_MakeSignedData [10:07:41]SAM_PROTO_SignData [10:07:41]wFMCommunicate request_size=4 [10:07:41]MH_SAM_APDU [10:07:41]CAPDU: 80 0D 01 02 [10:07:41]Write to MH i2c: E2 08 00 97 1A 80 0D 01 02 00 00 00 00 2A [10:07:41]Write i2c OK [10:07:41]MH_I2C_Read... [10:07:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:41]Read from MH i2c: E2 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: E2 03 00 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: E2 03 00 97 1A 00 90 00 25 [10:07:41]RAPDU: 90 00 [10:07:41]wFMCommunicate OK [10:07:41]wFMCommunicate request_size=255 [10:07:41]MH_SAM_APDU [10:07:41]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 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 31 00 00 00 F4 03 04 00 EF 38 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [10:07:41]Write to MH i2c: E2 02 01 98 1A 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 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 31 00 00 00 F4 03 04 00 EF 38 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 03 [10:07:41]Write i2c OK [10:07:41]MH_I2C_Read... [10:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:41]Read from MH i2c: E2 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: E2 03 00 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [10:07:41]RAPDU: 90 00 [10:07:41]wFMCommunicate OK [10:07:41]wFMCommunicate request_size=39 [10:07:41]MH_SAM_APDU [10:07:41]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 81 FA 00 00 35 04 06 00 A0 48 B4 51 20 B7 [10:07:41]Write to MH i2c: E2 2A 00 99 1A 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 81 FA 00 00 35 04 06 00 A0 48 B4 51 20 B7 00 00 26 [10:07:41]Write i2c OK [10:07:41]MH_I2C_Read... [10:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:42]Read from MH i2c: E2 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 03 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 03 00 99 1A 00 90 00 27 [10:07:42]RAPDU: 90 00 [10:07:42]wFMCommunicate OK [10:07:42]wFMCommunicate request_size=4 [10:07:42]MH_SAM_APDU [10:07:42]CAPDU: 80 0D 03 02 [10:07:42]Write to MH i2c: E2 08 00 9A 1A 80 0D 03 02 00 00 00 00 2F [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:42]Read from MH i2c: E2 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 0B 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 0B 00 9A 1A 00 57 2E 3A F9 76 32 41 69 90 00 3A [10:07:42]RAPDU: 57 2E 3A F9 76 32 41 69 90 00 [10:07:42]wFMCommunicate OK [10:07:42]SAM_PROTO_SignData done [10:07:42]FM_MakeSignedData done [10:07:42]CreateOFDProtocolMessage [10:07:42]wFMCommunicate request_size=4 [10:07:42]MH_SAM_APDU [10:07:42]CAPDU: 80 11 00 00 [10:07:42]Write to MH i2c: E2 08 00 9B 1A 80 11 00 00 00 00 00 00 2F [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:42]Read from MH i2c: E2 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 17 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 17 00 9B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 81 [10:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:07:42]wFMCommunicate OK [10:07:42]CreateOFDProtocolMessage done [10:07:42]OFDSenderStorePacket 64129 [10:07:42]StoreOFDPacket docnum=64129 [10:07:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 23 77 24 01 E7 E5 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 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 31 00 00 00 F4 03 04 00 EF 38 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 81 FA 00 00 35 04 06 00 A0 48 B4 51 20 B7 57 2E 3A F9 76 32 41 69 [10:07:42]CheckFolder [10:07:42]dirname=/storage/ofd_packets [10:07:42]CheckFolder done [10:07:42]ProducePacketName [10:07:42]name=ofd_packets/00064129 [10:07:42]NVStorageSaveData ofd_packets/00064129 [10:07:42]File name is /storage/ofd_packets/00064129 [10:07:42]Write 330 bytes [10:07:42]NVStorageSaveData done [10:07:42]OFDSenderStorePacket done [10:07:42]KKMCreateOFDPacket done [10:07:42]NVStorageSaveData kkm_last_timestamp [10:07:42]File name is /storage/kkm_last_timestamp [10:07:42]Write 4 bytes [10:07:42]NVStorageSaveData done [10:07:42]ExternCall_PrintAddStr [10:07:42]wPrintStart [10:07:42]Write to MH i2c: 01 00 00 9C 1A B6 [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 9C 1A 00 00 00 00 00 FF 0F CB [10:07:42]RasterBufferAndPrint [10:07:42]line Счет N : (3)73663 [10:07:42]line ИНН: 02508201610067 [10:07:42]line Контрольно-Кассовый Чек [10:07:42]line ПРОДАЖА [10:07:42]line Товар: 2000036210013 [10:07:42]line Кофе Капучино (GABB TRADE) [10:07:42]line 1.000 * 115.00 [10:07:42]line = 115.00 [10:07:42]line НДС 12% НСП 1% [10:07:42]line > о реализуемом товаре [10:07:42]line ИТОГО: 115.00 [10:07:42]line НСП 1% : 1.02 [10:07:42]line НДС 12% : 12.21 [10:07:42]line Наличными: 115.00 [10:07:42]line Безнал.: 0.00 [10:07:42]line Место: АЗС № 117 "Партнер Нефть" [10:07:42]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:07:42]line СНО: Общий режим [10:07:42]line Чек 49 05.06.2024 10:07 [10:07:42]line Смена: 375 ФФД: 1.0 [10:07:42]line ЗНМ: 0300000031 [10:07:42]line РНМ: 0000000000092737 [10:07:42]line Версия ККМ: 001 [10:07:42]line ФМ: 0000000000875074 [10:07:42]line ФД: 64129 [10:07:42]line ФПД: 176234123305143 [10:07:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T100743&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64129&fm=176234123305143&tin=02508201610067®Number=0000000000092737&sum=11500 [10:07:42]line 0 [10:07:42]written 0, free lines is 4095 [10:07:42]OFD Sender: Processing packet 64129 [packets to send 14, broken 13] [10:07:42]ProducePacketName [10:07:42]name=ofd_packets/00064129 [10:07:42]OFD Sender: To server: pG, [10:07:42]CommunicateWithHost lk.salyk.kg:30040 [10:07:42]ConnectInit lk.salyk.kg [10:07:42]Connected sock=9 [10:07:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 23 77 24 01 E7 E5 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 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 31 00 00 00 F4 03 04 00 EF 38 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 81 FA 00 00 35 04 06 00 A0 48 B4 51 20 B7 57 2E 3A F9 76 32 41 69 [10:07:42]Write to MH i2c: 01 00 00 C4 1A DE [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 C4 1A 00 00 00 00 00 0C 0D FE [10:07:42]RasterBufferAndPrint [10:07:42]line [10:07:42]line [10:07:42]line [10:07:42]line [10:07:42]line [10:07:42]written 0, free lines is 3356 [10:07:42]MH_Cut [10:07:42]Write to MH i2c: D1 01 00 CB 1A 01 B7 [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D1 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D1 01 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D1 01 00 CB 1A 00 B6 [10:07:43]Write to MH i2c: 01 00 00 CC 1A E6 [10:07:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 10 32 47 00 CD 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 81 FA 00 00 F4 03 04 00 FB E4 5F 66 B6 04 01 00 00 05 27 13 AE E8 CF 80 7F [10:07:43]CommunicateWithHost err = 0 [10:07:43]CheckOFDResponse [10:07:43]1017 (14) - 77093643461234 [10:07:43]1041 (16) - 0000000000875074 [10:07:43]1040 (4) - 64129 [10:07:43]1012 (4) - 05.06.2024 04:09 [10:07:43]1206 (1) - 0 [10:07:43]OFD Sender: Remove packet 64129 [10:07:43]ProducePacketName [10:07:43]name=ofd_packets/00064129 [10:07:43]NVStorageDeleteData [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]OFD Sender: No OFD packet to send [10:07:43]*** Cut start [10:07:43]*** Partial cut [10:07:43]*** CUTSNS_PIN = 1 [10:07:43]*** CUTSNS_PIN = 0 [10:07:44]*** Brake cut motor [10:07:44]Read from MH i2c: 01 [10:07:44]MH_I2C_Read... [10:07:44]*** Stop cut motor [10:07:44]*** Cut end [10:07:44]Read from MH i2c: 01 07 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 07 00 CC 1A 00 00 00 00 00 FF 0F FB [10:07:44]process_action close_receipt done [10:07:44]requested_data is exist [10:07:44]produce_requested_data [10:07:44]requested_item fm.sn is exist - process it [10:07:44]wFMCommunicate request_size=4 [10:07:44]MH_SAM_APDU [10:07:44]CAPDU: 80 11 00 00 [10:07:44]Write to MH i2c: E2 08 00 CD 1A 80 11 00 00 00 00 00 00 61 [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:44]Read from MH i2c: E2 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 17 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 17 00 CD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B3 [10:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:07:44]wFMCommunicate OK [10:07:44]requested_item fd.num is exist - process it [10:07:44]SAM_PROTO_GetFieldsCounters [10:07:44]wFMCommunicate request_size=4 [10:07:44]MH_SAM_APDU [10:07:44]CAPDU: 80 13 00 00 [10:07:44]Write to MH i2c: E2 08 00 CE 1A 80 13 00 00 00 00 00 00 64 [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:44]Read from MH i2c: E2 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 62 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 62 00 CE 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 81 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [10:07:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 81 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:44]wFMCommunicate OK [10:07:44]SAM_PROTO_GetFieldsCounters done [10:07:44]requested_item shift.num is exist - process it [10:07:44]requested_item shift.opened is exist - process it [10:07:44]req_shift_opened [10:07:44]FM_GetShiftState [10:07:44]SAM_PROTO_GetShiftState [10:07:44]wFMCommunicate request_size=4 [10:07:44]MH_SAM_APDU [10:07:44]CAPDU: 80 13 01 00 [10:07:44]Write to MH i2c: E2 08 00 CF 1A 80 13 01 00 00 00 00 00 66 [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:44]Read from MH i2c: E2 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 0E 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 0E 00 CF 1A 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 A7 [10:07:44]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:07:44]wFMCommunicate OK [10:07:44]SAM_PROTO_GetShiftState done [10:07:44]FM_GetShiftState done [10:07:44]req_shift_opened done [10:07:44]requested_item shift.open_date is exist - process it [10:07:44]req_shift_open_date [10:07:44]req_shift_open_date done [10:07:44]produce_requested_data done [10:07:44]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64129,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:07:44]process_action_free close_receipt [10:07:44]json_value_free [10:07:44]json_value_free done [10:07:44]process_json_proto returns [10:07:44]Send response to host [10:07:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64129,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:07:44]free response buf [10:07:44]execute_script done [10:07:44]execute_script returns [10:07:44]free content buf [10:07:44]Sock 10.Close socket [10:07:44]Sock 10.Thread stoped [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:10]accept exits with 8 [10:08:10]New connection [10:08:10]New thread 3067276644 created [10:08:10]Thread 3067133284 joined [10:08:10]Waiting for new connection... [10:08:10] Sock 8.Parse request [10:08:10]Sock 8.Check first char [10:08:10]Sock 8.First char is OK [10:08:10]request: POST /json_proto HTTP/1.0 [10:08:10]Method: POST [10:08:10]URL: /json_proto [10:08:10]Method is POST - this is cgi request [10:08:10]url: /json_proto [10:08:10]query_string will be loaded in cgi processing [10:08:10]execute_cgi json_proto POST (null) [10:08:10]execute_cgi path=json_proto method=POST [10:08:10]POST find Content-Length [10:08:10]Host: 172.17.60.69:8080 [10:08:10]Content-Length: 625 [10:08:10]Content-Type: application/json [10:08:10] [10:08:10]POST finish read [10:08:10]Found Content-Length = 625 [10:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73664", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "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" ] } } [10:08:10]execute_script... [10:08: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)73664", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "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" ] } } [10:08:10]POST & json_proto [10:08:10]process_json_proto [10:08:10]json parsed OK: [10:08:10]protocol is kg_v1.0 [10:08:10]action value=close_receipt [10:08:10]process_action close_receipt [10:08:10]cmd_close_receipt [10:08:10]MH_GetDate [10:08:10]Write to MH i2c: F0 00 00 D0 1A D9 [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: F0 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: F0 09 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: F0 09 00 D0 1A 00 0D 39 60 66 D2 83 5F 66 08 [10:08:10]GetLastDocTimeStamp 1717582063 [10:08:10]current date 1717582093 [10:08:10]FM_GetShiftState [10:08:10]SAM_PROTO_GetShiftState [10:08:10]wFMCommunicate request_size=4 [10:08:10]MH_SAM_APDU [10:08:10]CAPDU: 80 13 01 00 [10:08:10]Write to MH i2c: E2 08 00 D1 1A 80 13 01 00 00 00 00 00 68 [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:10]Read from MH i2c: E2 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 0E 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 0E 00 D1 1A 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 A9 [10:08:10]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:08:10]wFMCommunicate OK [10:08:10]SAM_PROTO_GetShiftState done [10:08:10]FM_GetShiftState done [10:08:10]opened in 1717545925 [10:08:10]opened+sec_in_day 1717632325 [10:08:10]quantity*price = 11500 [10:08:10]sum+1 = 11501 [10:08:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 50 05.06.2024 10:08 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64130 ФПД: 277535167273648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T100813&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64130&fm=277535167273648&tin=02508201610067®Number=0000000000092737&sum=11500 0 [10:08:11]StoreToDocumentArchive [10:08:11]shift 375 fd 64130 [10:08:11]save to /storage/0375/doc_00064130 [10:08:11]save last doc name /storage/0375/doc_00064130 to /storage/kkm_last_doc_name [10:08:11]save OK [10:08:11]Clear old archive folders... [10:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=274 [10:08:11]tlvbuf is 00FF5830 [10:08:11]SAM_PROTO_ClearQueue [10:08:11]wFMCommunicate request_size=4 [10:08:11]MH_SAM_APDU [10:08:11]CAPDU: 80 09 00 00 [10:08:11]Write to MH i2c: E2 08 00 DE 1A 80 09 00 00 00 00 00 00 6A [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 DE 1A 00 90 00 6C [10:08:11]RAPDU: 90 00 [10:08:11]wFMCommunicate OK [10:08:11]SAM_PROTO_ClearQueue done [10:08:11]KKMCreateOFDPacket [10:08:11]OFDProtocolAddRootSTLVToBuf [10:08:11]FM_MakeSignedData [10:08:11]FM_MakeSignedData [10:08:11]SAM_PROTO_SignData [10:08:11]wFMCommunicate request_size=4 [10:08:11]MH_SAM_APDU [10:08:11]CAPDU: 80 0D 01 02 [10:08:11]Write to MH i2c: E2 08 00 DF 1A 80 0D 01 02 00 00 00 00 72 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 DF 1A 00 90 00 6D [10:08:11]RAPDU: 90 00 [10:08:11]wFMCommunicate OK [10:08:11]wFMCommunicate request_size=255 [10:08:11]MH_SAM_APDU [10:08:11]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 32 00 00 00 F4 03 04 00 0D 39 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [10:08:11]Write to MH i2c: E2 02 01 E0 1A 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 32 00 00 00 F4 03 04 00 0D 39 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 C7 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 E0 1A 00 90 00 6E [10:08:11]RAPDU: 90 00 [10:08:11]wFMCommunicate OK [10:08:11]wFMCommunicate request_size=33 [10:08:11]MH_SAM_APDU [10:08:11]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 82 FA 00 00 35 04 06 00 FC 6A B1 0E DA B0 [10:08:11]Write to MH i2c: E2 24 00 E1 1A 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 82 FA 00 00 35 04 06 00 FC 6A B1 0E DA B0 00 00 2E [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 E1 1A 00 90 00 6F [10:08:11]RAPDU: 90 00 [10:08:11]wFMCommunicate OK [10:08:11]wFMCommunicate request_size=4 [10:08:11]MH_SAM_APDU [10:08:11]CAPDU: 80 0D 03 02 [10:08:11]Write to MH i2c: E2 08 00 E2 1A 80 0D 03 02 00 00 00 00 77 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 0B 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 0B 00 E2 1A 00 6B B8 6E 05 5B 81 5F 45 90 00 8E [10:08:11]RAPDU: 6B B8 6E 05 5B 81 5F 45 90 00 [10:08:11]wFMCommunicate OK [10:08:11]SAM_PROTO_SignData done [10:08:11]FM_MakeSignedData done [10:08:11]CreateOFDProtocolMessage [10:08:11]wFMCommunicate request_size=4 [10:08:11]MH_SAM_APDU [10:08:11]CAPDU: 80 11 00 00 [10:08:11]Write to MH i2c: E2 08 00 E3 1A 80 11 00 00 00 00 00 00 77 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 17 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 17 00 E3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C9 [10:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:08:11]wFMCommunicate OK [10:08:11]CreateOFDProtocolMessage done [10:08:11]OFDSenderStorePacket 64130 [10:08:11]StoreOFDPacket docnum=64130 [10:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 E2 31 1E 01 B6 2F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 32 00 00 00 F4 03 04 00 0D 39 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 82 FA 00 00 35 04 06 00 FC 6A B1 0E DA B0 6B B8 6E 05 5B 81 5F 45 [10:08:11]CheckFolder [10:08:11]dirname=/storage/ofd_packets [10:08:11]CheckFolder done [10:08:11]ProducePacketName [10:08:11]name=ofd_packets/00064130 [10:08:11]NVStorageSaveData ofd_packets/00064130 [10:08:11]File name is /storage/ofd_packets/00064130 [10:08:11]Write 324 bytes [10:08:11]NVStorageSaveData done [10:08:11]OFDSenderStorePacket done [10:08:11]KKMCreateOFDPacket done [10:08:11]NVStorageSaveData kkm_last_timestamp [10:08:11]File name is /storage/kkm_last_timestamp [10:08:11]Write 4 bytes [10:08:11]NVStorageSaveData done [10:08:11]ExternCall_PrintAddStr [10:08:11]wPrintStart [10:08:11]Write to MH i2c: 01 00 00 E4 1A FE [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 07 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 07 00 E4 1A 00 00 00 00 00 FF 0F 13 [10:08:11]RasterBufferAndPrint [10:08:11]line Счет N : (3)73664 [10:08:11]line ИНН: 02508201610067 [10:08:11]line Контрольно-Кассовый Чек [10:08:11]line ПРОДАЖА [10:08:11]line Товар: 2000036240010 [10:08:11]line Кофе Латте (GABB TRADE) [10:08:11]line 1.000 * 115.00 [10:08:11]line = 115.00 [10:08:11]line НДС 12% НСП 1% [10:08:11]line > о реализуемом товаре [10:08:11]line ИТОГО: 115.00 [10:08:11]line НСП 1% : 1.02 [10:08:11]line НДС 12% : 12.21 [10:08:11]line Наличными: 115.00 [10:08:11]line Безнал.: 0.00 [10:08:11]line Место: АЗС № 117 "Партнер Нефть" [10:08:11]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:08:11]line СНО: Общий режим [10:08:11]line Чек 50 05.06.2024 10:08 [10:08:11]line Смена: 375 ФФД: 1.0 [10:08:11]line ЗНМ: 0300000031 [10:08:11]line РНМ: 0000000000092737 [10:08:11]line Версия ККМ: 001 [10:08:11]line ФМ: 0000000000875074 [10:08:11]line ФД: 64130 [10:08:11]line ФПД: 277535167273648 [10:08:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T100813&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64130&fm=277535167273648&tin=02508201610067®Number=0000000000092737&sum=11500 [10:08:11]line 0 [10:08:11]written 0, free lines is 4095 [10:08:11]OFD Sender: Processing packet 64130 [packets to send 14, broken 13] [10:08:11]ProducePacketName [10:08:11]name=ofd_packets/00064130 [10:08:11]OFD Sender: To server: pG, [10:08:11]CommunicateWithHost lk.salyk.kg:30040 [10:08:11]ConnectInit lk.salyk.kg [10:08:12]Write to MH i2c: 01 00 00 0C 1B 27 [10:08:12]Write i2c OK [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: 01 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: 01 07 00 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: 01 07 00 0C 1B 00 00 00 00 00 FA 0C 34 [10:08:12]RasterBufferAndPrint [10:08:12]line [10:08:12]line [10:08:12]line [10:08:12]line [10:08:12]line [10:08:12]written 0, free lines is 3331 [10:08:12]MH_Cut [10:08:12]Write to MH i2c: D1 01 00 13 1B 01 00 [10:08:12]Write i2c OK [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: D1 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: D1 01 00 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: D1 01 00 13 1B 00 FF [10:08:12]Write to MH i2c: 01 00 00 14 1B 2F [10:08:12]Connected sock=10 [10:08:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 E2 31 1E 01 B6 2F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 32 00 00 00 F4 03 04 00 0D 39 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 82 FA 00 00 35 04 06 00 FC 6A B1 0E DA B0 6B B8 6E 05 5B 81 5F 45 [10:08:12]Write i2c OK [10:08:12]MH_I2C_Read... [10:08:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 0E 92 47 00 42 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 82 FA 00 00 F4 03 04 00 19 E5 5F 66 B6 04 01 00 00 48 E1 F3 76 EF 64 D2 4F [10:08:12]CommunicateWithHost err = 0 [10:08:12]CheckOFDResponse [10:08:12]1017 (14) - 77093643461234 [10:08:12]1041 (16) - 0000000000875074 [10:08:12]1040 (4) - 64130 [10:08:12]1012 (4) - 05.06.2024 04:10 [10:08:12]1206 (1) - 0 [10:08:12]OFD Sender: Remove packet 64130 [10:08:12]ProducePacketName [10:08:12]name=ofd_packets/00064130 [10:08:12]NVStorageDeleteData [10:08:13]*** Cut start [10:08:13]*** Partial cut [10:08:13]*** CUTSNS_PIN = 1 [10:08:13]*** CUTSNS_PIN = 0 [10:08:13]OFD Sender: No OFD packet to send [10:08:13]*** Brake cut motor [10:08:13]Read from MH i2c: 01 [10:08:13]MH_I2C_Read... [10:08:13]*** Stop cut motor [10:08:13]*** Cut end [10:08:13]Read from MH i2c: 01 07 00 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: 01 07 00 14 1B 00 00 00 00 00 FF 0F 44 [10:08:13]process_action close_receipt done [10:08:13]requested_data is exist [10:08:13]produce_requested_data [10:08:13]requested_item fm.sn is exist - process it [10:08:13]wFMCommunicate request_size=4 [10:08:13]MH_SAM_APDU [10:08:13]CAPDU: 80 11 00 00 [10:08:13]Write to MH i2c: E2 08 00 15 1B 80 11 00 00 00 00 00 00 AA [10:08:13]Write i2c OK [10:08:13]MH_I2C_Read... [10:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:13]Read from MH i2c: E2 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 17 00 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 17 00 15 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FC [10:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:08:13]wFMCommunicate OK [10:08:13]requested_item fd.num is exist - process it [10:08:13]SAM_PROTO_GetFieldsCounters [10:08:13]wFMCommunicate request_size=4 [10:08:13]MH_SAM_APDU [10:08:13]CAPDU: 80 13 00 00 [10:08:13]Write to MH i2c: E2 08 00 16 1B 80 13 00 00 00 00 00 00 AD [10:08:13]Write i2c OK [10:08:13]MH_I2C_Read... [10:08:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:13]Read from MH i2c: E2 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 62 00 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 62 00 16 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 82 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [10:08:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 82 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:13]wFMCommunicate OK [10:08:13]SAM_PROTO_GetFieldsCounters done [10:08:13]requested_item shift.num is exist - process it [10:08:13]requested_item shift.opened is exist - process it [10:08:13]req_shift_opened [10:08:13]FM_GetShiftState [10:08:13]SAM_PROTO_GetShiftState [10:08:13]wFMCommunicate request_size=4 [10:08:13]MH_SAM_APDU [10:08:13]CAPDU: 80 13 01 00 [10:08:13]Write to MH i2c: E2 08 00 17 1B 80 13 01 00 00 00 00 00 AF [10:08:13]Write i2c OK [10:08:13]MH_I2C_Read... [10:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:13]Read from MH i2c: E2 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 0E 00 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 0E 00 17 1B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 F0 [10:08:13]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:08:13]wFMCommunicate OK [10:08:13]SAM_PROTO_GetShiftState done [10:08:13]FM_GetShiftState done [10:08:13]req_shift_opened done [10:08:13]requested_item shift.open_date is exist - process it [10:08:13]req_shift_open_date [10:08:13]req_shift_open_date done [10:08:13]produce_requested_data done [10:08:13]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64130,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:08:13]process_action_free close_receipt [10:08:13]json_value_free [10:08:13]json_value_free done [10:08:13]process_json_proto returns [10:08:13]Send response to host [10:08:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64130,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:08:13]free response buf [10:08:13]execute_script done [10:08:13]execute_script returns [10:08:13]free content buf [10:08:13]Sock 8.Close socket [10:08:13]Sock 8.Thread stoped [10:08:14]accept exits with 9 [10:08:14]New connection [10:08:14]New thread 3067133284 created [10:08:14]Thread 3067276644 joined [10:08:14]Waiting for new connection... [10:08:14] Sock 9.Parse request [10:08:14]Sock 9.Check first char [10:08:14]Sock 9.First char is OK [10:08:14]request: POST /json_proto HTTP/1.0 [10:08:14]Method: POST [10:08:14]URL: /json_proto [10:08:14]Method is POST - this is cgi request [10:08:14]url: /json_proto [10:08:14]query_string will be loaded in cgi processing [10:08:14]execute_cgi json_proto POST (null) [10:08:14]execute_cgi path=json_proto method=POST [10:08:14]POST find Content-Length [10:08:14]Host: 172.17.60.69:8080 [10:08:14]Content-Length: 1208 [10:08:14]Content-Type: application/json [10:08:14] [10:08:14]POST finish read [10:08:14]Found Content-Length = 1208 [10:08:14]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 117\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420.\u000A\u0421\u0447\u0435\u0442 N : (1)545503\u000A05.06.2024 10:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1338.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3060225\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:14]execute_script... [10:08:14]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 117\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420.\u000A\u0421\u0447\u0435\u0442 N : (1)545503\u000A05.06.2024 10:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1338.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3060225\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:14]POST & json_proto [10:08:14]process_json_proto [10:08:14]json parsed OK: [10:08:14]protocol is kg_v1.0 [10:08:14]action value=print_text [10:08:14]process_action print_text [10:08:14]cmd_print_text [10:08:14]ExternCall_PrintAddStr [10:08:14]wPrintStart [10:08:14]Write to MH i2c: 01 00 00 18 1B 33 [10:08:14]Write i2c OK [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: 01 [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: 01 07 00 [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: 01 07 00 18 1B 00 00 00 00 00 FF 0F 48 [10:08:14]RasterBufferAndPrint [10:08:14]line *****ТОВАРНЫЙ ЧЕК***** [10:08:14]line АЗС 117 [10:08:14]line Партнер нефть [10:08:14]line 02508201610067 [10:08:14]line Кассир : Койгельдиева Р. [10:08:14]line Счет N : (1)545503 [10:08:14]line 05.06.2024 10:03 [10:08:14]line ПРОДАЖА [10:08:14]line ТРК (МРК, ГНК): 12 [10:08:14]line Вид ГСМ : 2710124130 [10:08:14]line Аи-92-К-5 [10:08:14]line 20.000 x 66.90 [10:08:14]line ИТОГ: 1338.00 [10:08:14]line Тип оплаты: Талоны: Партнер нефть [10:08:14]line 3060225 [10:08:14]line ______________________ [10:08:14]line (подпись) [10:08:14]written 0, free lines is 4095 [10:08:14]Write to MH i2c: 01 00 00 2D 1B 48 [10:08:14]Write i2c OK [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: 01 [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: 01 07 00 [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: 01 07 00 2D 1B 00 00 00 00 00 F9 0D 55 [10:08:14]RasterBufferAndPrint [10:08:14]line [10:08:14]line [10:08:14]line [10:08:14]line [10:08:14]line [10:08:14]written 0, free lines is 3582 [10:08:14]MH_Cut [10:08:14]Write to MH i2c: D1 01 00 34 1B 01 21 [10:08:14]Write i2c OK [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: D1 [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: D1 01 00 [10:08:14]MH_I2C_Read... [10:08:14]Read from MH i2c: D1 01 00 34 1B 00 20 [10:08:14]Write to MH i2c: 01 00 00 35 1B 50 [10:08:14]Write i2c OK [10:08:14]MH_I2C_Read... [10:08:15]*** Cut start [10:08:15]*** Partial cut [10:08:15]*** CUTSNS_PIN = 1 [10:08:15]*** CUTSNS_PIN = 0 [10:08:15]*** Brake cut motor [10:08:15]Read from MH i2c: 01 [10:08:15]MH_I2C_Read... [10:08:15]*** Stop cut motor [10:08:15]*** Cut end [10:08:15]Read from MH i2c: 01 07 00 [10:08:15]MH_I2C_Read... [10:08:15]Read from MH i2c: 01 07 00 35 1B 00 00 00 00 00 FF 0F 65 [10:08:15]process_action print_text done [10:08:15]requested_data is exist [10:08:15]produce_requested_data [10:08:15]requested_item fm.sn is exist - process it [10:08:15]wFMCommunicate request_size=4 [10:08:15]MH_SAM_APDU [10:08:15]CAPDU: 80 11 00 00 [10:08:15]Write to MH i2c: E2 08 00 36 1B 80 11 00 00 00 00 00 00 CB [10:08:15]Write i2c OK [10:08:15]MH_I2C_Read... [10:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:15]Read from MH i2c: E2 [10:08:15]MH_I2C_Read... [10:08:15]Read from MH i2c: E2 17 00 [10:08:15]MH_I2C_Read... [10:08:15]Read from MH i2c: E2 17 00 36 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1D [10:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:08:15]wFMCommunicate OK [10:08:15]requested_item fd.num is exist - process it [10:08:15]SAM_PROTO_GetFieldsCounters [10:08:15]wFMCommunicate request_size=4 [10:08:15]MH_SAM_APDU [10:08:15]CAPDU: 80 13 00 00 [10:08:15]Write to MH i2c: E2 08 00 37 1B 80 13 00 00 00 00 00 00 CE [10:08:15]Write i2c OK [10:08:15]MH_I2C_Read... [10:08:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:15]Read from MH i2c: E2 [10:08:15]MH_I2C_Read... [10:08:15]Read from MH i2c: E2 62 00 [10:08:15]MH_I2C_Read... [10:08:15]Read from MH i2c: E2 62 00 37 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 82 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [10:08:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 82 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:15]wFMCommunicate OK [10:08:15]SAM_PROTO_GetFieldsCounters done [10:08:15]requested_item shift.num is exist - process it [10:08:15]requested_item shift.opened is exist - process it [10:08:15]req_shift_opened [10:08:15]FM_GetShiftState [10:08:15]SAM_PROTO_GetShiftState [10:08:15]wFMCommunicate request_size=4 [10:08:15]MH_SAM_APDU [10:08:15]CAPDU: 80 13 01 00 [10:08:15]Write to MH i2c: E2 08 00 38 1B 80 13 01 00 00 00 00 00 D0 [10:08:15]Write i2c OK [10:08:15]MH_I2C_Read... [10:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:16]Read from MH i2c: E2 [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: E2 0E 00 [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: E2 0E 00 38 1B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 11 [10:08:16]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:08:16]wFMCommunicate OK [10:08:16]SAM_PROTO_GetShiftState done [10:08:16]FM_GetShiftState done [10:08:16]req_shift_opened done [10:08:16]requested_item shift.open_date is exist - process it [10:08:16]req_shift_open_date [10:08:16]req_shift_open_date done [10:08:16]produce_requested_data done [10:08:16]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64130,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:08:16]process_action_free print_text [10:08:16]json_value_free [10:08:16]json_value_free done [10:08:16]process_json_proto returns [10:08:16]Send response to host [10:08:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64130,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:08:16]free response buf [10:08:16]execute_script done [10:08:16]execute_script returns [10:08:16]free content buf [10:08:16]Sock 9.Close socket [10:08:16]Sock 9.Thread stoped [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:17]accept exits with 8 [10:19:17]New connection [10:19:17]New thread 3067276644 created [10:19:17]Thread 3067133284 joined [10:19:17]Waiting for new connection... [10:19:17] Sock 8.Parse request [10:19:17]Sock 8.Check first char [10:19:17]Sock 8.First char is OK [10:19:17]request: POST /json_proto HTTP/1.0 [10:19:17]Method: POST [10:19:17]URL: /json_proto [10:19:17]Method is POST - this is cgi request [10:19:17]url: /json_proto [10:19:17]query_string will be loaded in cgi processing [10:19:17]execute_cgi json_proto POST (null) [10:19:17]execute_cgi path=json_proto method=POST [10:19:17]POST find Content-Length [10:19:17]Host: 172.17.60.69:8080 [10:19:17]Content-Length: 1137 [10:19:17]Content-Type: application/json [10:19:17] [10:19:17]POST finish read [10:19:17]Found Content-Length = 1137 [10:19:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73665", "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" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682000280", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up \u043C\u043E\u0445\u0438\u0442\u043E 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 198.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:17]execute_script... [10:19: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)73665", "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" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682000280", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up \u043C\u043E\u0445\u0438\u0442\u043E 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 198.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:17]POST & json_proto [10:19:17]process_json_proto [10:19:17]json parsed OK: [10:19:17]protocol is kg_v1.0 [10:19:17]action value=close_receipt [10:19:17]process_action close_receipt [10:19:17]cmd_close_receipt [10:19:17]MH_GetDate [10:19:17]Write to MH i2c: F0 00 00 39 1B 43 [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: F0 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: F0 09 00 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: F0 09 00 39 1B 00 A8 3B 60 66 D2 83 5F 66 0F [10:19:17]GetLastDocTimeStamp 1717582093 [10:19:17]current date 1717582760 [10:19:17]FM_GetShiftState [10:19:17]SAM_PROTO_GetShiftState [10:19:17]wFMCommunicate request_size=4 [10:19:17]MH_SAM_APDU [10:19:17]CAPDU: 80 13 01 00 [10:19:17]Write to MH i2c: E2 08 00 3A 1B 80 13 01 00 00 00 00 00 D2 [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:17]Read from MH i2c: E2 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 0E 00 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 0E 00 3A 1B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 13 [10:19:17]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:19:17]wFMCommunicate OK [10:19:17]SAM_PROTO_GetShiftState done [10:19:17]FM_GetShiftState done [10:19:17]opened in 1717545925 [10:19:17]opened+sec_in_day 1717632325 [10:19:17]quantity*price = 11300 [10:19:17]sum+1 = 11301 [10:19:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682000280 Напиток FLash up мохито 0,45 ж/б 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 198.00 НСП 1% : 1.75 НДС 12% : 21.03 Наличными: 0.00 Безнал.: 198.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 51 05.06.2024 10:19 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64131 ФПД: 86938278500653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T101920&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64131&fm=86938278500653&tin=02508201610067®Number=0000000000092737&sum=19800 0 [10:19:18]StoreToDocumentArchive [10:19:18]shift 375 fd 64131 [10:19:18]save to /storage/0375/doc_00064131 [10:19:18]save last doc name /storage/0375/doc_00064131 to /storage/kkm_last_doc_name [10:19:18]save OK [10:19:18]Clear old archive folders... [10:19:18]ProcessDocumentItem done err = 0, tmpTLVsize=397 [10:19:18]tlvbuf is B6F108C0 [10:19:18]SAM_PROTO_ClearQueue [10:19:18]wFMCommunicate request_size=4 [10:19:18]MH_SAM_APDU [10:19:18]CAPDU: 80 09 00 00 [10:19:18]Write to MH i2c: E2 08 00 47 1B 80 09 00 00 00 00 00 00 D4 [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 [10:19:18]MH_I2C_Read... [10:19:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:18]Read from MH i2c: E2 03 00 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 03 00 47 1B 00 90 00 D6 [10:19:18]RAPDU: 90 00 [10:19:18]wFMCommunicate OK [10:19:18]SAM_PROTO_ClearQueue done [10:19:18]KKMCreateOFDPacket [10:19:18]OFDProtocolAddRootSTLVToBuf [10:19:18]FM_MakeSignedData [10:19:18]FM_MakeSignedData [10:19:18]SAM_PROTO_SignData [10:19:18]wFMCommunicate request_size=4 [10:19:18]MH_SAM_APDU [10:19:18]CAPDU: 80 0D 01 02 [10:19:18]Write to MH i2c: E2 08 00 48 1B 80 0D 01 02 00 00 00 00 DC [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:18]Read from MH i2c: E2 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 03 00 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 03 00 48 1B 00 90 00 D7 [10:19:18]RAPDU: 90 00 [10:19:18]wFMCommunicate OK [10:19:18]wFMCommunicate request_size=255 [10:19:18]MH_SAM_APDU [10:19:18]CAPDU: 80 0D 02 02 FA 03 00 8D 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 24 2C 00 00 00 00 13 04 06 00 24 2C 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 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 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 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 58 4D 00 00 00 00 EB 03 26 00 [10:19:18]Write to MH i2c: E2 02 01 49 1B 80 0D 02 02 FA 00 03 00 8D 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 24 2C 00 00 00 00 13 04 06 00 24 2C 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 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 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 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 58 4D 00 00 00 00 EB 03 26 00 00 00 CB [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:18]Read from MH i2c: E2 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 03 00 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 03 00 49 1B 00 90 00 D8 [10:19:18]RAPDU: 90 00 [10:19:18]wFMCommunicate OK [10:19:18]wFMCommunicate request_size=156 [10:19:18]MH_SAM_APDU [10:19:18]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 3B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 83 FA 00 00 35 04 06 00 4F 11 E5 35 19 2D [10:19:18]Write to MH i2c: E2 9F 00 4A 1B 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 3B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 83 FA 00 00 35 04 06 00 4F 11 E5 35 19 2D 00 00 5C [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]OFD Sender: No OFD packet to send [10:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:19]Read from MH i2c: E2 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 03 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 03 00 4A 1B 00 90 00 D9 [10:19:19]RAPDU: 90 00 [10:19:19]wFMCommunicate OK [10:19:19]wFMCommunicate request_size=4 [10:19:19]MH_SAM_APDU [10:19:19]CAPDU: 80 0D 03 02 [10:19:19]Write to MH i2c: E2 08 00 4B 1B 80 0D 03 02 00 00 00 00 E1 [10:19:19]Write i2c OK [10:19:19]MH_I2C_Read... [10:19:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:19]Read from MH i2c: E2 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 0B 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 0B 00 4B 1B 00 FD AD 74 EA 64 70 91 42 90 00 91 [10:19:19]RAPDU: FD AD 74 EA 64 70 91 42 90 00 [10:19:19]wFMCommunicate OK [10:19:19]SAM_PROTO_SignData done [10:19:19]FM_MakeSignedData done [10:19:19]CreateOFDProtocolMessage [10:19:19]wFMCommunicate request_size=4 [10:19:19]MH_SAM_APDU [10:19:19]CAPDU: 80 11 00 00 [10:19:19]Write to MH i2c: E2 08 00 4C 1B 80 11 00 00 00 00 00 00 E1 [10:19:19]Write i2c OK [10:19:19]MH_I2C_Read... [10:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:19]Read from MH i2c: E2 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 17 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 17 00 4C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 33 [10:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:19:19]wFMCommunicate OK [10:19:19]CreateOFDProtocolMessage done [10:19:19]OFDSenderStorePacket 64131 [10:19:19]StoreOFDPacket docnum=64131 [10:19:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A1 01 00 00 54 E7 99 01 57 68 5A 03 01 00 03 00 8D 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 24 2C 00 00 00 00 13 04 06 00 24 2C 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 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 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 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 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 3B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 83 FA 00 00 35 04 06 00 4F 11 E5 35 19 2D FD AD 74 EA 64 70 91 42 [10:19:19]CheckFolder [10:19:19]dirname=/storage/ofd_packets [10:19:19]CheckFolder done [10:19:19]ProducePacketName [10:19:19]name=ofd_packets/00064131 [10:19:19]NVStorageSaveData ofd_packets/00064131 [10:19:19]File name is /storage/ofd_packets/00064131 [10:19:19]Write 447 bytes [10:19:19]NVStorageSaveData done [10:19:19]OFDSenderStorePacket done [10:19:19]KKMCreateOFDPacket done [10:19:19]NVStorageSaveData kkm_last_timestamp [10:19:19]File name is /storage/kkm_last_timestamp [10:19:19]Write 4 bytes [10:19:19]NVStorageSaveData done [10:19:19]ExternCall_PrintAddStr [10:19:19]wPrintStart [10:19:19]Write to MH i2c: 01 00 00 4D 1B 68 [10:19:19]OFD Sender: Processing packet 64131 [packets to send 14, broken 13] [10:19:19]ProducePacketName [10:19:19]name=ofd_packets/00064131 [10:19:19]OFD Sender: To server: pG, [10:19:19]CommunicateWithHost lk.salyk.kg:30040 [10:19:19]ConnectInit lk.salyk.kg [10:19:19]Write i2c OK [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: 01 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: 01 07 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: 01 07 00 4D 1B 00 00 00 00 00 FF 0F 7D [10:19:19]RasterBufferAndPrint [10:19:19]line Счет N : (3)73665 [10:19:19]line ИНН: 02508201610067 [10:19:19]line Контрольно-Кассовый Чек [10:19:19]line ПРОДАЖА [10:19:19]line Товар: 5449000054227 [10:19:19]line Напиток Кока-Кола 1л [10:19:19]line 1.000 * 113.00 [10:19:19]line = 113.00 [10:19:19]line НДС 12% НСП 1% [10:19:19]line > о реализуемом товаре [10:19:19]line Товар: 4600682000280 [10:19:19]line Напиток FLash up мохито 0,45 ж/б [10:19:19]line 1.000 * 85.00 [10:19:19]line = 85.00 [10:19:19]line НДС 12% НСП 1% [10:19:19]line > о реализуемом товаре [10:19:19]line ИТОГО: 198.00 [10:19:19]line НСП 1% : 1.75 [10:19:19]line НДС 12% : 21.03 [10:19:19]line Наличными: 0.00 [10:19:19]line Безнал.: 198.00 [10:19:19]line Место: АЗС № 117 "Партнер Нефть" [10:19:19]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:19:19]line СНО: Общий режим [10:19:19]line Чек 51 05.06.2024 10:19 [10:19:19]line Смена: 375 ФФД: 1.0 [10:19:19]line ЗНМ: 0300000031 [10:19:19]line РНМ: 0000000000092737 [10:19:19]line Версия ККМ: 001 [10:19:19]line Платежная система: АКБ Кыргызстан [10:19:19]line ФМ: 0000000000875074 [10:19:19]line ФД: 64131 [10:19:19]line ФПД: 86938278500653 [10:19:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T101920&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64131&fm=86938278500653&tin=02508201610067®Number=0000000000092737&sum=19800 [10:19:19]line 0 [10:19:19]written 0, free lines is 4095 [10:19:19]Connected sock=10 [10:19:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A1 01 00 00 54 E7 99 01 57 68 5A 03 01 00 03 00 8D 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 24 2C 00 00 00 00 13 04 06 00 24 2C 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 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 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 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 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 3B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 83 FA 00 00 35 04 06 00 4F 11 E5 35 19 2D FD AD 74 EA 64 70 91 42 [10:19:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D2 C6 47 00 C1 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 83 FA 00 00 F4 03 04 00 B4 E7 5F 66 B6 04 01 00 00 20 0C 9F CB 88 80 92 9A [10:19:19]CommunicateWithHost err = 0 [10:19:19]CheckOFDResponse [10:19:19]1017 (14) - 77093643461234 [10:19:19]1041 (16) - 0000000000875074 [10:19:19]1040 (4) - 64131 [10:19:19]1012 (4) - 05.06.2024 04:21 [10:19:19]1206 (1) - 0 [10:19:19]OFD Sender: Remove packet 64131 [10:19:19]ProducePacketName [10:19:19]name=ofd_packets/00064131 [10:19:19]NVStorageDeleteData [10:19:20]Write to MH i2c: 01 00 00 7E 1B 99 [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: 01 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: 01 07 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: 01 07 00 7E 1B 00 00 00 00 00 6E 0C 1A [10:19:20]RasterBufferAndPrint [10:19:20]line [10:19:20]line [10:19:20]line [10:19:20]line [10:19:20]line [10:19:20]written 0, free lines is 3188 [10:19:20]MH_Cut [10:19:20]Write to MH i2c: D1 01 00 85 1B 01 72 [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: D1 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: D1 01 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: D1 01 00 85 1B 00 71 [10:19:20]Write to MH i2c: 01 00 00 86 1B A1 [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]OFD Sender: No OFD packet to send [10:19:20]*** Cut start [10:19:20]*** Partial cut [10:19:20]*** CUTSNS_PIN = 1 [10:19:20]*** CUTSNS_PIN = 0 [10:19:21]*** Brake cut motor [10:19:21]Read from MH i2c: 01 [10:19:21]MH_I2C_Read... [10:19:21]*** Stop cut motor [10:19:21]*** Cut end [10:19:21]Read from MH i2c: 01 07 00 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: 01 07 00 86 1B 00 00 00 00 00 FF 0F B6 [10:19:21]process_action close_receipt done [10:19:21]requested_data is exist [10:19:21]produce_requested_data [10:19:21]requested_item fm.sn is exist - process it [10:19:21]wFMCommunicate request_size=4 [10:19:21]MH_SAM_APDU [10:19:21]CAPDU: 80 11 00 00 [10:19:21]Write to MH i2c: E2 08 00 87 1B 80 11 00 00 00 00 00 00 1C [10:19:21]Write i2c OK [10:19:21]MH_I2C_Read... [10:19:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:21]Read from MH i2c: E2 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 17 00 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 17 00 87 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6E [10:19:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:19:21]wFMCommunicate OK [10:19:21]requested_item fd.num is exist - process it [10:19:21]SAM_PROTO_GetFieldsCounters [10:19:21]wFMCommunicate request_size=4 [10:19:21]MH_SAM_APDU [10:19:21]CAPDU: 80 13 00 00 [10:19:21]Write to MH i2c: E2 08 00 88 1B 80 13 00 00 00 00 00 00 1F [10:19:21]Write i2c OK [10:19:21]MH_I2C_Read... [10:19:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:21]Read from MH i2c: E2 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 62 00 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 62 00 88 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 83 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [10:19:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 83 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:21]wFMCommunicate OK [10:19:21]SAM_PROTO_GetFieldsCounters done [10:19:21]requested_item shift.num is exist - process it [10:19:21]requested_item shift.opened is exist - process it [10:19:21]req_shift_opened [10:19:21]FM_GetShiftState [10:19:21]SAM_PROTO_GetShiftState [10:19:21]wFMCommunicate request_size=4 [10:19:21]MH_SAM_APDU [10:19:21]CAPDU: 80 13 01 00 [10:19:21]Write to MH i2c: E2 08 00 89 1B 80 13 01 00 00 00 00 00 21 [10:19:21]Write i2c OK [10:19:21]MH_I2C_Read... [10:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:21]Read from MH i2c: E2 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 0E 00 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 0E 00 89 1B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 62 [10:19:21]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:19:21]wFMCommunicate OK [10:19:21]SAM_PROTO_GetShiftState done [10:19:21]FM_GetShiftState done [10:19:21]req_shift_opened done [10:19:21]requested_item shift.open_date is exist - process it [10:19:21]req_shift_open_date [10:19:21]req_shift_open_date done [10:19:21]produce_requested_data done [10:19:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64131,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:19:21]process_action_free close_receipt [10:19:21]json_value_free [10:19:21]json_value_free done [10:19:21]process_json_proto returns [10:19:21]Send response to host [10:19:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64131,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:19:21]free response buf [10:19:21]execute_script done [10:19:21]execute_script returns [10:19:21]free content buf [10:19:21]Sock 8.Close socket [10:19:21]Sock 8.Thread stoped [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:36]accept exits with 9 [10:20:36]New connection [10:20:36]New thread 3067133284 created [10:20:36]Thread 3067276644 joined [10:20:36]Waiting for new connection... [10:20:36] Sock 9.Parse request [10:20:36]Sock 9.Check first char [10:20:36]Sock 9.First char is OK [10:20:36]request: POST /json_proto HTTP/1.0 [10:20:36]Method: POST [10:20:36]URL: /json_proto [10:20:36]Method is POST - this is cgi request [10:20:36]url: /json_proto [10:20:36]query_string will be loaded in cgi processing [10:20:36]execute_cgi json_proto POST (null) [10:20:36]execute_cgi path=json_proto method=POST [10:20:36]POST find Content-Length [10:20:36]Host: 172.17.60.69:8080 [10:20:36]Content-Length: 830 [10:20:36]Content-Type: application/json [10:20:36] [10:20:36]POST finish read [10:20:36]Found Content-Length = 830 [10:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73666", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:36]execute_script... [10:20: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)73666", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:36]POST & json_proto [10:20:36]process_json_proto [10:20:36]json parsed OK: [10:20:36]protocol is kg_v1.0 [10:20:36]action value=close_receipt [10:20:36]process_action close_receipt [10:20:36]cmd_close_receipt [10:20:36]MH_GetDate [10:20:36]Write to MH i2c: F0 00 00 8A 1B 94 [10:20:36]Write i2c OK [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: F0 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: F0 09 00 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: F0 09 00 8A 1B 00 F7 3B 60 66 D2 83 5F 66 AF [10:20:36]GetLastDocTimeStamp 1717582760 [10:20:36]current date 1717582839 [10:20:36]FM_GetShiftState [10:20:36]SAM_PROTO_GetShiftState [10:20:36]wFMCommunicate request_size=4 [10:20:36]MH_SAM_APDU [10:20:36]CAPDU: 80 13 01 00 [10:20:36]Write to MH i2c: E2 08 00 8B 1B 80 13 01 00 00 00 00 00 23 [10:20:36]Write i2c OK [10:20:36]MH_I2C_Read... [10:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:36]Read from MH i2c: E2 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: E2 0E 00 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: E2 0E 00 8B 1B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 64 [10:20:36]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:20:36]wFMCommunicate OK [10:20:36]SAM_PROTO_GetShiftState done [10:20:36]FM_GetShiftState done [10:20:36]opened in 1717545925 [10:20:36]opened+sec_in_day 1717632325 [10:20:36]quantity*price = 5000 [10:20:36]sum+1 = 5001 [10:20:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 52 05.06.2024 10:20 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64132 ФПД: 155294703631974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T102039&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64132&fm=155294703631974&tin=02508201610067®Number=0000000000092737&sum=5000 0 [10:20:37]StoreToDocumentArchive [10:20:37]shift 375 fd 64132 [10:20:37]save to /storage/0375/doc_00064132 [10:20:37]save last doc name /storage/0375/doc_00064132 to /storage/kkm_last_doc_name [10:20:37]save OK [10:20:37]Clear old archive folders... [10:20:37]ProcessDocumentItem done err = 0, tmpTLVsize=269 [10:20:37]tlvbuf is 01025910 [10:20:37]SAM_PROTO_ClearQueue [10:20:37]wFMCommunicate request_size=4 [10:20:37]MH_SAM_APDU [10:20:37]CAPDU: 80 09 00 00 [10:20:37]Write to MH i2c: E2 08 00 98 1B 80 09 00 00 00 00 00 00 25 [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:37]Read from MH i2c: E2 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 03 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 03 00 98 1B 00 90 00 27 [10:20:37]RAPDU: 90 00 [10:20:37]wFMCommunicate OK [10:20:37]SAM_PROTO_ClearQueue done [10:20:37]KKMCreateOFDPacket [10:20:37]OFDProtocolAddRootSTLVToBuf [10:20:37]FM_MakeSignedData [10:20:37]FM_MakeSignedData [10:20:37]SAM_PROTO_SignData [10:20:37]wFMCommunicate request_size=4 [10:20:37]MH_SAM_APDU [10:20:37]CAPDU: 80 0D 01 02 [10:20:37]Write to MH i2c: E2 08 00 99 1B 80 0D 01 02 00 00 00 00 2D [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:37]Read from MH i2c: E2 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 03 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 03 00 99 1B 00 90 00 28 [10:20:37]RAPDU: 90 00 [10:20:37]wFMCommunicate OK [10:20:37]wFMCommunicate request_size=255 [10:20:37]MH_SAM_APDU [10:20:37]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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 F7 3B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [10:20:37]Write to MH i2c: E2 02 01 9A 1B 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 F7 3B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 EB [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:37]Read from MH i2c: E2 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 03 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 03 00 9A 1B 00 90 00 29 [10:20:37]RAPDU: 90 00 [10:20:37]wFMCommunicate OK [10:20:37]wFMCommunicate request_size=28 [10:20:37]MH_SAM_APDU [10:20:37]CAPDU: 80 0D 02 02 17 37 35 30 37 34 10 04 04 00 84 FA 00 00 35 04 06 00 8D 3D 5D A5 3E 66 [10:20:37]Write to MH i2c: E2 1F 00 9B 1B 80 0D 02 02 17 00 37 35 30 37 34 10 04 04 00 84 FA 00 00 35 04 06 00 8D 3D 5D A5 3E 66 00 00 AA [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:37]Read from MH i2c: E2 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 03 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 03 00 9B 1B 00 90 00 2A [10:20:37]RAPDU: 90 00 [10:20:37]wFMCommunicate OK [10:20:37]wFMCommunicate request_size=4 [10:20:37]MH_SAM_APDU [10:20:37]CAPDU: 80 0D 03 02 [10:20:37]Write to MH i2c: E2 08 00 9C 1B 80 0D 03 02 00 00 00 00 32 [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:37]Read from MH i2c: E2 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 0B 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 0B 00 9C 1B 00 5F 06 4C 6B 36 14 93 55 90 00 81 [10:20:37]RAPDU: 5F 06 4C 6B 36 14 93 55 90 00 [10:20:37]wFMCommunicate OK [10:20:37]SAM_PROTO_SignData done [10:20:37]FM_MakeSignedData done [10:20:37]CreateOFDProtocolMessage [10:20:37]wFMCommunicate request_size=4 [10:20:37]MH_SAM_APDU [10:20:37]CAPDU: 80 11 00 00 [10:20:37]Write to MH i2c: E2 08 00 9D 1B 80 11 00 00 00 00 00 00 32 [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:37]Read from MH i2c: E2 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 17 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 17 00 9D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 84 [10:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:20:37]wFMCommunicate OK [10:20:37]CreateOFDProtocolMessage done [10:20:37]OFDSenderStorePacket 64132 [10:20:37]StoreOFDPacket docnum=64132 [10:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 21 01 00 00 A1 2F 19 01 F5 3C 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 F7 3B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 84 FA 00 00 35 04 06 00 8D 3D 5D A5 3E 66 5F 06 4C 6B 36 14 93 55 [10:20:37]CheckFolder [10:20:37]dirname=/storage/ofd_packets [10:20:37]CheckFolder done [10:20:37]ProducePacketName [10:20:37]name=ofd_packets/00064132 [10:20:37]NVStorageSaveData ofd_packets/00064132 [10:20:37]File name is /storage/ofd_packets/00064132 [10:20:37]Write 319 bytes [10:20:37]NVStorageSaveData done [10:20:37]OFDSenderStorePacket done [10:20:37]KKMCreateOFDPacket done [10:20:37]NVStorageSaveData kkm_last_timestamp [10:20:37]File name is /storage/kkm_last_timestamp [10:20:37]Write 4 bytes [10:20:37]NVStorageSaveData done [10:20:37]ExternCall_PrintAddStr [10:20:37]wPrintStart [10:20:37]Write to MH i2c: 01 00 00 9E 1B B9 [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: 01 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: 01 07 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: 01 07 00 9E 1B 00 00 00 00 00 FF 0F CE [10:20:37]RasterBufferAndPrint [10:20:37]line Счет N : (3)73666 [10:20:37]line ИНН: 02508201610067 [10:20:37]line Контрольно-Кассовый Чек [10:20:37]line ПРОДАЖА [10:20:37]line Товар: 4700000160358 [10:20:37]line Вода Легенда 1л [10:20:37]line 1.000 * 50.00 [10:20:37]line = 50.00 [10:20:37]line НДС 12% НСП 1% [10:20:37]line > о реализуемом товаре [10:20:37]line ИТОГО: 50.00 [10:20:37]line НСП 1% : 0.44 [10:20:37]line НДС 12% : 5.31 [10:20:37]line Наличными: 0.00 [10:20:37]line Безнал.: 50.00 [10:20:37]line Место: АЗС № 117 "Партнер Нефть" [10:20:37]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:20:37]line СНО: Общий режим [10:20:37]line Чек 52 05.06.2024 10:20 [10:20:37]line Смена: 375 ФФД: 1.0 [10:20:37]line ЗНМ: 0300000031 [10:20:37]line РНМ: 0000000000092737 [10:20:37]line Версия ККМ: 001 [10:20:37]line Платежная система: АКБ Кыргызстан [10:20:37]line ФМ: 0000000000875074 [10:20:37]line ФД: 64132 [10:20:37]line ФПД: 155294703631974 [10:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T102039&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64132&fm=155294703631974&tin=02508201610067®Number=0000000000092737&sum=5000 [10:20:38]OFD Sender: Processing packet 64132 [packets to send 14, broken 13] [10:20:38]ProducePacketName [10:20:38]name=ofd_packets/00064132 [10:20:38]OFD Sender: To server: pG, [10:20:38]CommunicateWithHost lk.salyk.kg:30040 [10:20:38]ConnectInit lk.salyk.kg [10:20:38]line 0 [10:20:38]written 0, free lines is 4095 [10:20:38]Connected sock=10 [10:20:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 21 01 00 00 A1 2F 19 01 F5 3C 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 F7 3B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 84 FA 00 00 35 04 06 00 8D 3D 5D A5 3E 66 5F 06 4C 6B 36 14 93 55 [10:20:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 89 02 47 00 02 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 84 FA 00 00 F4 03 04 00 03 E8 5F 66 B6 04 01 00 00 C8 84 ED F8 42 6A 9E 8F [10:20:38]CommunicateWithHost err = 0 [10:20:38]CheckOFDResponse [10:20:38]1017 (14) - 77093643461234 [10:20:38]1041 (16) - 0000000000875074 [10:20:38]1040 (4) - 64132 [10:20:38]1012 (4) - 05.06.2024 04:22 [10:20:38]1206 (1) - 0 [10:20:38]OFD Sender: Remove packet 64132 [10:20:38]ProducePacketName [10:20:38]name=ofd_packets/00064132 [10:20:38]NVStorageDeleteData [10:20:38]Write to MH i2c: 01 00 00 C8 1B E3 [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 07 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 07 00 C8 1B 00 00 00 00 00 F6 0C EC [10:20:38]RasterBufferAndPrint [10:20:38]line [10:20:38]line [10:20:38]line [10:20:38]line [10:20:38]line [10:20:38]written 0, free lines is 3327 [10:20:38]MH_Cut [10:20:38]Write to MH i2c: D1 01 00 CF 1B 01 BC [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: D1 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: D1 01 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: D1 01 00 CF 1B 00 BB [10:20:38]Write to MH i2c: 01 00 00 D0 1B EB [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]OFD Sender: No OFD packet to send [10:20:39]*** Cut start [10:20:39]*** Partial cut [10:20:39]*** CUTSNS_PIN = 1 [10:20:39]*** CUTSNS_PIN = 0 [10:20:39]*** Brake cut motor [10:20:40]Read from MH i2c: 01 [10:20:40]MH_I2C_Read... [10:20:40]*** Stop cut motor [10:20:40]*** Cut end [10:20:40]Read from MH i2c: 01 07 00 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: 01 07 00 D0 1B 00 00 00 00 00 FF 0F 00 [10:20:40]process_action close_receipt done [10:20:40]requested_data is exist [10:20:40]produce_requested_data [10:20:40]requested_item fm.sn is exist - process it [10:20:40]wFMCommunicate request_size=4 [10:20:40]MH_SAM_APDU [10:20:40]CAPDU: 80 11 00 00 [10:20:40]Write to MH i2c: E2 08 00 D1 1B 80 11 00 00 00 00 00 00 66 [10:20:40]Write i2c OK [10:20:40]MH_I2C_Read... [10:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:40]Read from MH i2c: E2 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 17 00 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 17 00 D1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B8 [10:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:20:40]wFMCommunicate OK [10:20:40]requested_item fd.num is exist - process it [10:20:40]SAM_PROTO_GetFieldsCounters [10:20:40]wFMCommunicate request_size=4 [10:20:40]MH_SAM_APDU [10:20:40]CAPDU: 80 13 00 00 [10:20:40]Write to MH i2c: E2 08 00 D2 1B 80 13 00 00 00 00 00 00 69 [10:20:40]Write i2c OK [10:20:40]MH_I2C_Read... [10:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:40]Read from MH i2c: E2 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 62 00 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 62 00 D2 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 84 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [10:20:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 84 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:40]wFMCommunicate OK [10:20:40]SAM_PROTO_GetFieldsCounters done [10:20:40]requested_item shift.num is exist - process it [10:20:40]requested_item shift.opened is exist - process it [10:20:40]req_shift_opened [10:20:40]FM_GetShiftState [10:20:40]SAM_PROTO_GetShiftState [10:20:40]wFMCommunicate request_size=4 [10:20:40]MH_SAM_APDU [10:20:40]CAPDU: 80 13 01 00 [10:20:40]Write to MH i2c: E2 08 00 D3 1B 80 13 01 00 00 00 00 00 6B [10:20:40]Write i2c OK [10:20:40]MH_I2C_Read... [10:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:40]Read from MH i2c: E2 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 0E 00 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 0E 00 D3 1B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 AC [10:20:40]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:20:40]wFMCommunicate OK [10:20:40]SAM_PROTO_GetShiftState done [10:20:40]FM_GetShiftState done [10:20:40]req_shift_opened done [10:20:40]requested_item shift.open_date is exist - process it [10:20:40]req_shift_open_date [10:20:40]req_shift_open_date done [10:20:40]produce_requested_data done [10:20:40]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64132,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:20:40]process_action_free close_receipt [10:20:40]json_value_free [10:20:40]json_value_free done [10:20:40]process_json_proto returns [10:20:40]Send response to host [10:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64132,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:20:40]free response buf [10:20:40]execute_script done [10:20:40]execute_script returns [10:20:40]free content buf [10:20:40]Sock 9.Close socket [10:20:40]Sock 9.Thread stoped [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:57]accept exits with 8 [10:21:57]New connection [10:21:57]New thread 3067276644 created [10:21:57]Thread 3067133284 joined [10:21:57]Waiting for new connection... [10:21:57] Sock 8.Parse request [10:21:57]Sock 8.Check first char [10:21:57]Sock 8.First char is OK [10:21:57]request: POST /json_proto HTTP/1.0 [10:21:57]Method: POST [10:21:57]URL: /json_proto [10:21:57]Method is POST - this is cgi request [10:21:57]url: /json_proto [10:21:57]query_string will be loaded in cgi processing [10:21:57]execute_cgi json_proto POST (null) [10:21:57]execute_cgi path=json_proto method=POST [10:21:57]POST find Content-Length [10:21:57]Host: 172.17.60.69:8080 [10:21:57]Content-Length: 844 [10:21:57]Content-Type: application/json [10:21:57] [10:21:57]POST finish read [10:21:57]Found Content-Length = 844 [10:21:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73667", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:57]execute_script... [10:21: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)73667", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:57]POST & json_proto [10:21:57]process_json_proto [10:21:57]json parsed OK: [10:21:57]protocol is kg_v1.0 [10:21:57]action value=close_receipt [10:21:57]process_action close_receipt [10:21:57]cmd_close_receipt [10:21:57]MH_GetDate [10:21:57]Write to MH i2c: F0 00 00 D4 1B DE [10:21:57]Write i2c OK [10:21:57]MH_I2C_Read... [10:21:57]Read from MH i2c: F0 [10:21:57]MH_I2C_Read... [10:21:57]Read from MH i2c: F0 09 00 [10:21:57]MH_I2C_Read... [10:21:57]Read from MH i2c: F0 09 00 D4 1B 00 48 3C 60 66 D2 83 5F 66 4B [10:21:57]GetLastDocTimeStamp 1717582839 [10:21:57]current date 1717582920 [10:21:57]FM_GetShiftState [10:21:57]SAM_PROTO_GetShiftState [10:21:57]wFMCommunicate request_size=4 [10:21:57]MH_SAM_APDU [10:21:57]CAPDU: 80 13 01 00 [10:21:57]Write to MH i2c: E2 08 00 D5 1B 80 13 01 00 00 00 00 00 6D [10:21:57]Write i2c OK [10:21:57]MH_I2C_Read... [10:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:57]Read from MH i2c: E2 [10:21:57]MH_I2C_Read... [10:21:57]Read from MH i2c: E2 0E 00 [10:21:57]MH_I2C_Read... [10:21:57]Read from MH i2c: E2 0E 00 D5 1B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 AE [10:21:57]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:21:57]wFMCommunicate OK [10:21:57]SAM_PROTO_GetShiftState done [10:21:57]FM_GetShiftState done [10:21:57]opened in 1717545925 [10:21:57]opened+sec_in_day 1717632325 [10:21:57]quantity*price = 23000 [10:21:57]sum+1 = 23001 [10:21:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 0.00 Безнал.: 230.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 53 05.06.2024 10:22 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64133 ФПД: 46370094242784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T102200&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64133&fm=46370094242784&tin=02508201610067®Number=0000000000092737&sum=23000 0 [10:21:58]StoreToDocumentArchive [10:21:58]shift 375 fd 64133 [10:21:58]save to /storage/0375/doc_00064133 [10:21:58]save last doc name /storage/0375/doc_00064133 to /storage/kkm_last_doc_name [10:21:58]save OK [10:21:58]Clear old archive folders... [10:21:58]ProcessDocumentItem done err = 0, tmpTLVsize=280 [10:21:58]tlvbuf is B6EF7350 [10:21:58]SAM_PROTO_ClearQueue [10:21:58]wFMCommunicate request_size=4 [10:21:58]MH_SAM_APDU [10:21:58]CAPDU: 80 09 00 00 [10:21:58]Write to MH i2c: E2 08 00 E2 1B 80 09 00 00 00 00 00 00 6F [10:21:58]Write i2c OK [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: E2 [10:21:58]MH_I2C_Read... [10:21:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:58]Read from MH i2c: E2 03 00 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: E2 03 00 E2 1B 00 90 00 71 [10:21:58]RAPDU: 90 00 [10:21:58]wFMCommunicate OK [10:21:58]SAM_PROTO_ClearQueue done [10:21:58]KKMCreateOFDPacket [10:21:58]OFDProtocolAddRootSTLVToBuf [10:21:58]FM_MakeSignedData [10:21:58]FM_MakeSignedData [10:21:58]SAM_PROTO_SignData [10:21:58]wFMCommunicate request_size=4 [10:21:58]MH_SAM_APDU [10:21:58]CAPDU: 80 0D 01 02 [10:21:58]Write to MH i2c: E2 08 00 E3 1B 80 0D 01 02 00 00 00 00 77 [10:21:58]Write i2c OK [10:21:58]MH_I2C_Read... [10:21:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:58]Read from MH i2c: E2 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: E2 03 00 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: E2 03 00 E3 1B 00 90 00 72 [10:21:58]RAPDU: 90 00 [10:21:58]wFMCommunicate OK [10:21:58]wFMCommunicate request_size=255 [10:21:58]MH_SAM_APDU [10:21:58]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 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 48 3C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [10:21:58]Write to MH i2c: E2 02 01 E4 1B 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 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 48 3C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 17 [10:21:58]Write i2c OK [10:21:58]MH_I2C_Read... [10:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:58]Read from MH i2c: E2 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: E2 03 00 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: E2 03 00 E4 1B 00 90 00 73 [10:21:58]RAPDU: 90 00 [10:21:58]wFMCommunicate OK [10:21:58]wFMCommunicate request_size=39 [10:21:58]MH_SAM_APDU [10:21:58]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 85 FA 00 00 35 04 06 00 2A 2C 60 FE DB E0 [10:21:58]Write to MH i2c: E2 2A 00 E5 1B 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 85 FA 00 00 35 04 06 00 2A 2C 60 FE DB E0 00 00 22 [10:21:58]Write i2c OK [10:21:58]MH_I2C_Read... [10:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:58]Read from MH i2c: E2 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: E2 03 00 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: E2 03 00 E5 1B 00 90 00 74 [10:21:58]RAPDU: 90 00 [10:21:58]wFMCommunicate OK [10:21:58]wFMCommunicate request_size=4 [10:21:58]MH_SAM_APDU [10:21:58]CAPDU: 80 0D 03 02 [10:21:58]Write to MH i2c: E2 08 00 E6 1B 80 0D 03 02 00 00 00 00 7C [10:21:58]Write i2c OK [10:21:58]MH_I2C_Read... [10:21:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:58]Read from MH i2c: E2 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: E2 0B 00 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: E2 0B 00 E6 1B 00 E4 A8 AB 50 64 4A 08 A2 90 00 5C [10:21:58]RAPDU: E4 A8 AB 50 64 4A 08 A2 90 00 [10:21:58]wFMCommunicate OK [10:21:58]SAM_PROTO_SignData done [10:21:58]FM_MakeSignedData done [10:21:58]CreateOFDProtocolMessage [10:21:58]wFMCommunicate request_size=4 [10:21:58]MH_SAM_APDU [10:21:58]CAPDU: 80 11 00 00 [10:21:58]Write to MH i2c: E2 08 00 E7 1B 80 11 00 00 00 00 00 00 7C [10:21:58]Write i2c OK [10:21:58]MH_I2C_Read... [10:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:58]Read from MH i2c: E2 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: E2 17 00 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: E2 17 00 E7 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CE [10:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:21:58]wFMCommunicate OK [10:21:58]CreateOFDProtocolMessage done [10:21:58]OFDSenderStorePacket 64133 [10:21:58]StoreOFDPacket docnum=64133 [10:21:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 8A 48 24 01 55 E9 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 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 48 3C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 85 FA 00 00 35 04 06 00 2A 2C 60 FE DB E0 E4 A8 AB 50 64 4A 08 A2 [10:21:58]CheckFolder [10:21:58]dirname=/storage/ofd_packets [10:21:58]CheckFolder done [10:21:58]ProducePacketName [10:21:58]name=ofd_packets/00064133 [10:21:58]NVStorageSaveData ofd_packets/00064133 [10:21:58]File name is /storage/ofd_packets/00064133 [10:21:58]Write 330 bytes [10:21:58]NVStorageSaveData done [10:21:58]OFDSenderStorePacket done [10:21:58]KKMCreateOFDPacket done [10:21:58]NVStorageSaveData kkm_last_timestamp [10:21:58]File name is /storage/kkm_last_timestamp [10:21:58]Write 4 bytes [10:21:58]NVStorageSaveData done [10:21:58]ExternCall_PrintAddStr [10:21:58]wPrintStart [10:21:58]Write to MH i2c: 01 00 00 E8 1B 03 [10:21:58]Write i2c OK [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: 01 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: 01 07 00 [10:21:58]MH_I2C_Read... [10:21:58]Read from MH i2c: 01 07 00 E8 1B 00 00 00 00 00 FF 0F 18 [10:21:58]RasterBufferAndPrint [10:21:58]line Счет N : (3)73667 [10:21:58]line ИНН: 02508201610067 [10:21:58]line Контрольно-Кассовый Чек [10:21:58]line ПРОДАЖА [10:21:58]line Товар: 2000036210013 [10:21:58]line Кофе Капучино (GABB TRADE) [10:21:58]line 2.000 * 115.00 [10:21:58]line = 230.00 [10:21:58]line НДС 12% НСП 1% [10:21:58]line > о реализуемом товаре [10:21:58]line ИТОГО: 230.00 [10:21:58]line НСП 1% : 2.03 [10:21:58]line НДС 12% : 24.42 [10:21:58]line Наличными: 0.00 [10:21:58]line Безнал.: 230.00 [10:21:58]line Место: АЗС № 117 "Партнер Нефть" [10:21:58]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:21:58]line СНО: Общий режим [10:21:58]line Чек 53 05.06.2024 10:22 [10:21:58]line Смена: 375 ФФД: 1.0 [10:21:58]line ЗНМ: 0300000031 [10:21:58]line РНМ: 0000000000092737 [10:21:58]line Версия ККМ: 001 [10:21:58]line Платежная система: АКБ Кыргызстан [10:21:58]line ФМ: 0000000000875074 [10:21:58]line ФД: 64133 [10:21:58]line ФПД: 46370094242784 [10:21:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T102200&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64133&fm=46370094242784&tin=02508201610067®Number=0000000000092737&sum=23000 [10:21:59]line 0 [10:21:59]OFD Sender: Processing packet 64133 [packets to send 14, broken 13] [10:21:59]ProducePacketName [10:21:59]name=ofd_packets/00064133 [10:21:59]OFD Sender: To server: pG, [10:21:59]CommunicateWithHost lk.salyk.kg:30040 [10:21:59]ConnectInit lk.salyk.kg [10:21:59]written 0, free lines is 4095 [10:21:59]Connected sock=10 [10:21:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 8A 48 24 01 55 E9 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 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 48 3C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 85 FA 00 00 35 04 06 00 2A 2C 60 FE DB E0 E4 A8 AB 50 64 4A 08 A2 [10:21:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 40 45 47 00 69 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 85 FA 00 00 F4 03 04 00 54 E8 5F 66 B6 04 01 00 00 4E 80 3D 75 F7 00 C6 81 [10:21:59]CommunicateWithHost err = 0 [10:21:59]CheckOFDResponse [10:21:59]1017 (14) - 77093643461234 [10:21:59]1041 (16) - 0000000000875074 [10:21:59]1040 (4) - 64133 [10:21:59]1012 (4) - 05.06.2024 04:23 [10:21:59]1206 (1) - 0 [10:21:59]OFD Sender: Remove packet 64133 [10:21:59]ProducePacketName [10:21:59]name=ofd_packets/00064133 [10:21:59]NVStorageDeleteData [10:21:59]Write to MH i2c: 01 00 00 12 1C 2E [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: 01 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: 01 07 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: 01 07 00 12 1C 00 00 00 00 00 F7 0C 38 [10:21:59]RasterBufferAndPrint [10:21:59]line [10:21:59]line [10:21:59]line [10:21:59]line [10:21:59]line [10:21:59]written 0, free lines is 3327 [10:21:59]MH_Cut [10:21:59]Write to MH i2c: D1 01 00 19 1C 01 07 [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: D1 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: D1 01 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: D1 01 00 19 1C 00 06 [10:21:59]Write to MH i2c: 01 00 00 1A 1C 36 [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]OFD Sender: No OFD packet to send [10:22:00]*** Cut start [10:22:00]*** Partial cut [10:22:00]*** CUTSNS_PIN = 1 [10:22:00]*** CUTSNS_PIN = 0 [10:22:00]*** Brake cut motor [10:22:01]Read from MH i2c: 01 [10:22:01]MH_I2C_Read... [10:22:01]*** Stop cut motor [10:22:01]*** Cut end [10:22:01]Read from MH i2c: 01 07 00 [10:22:01]MH_I2C_Read... [10:22:01]Read from MH i2c: 01 07 00 1A 1C 00 00 00 00 00 FF 0F 4B [10:22:01]process_action close_receipt done [10:22:01]requested_data is exist [10:22:01]produce_requested_data [10:22:01]requested_item fm.sn is exist - process it [10:22:01]wFMCommunicate request_size=4 [10:22:01]MH_SAM_APDU [10:22:01]CAPDU: 80 11 00 00 [10:22:01]Write to MH i2c: E2 08 00 1B 1C 80 11 00 00 00 00 00 00 B1 [10:22:01]Write i2c OK [10:22:01]MH_I2C_Read... [10:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:01]Read from MH i2c: E2 [10:22:01]MH_I2C_Read... [10:22:01]Read from MH i2c: E2 17 00 [10:22:01]MH_I2C_Read... [10:22:01]Read from MH i2c: E2 17 00 1B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 03 [10:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:22:01]wFMCommunicate OK [10:22:01]requested_item fd.num is exist - process it [10:22:01]SAM_PROTO_GetFieldsCounters [10:22:01]wFMCommunicate request_size=4 [10:22:01]MH_SAM_APDU [10:22:01]CAPDU: 80 13 00 00 [10:22:01]Write to MH i2c: E2 08 00 1C 1C 80 13 00 00 00 00 00 00 B4 [10:22:01]Write i2c OK [10:22:01]MH_I2C_Read... [10:22:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:01]Read from MH i2c: E2 [10:22:01]MH_I2C_Read... [10:22:01]Read from MH i2c: E2 62 00 [10:22:01]MH_I2C_Read... [10:22:01]Read from MH i2c: E2 62 00 1C 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 85 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [10:22:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 85 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:01]wFMCommunicate OK [10:22:01]SAM_PROTO_GetFieldsCounters done [10:22:01]requested_item shift.num is exist - process it [10:22:01]requested_item shift.opened is exist - process it [10:22:01]req_shift_opened [10:22:01]FM_GetShiftState [10:22:01]SAM_PROTO_GetShiftState [10:22:01]wFMCommunicate request_size=4 [10:22:01]MH_SAM_APDU [10:22:01]CAPDU: 80 13 01 00 [10:22:01]Write to MH i2c: E2 08 00 1D 1C 80 13 01 00 00 00 00 00 B6 [10:22:01]Write i2c OK [10:22:01]MH_I2C_Read... [10:22:01]Read from MH i2c: E2 [10:22:01]MH_I2C_Read... [10:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:01]Read from MH i2c: E2 0E 00 [10:22:01]MH_I2C_Read... [10:22:01]Read from MH i2c: E2 0E 00 1D 1C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 F7 [10:22:01]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:22:01]wFMCommunicate OK [10:22:01]SAM_PROTO_GetShiftState done [10:22:01]FM_GetShiftState done [10:22:01]req_shift_opened done [10:22:01]requested_item shift.open_date is exist - process it [10:22:01]req_shift_open_date [10:22:01]req_shift_open_date done [10:22:01]produce_requested_data done [10:22:01]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64133,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:22:01]process_action_free close_receipt [10:22:01]json_value_free [10:22:01]json_value_free done [10:22:01]process_json_proto returns [10:22:01]Send response to host [10:22:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64133,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:22:01]free response buf [10:22:01]execute_script done [10:22:01]execute_script returns [10:22:01]free content buf [10:22:01]Sock 8.Close socket [10:22:01]Sock 8.Thread stoped [10:22:04]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:10]accept exits with 9 [10:24:10]New connection [10:24:10]New thread 3067133284 created [10:24:10]Thread 3067276644 joined [10:24:10]Waiting for new connection... [10:24:10] Sock 9.Parse request [10:24:10]Sock 9.Check first char [10:24:10]Sock 9.First char is OK [10:24:10]request: POST /json_proto HTTP/1.0 [10:24:10]Method: POST [10:24:10]URL: /json_proto [10:24:10]Method is POST - this is cgi request [10:24:10]url: /json_proto [10:24:10]query_string will be loaded in cgi processing [10:24:10]execute_cgi json_proto POST (null) [10:24:10]execute_cgi path=json_proto method=POST [10:24:10]POST find Content-Length [10:24:10]Host: 172.17.60.69:8080 [10:24:10]Content-Length: 655 [10:24:10]Content-Type: application/json [10:24:10] [10:24:10]POST finish read [10:24:10]Found Content-Length = 655 [10:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73668", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "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" ] } } [10:24:10]execute_script... [10:24:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73668", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "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" ] } } [10:24:10]POST & json_proto [10:24:10]process_json_proto [10:24:10]json parsed OK: [10:24:10]protocol is kg_v1.0 [10:24:10]action value=close_receipt [10:24:10]process_action close_receipt [10:24:10]cmd_close_receipt [10:24:10]MH_GetDate [10:24:10]Write to MH i2c: F0 00 00 1E 1C 29 [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: F0 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: F0 09 00 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: F0 09 00 1E 1C 00 CD 3C 60 66 D2 83 5F 66 1B [10:24:10]GetLastDocTimeStamp 1717582920 [10:24:10]current date 1717583053 [10:24:10]FM_GetShiftState [10:24:10]SAM_PROTO_GetShiftState [10:24:10]wFMCommunicate request_size=4 [10:24:10]MH_SAM_APDU [10:24:10]CAPDU: 80 13 01 00 [10:24:10]Write to MH i2c: E2 08 00 1F 1C 80 13 01 00 00 00 00 00 B8 [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:10]Read from MH i2c: E2 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: E2 0E 00 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: E2 0E 00 1F 1C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 F9 [10:24:10]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:24:10]wFMCommunicate OK [10:24:10]SAM_PROTO_GetShiftState done [10:24:10]FM_GetShiftState done [10:24:10]opened in 1717545925 [10:24:10]opened+sec_in_day 1717632325 [10:24:10]quantity*price = 11000 [10:24:10]sum+1 = 11001 [10:24:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 54 05.06.2024 10:24 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64134 ФПД: 164543131534300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T102413&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64134&fm=164543131534300&tin=02508201610067®Number=0000000000092737&sum=11000 0 [10:24:12]StoreToDocumentArchive [10:24:12]shift 375 fd 64134 [10:24:12]save to /storage/0375/doc_00064134 [10:24:12]save last doc name /storage/0375/doc_00064134 to /storage/kkm_last_doc_name [10:24:12]save OK [10:24:12]Clear old archive folders... [10:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=284 [10:24:12]tlvbuf is B6EF75C0 [10:24:12]SAM_PROTO_ClearQueue [10:24:12]wFMCommunicate request_size=4 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 09 00 00 [10:24:12]Write to MH i2c: E2 08 00 2C 1C 80 09 00 00 00 00 00 00 BA [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:12]Read from MH i2c: E2 03 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 2C 1C 00 90 00 BC [10:24:12]RAPDU: 90 00 [10:24:12]wFMCommunicate OK [10:24:12]SAM_PROTO_ClearQueue done [10:24:12]KKMCreateOFDPacket [10:24:12]OFDProtocolAddRootSTLVToBuf [10:24:12]FM_MakeSignedData [10:24:12]FM_MakeSignedData [10:24:12]SAM_PROTO_SignData [10:24:12]wFMCommunicate request_size=4 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 0D 01 02 [10:24:12]Write to MH i2c: E2 08 00 2D 1C 80 0D 01 02 00 00 00 00 C2 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 2D 1C 00 90 00 BD [10:24:12]RAPDU: 90 00 [10:24:12]wFMCommunicate OK [10:24:12]wFMCommunicate request_size=255 [10:24:12]MH_SAM_APDU [10:24:12]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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 36 00 00 00 F4 03 04 00 CD 3C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 [10:24:12]Write to MH i2c: E2 02 01 2E 1C 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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 36 00 00 00 F4 03 04 00 CD 3C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 00 00 F6 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 2E 1C 00 90 00 BE [10:24:12]RAPDU: 90 00 [10:24:12]wFMCommunicate OK [10:24:12]wFMCommunicate request_size=43 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 86 FA 00 00 35 04 06 00 95 A6 AE E7 C3 DC [10:24:12]Write to MH i2c: E2 2E 00 2F 1C 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 86 FA 00 00 35 04 06 00 95 A6 AE E7 C3 DC 00 00 9B [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 2F 1C 00 90 00 BF [10:24:12]RAPDU: 90 00 [10:24:12]wFMCommunicate OK [10:24:12]wFMCommunicate request_size=4 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 0D 03 02 [10:24:12]Write to MH i2c: E2 08 00 30 1C 80 0D 03 02 00 00 00 00 C7 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 0B 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 0B 00 30 1C 00 80 1C FC E1 50 17 47 74 90 00 63 [10:24:12]RAPDU: 80 1C FC E1 50 17 47 74 90 00 [10:24:12]wFMCommunicate OK [10:24:12]SAM_PROTO_SignData done [10:24:12]FM_MakeSignedData done [10:24:12]CreateOFDProtocolMessage [10:24:12]wFMCommunicate request_size=4 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 11 00 00 [10:24:12]Write to MH i2c: E2 08 00 31 1C 80 11 00 00 00 00 00 00 C7 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 17 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 17 00 31 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 19 [10:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:24:12]wFMCommunicate OK [10:24:12]CreateOFDProtocolMessage done [10:24:12]OFDSenderStorePacket 64134 [10:24:12]StoreOFDPacket docnum=64134 [10:24:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 64 B9 28 01 2F 86 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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 36 00 00 00 F4 03 04 00 CD 3C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 86 FA 00 00 35 04 06 00 95 A6 AE E7 C3 DC 80 1C FC E1 50 17 47 74 [10:24:12]CheckFolder [10:24:12]dirname=/storage/ofd_packets [10:24:12]CheckFolder done [10:24:12]ProducePacketName [10:24:12]name=ofd_packets/00064134 [10:24:12]NVStorageSaveData ofd_packets/00064134 [10:24:12]File name is /storage/ofd_packets/00064134 [10:24:12]Write 334 bytes [10:24:12]NVStorageSaveData done [10:24:12]OFDSenderStorePacket done [10:24:12]KKMCreateOFDPacket done [10:24:12]NVStorageSaveData kkm_last_timestamp [10:24:12]File name is /storage/kkm_last_timestamp [10:24:12]Write 4 bytes [10:24:12]NVStorageSaveData done [10:24:12]ExternCall_PrintAddStr [10:24:12]wPrintStart [10:24:12]Write to MH i2c: 01 00 00 32 1C 4E [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 07 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 07 00 32 1C 00 00 00 00 00 FF 0F 63 [10:24:12]RasterBufferAndPrint [10:24:12]line Счет N : (3)73668 [10:24:12]line ИНН: 02508201610067 [10:24:12]line Контрольно-Кассовый Чек [10:24:12]line ПРОДАЖА [10:24:12]line Товар: 2000034250011 [10:24:12]line Горячий шоколад (GABB trade) [10:24:12]line 1.000 * 110.00 [10:24:12]line = 110.00 [10:24:12]line НДС 12% НСП 1% [10:24:12]line > о реализуемом товаре [10:24:12]line ИТОГО: 110.00 [10:24:12]line НСП 1% : 0.97 [10:24:12]line НДС 12% : 11.68 [10:24:12]line Наличными: 110.00 [10:24:12]line Безнал.: 0.00 [10:24:12]line Место: АЗС № 117 "Партнер Нефть" [10:24:12]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:24:12]line СНО: Общий режим [10:24:12]line Чек 54 05.06.2024 10:24 [10:24:12]line Смена: 375 ФФД: 1.0 [10:24:12]line ЗНМ: 0300000031 [10:24:12]line РНМ: 0000000000092737 [10:24:12]line Версия ККМ: 001 [10:24:12]line ФМ: 0000000000875074 [10:24:12]line ФД: 64134 [10:24:12]line ФПД: 164543131534300 [10:24:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T102413&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64134&fm=164543131534300&tin=02508201610067®Number=0000000000092737&sum=11000 [10:24:12]line 0 [10:24:12]OFD Sender: Processing packet 64134 [packets to send 14, broken 13] [10:24:12]ProducePacketName [10:24:12]name=ofd_packets/00064134 [10:24:12]OFD Sender: To server: pG, [10:24:12]CommunicateWithHost lk.salyk.kg:30040 [10:24:12]ConnectInit lk.salyk.kg [10:24:12]written 0, free lines is 4095 [10:24:12]Connected sock=10 [10:24:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 64 B9 28 01 2F 86 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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 36 00 00 00 F4 03 04 00 CD 3C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 86 FA 00 00 35 04 06 00 95 A6 AE E7 C3 DC 80 1C FC E1 50 17 47 74 [10:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 4E D4 47 00 4B 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 86 FA 00 00 F4 03 04 00 D9 E8 5F 66 B6 04 01 00 00 01 0F AE 7C 14 A1 92 3D [10:24:13]CommunicateWithHost err = 0 [10:24:13]CheckOFDResponse [10:24:13]1017 (14) - 77093643461234 [10:24:13]1041 (16) - 0000000000875074 [10:24:13]1040 (4) - 64134 [10:24:13]1012 (4) - 05.06.2024 04:26 [10:24:13]1206 (1) - 0 [10:24:13]OFD Sender: Remove packet 64134 [10:24:13]ProducePacketName [10:24:13]name=ofd_packets/00064134 [10:24:13]NVStorageDeleteData [10:24:13]Write to MH i2c: 01 00 00 5B 1C 77 [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 07 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 07 00 5B 1C 00 00 00 00 00 D9 0C 63 [10:24:13]RasterBufferAndPrint [10:24:13]line [10:24:13]line [10:24:13]line [10:24:13]line [10:24:13]line [10:24:13]written 0, free lines is 3295 [10:24:13]MH_Cut [10:24:13]Write to MH i2c: D1 01 00 62 1C 01 50 [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: D1 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: D1 01 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: D1 01 00 62 1C 00 4F [10:24:13]Write to MH i2c: 01 00 00 63 1C 7F [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]OFD Sender: No OFD packet to send [10:24:14]*** Cut start [10:24:14]*** Partial cut [10:24:14]*** CUTSNS_PIN = 1 [10:24:14]*** CUTSNS_PIN = 0 [10:24:14]*** Brake cut motor [10:24:14]Read from MH i2c: 01 [10:24:14]MH_I2C_Read... [10:24:14]*** Stop cut motor [10:24:14]*** Cut end [10:24:14]Read from MH i2c: 01 07 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: 01 07 00 63 1C 00 00 00 00 00 FF 0F 94 [10:24:14]process_action close_receipt done [10:24:14]requested_data is exist [10:24:14]produce_requested_data [10:24:14]requested_item fm.sn is exist - process it [10:24:14]wFMCommunicate request_size=4 [10:24:14]MH_SAM_APDU [10:24:14]CAPDU: 80 11 00 00 [10:24:14]Write to MH i2c: E2 08 00 64 1C 80 11 00 00 00 00 00 00 FA [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:14]Read from MH i2c: E2 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 17 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 17 00 64 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4C [10:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:24:14]wFMCommunicate OK [10:24:14]requested_item fd.num is exist - process it [10:24:14]SAM_PROTO_GetFieldsCounters [10:24:14]wFMCommunicate request_size=4 [10:24:14]MH_SAM_APDU [10:24:14]CAPDU: 80 13 00 00 [10:24:14]Write to MH i2c: E2 08 00 65 1C 80 13 00 00 00 00 00 00 FD [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 62 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 62 00 65 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 86 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [10:24:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 86 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:15]wFMCommunicate OK [10:24:15]SAM_PROTO_GetFieldsCounters done [10:24:15]requested_item shift.num is exist - process it [10:24:15]requested_item shift.opened is exist - process it [10:24:15]req_shift_opened [10:24:15]FM_GetShiftState [10:24:15]SAM_PROTO_GetShiftState [10:24:15]wFMCommunicate request_size=4 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 13 01 00 [10:24:15]Write to MH i2c: E2 08 00 66 1C 80 13 01 00 00 00 00 00 FF [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 0E 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 0E 00 66 1C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 40 [10:24:15]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:24:15]wFMCommunicate OK [10:24:15]SAM_PROTO_GetShiftState done [10:24:15]FM_GetShiftState done [10:24:15]req_shift_opened done [10:24:15]requested_item shift.open_date is exist - process it [10:24:15]req_shift_open_date [10:24:15]req_shift_open_date done [10:24:15]produce_requested_data done [10:24:15]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64134,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:24:15]process_action_free close_receipt [10:24:15]json_value_free [10:24:15]json_value_free done [10:24:15]process_json_proto returns [10:24:15]Send response to host [10:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64134,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:24:15]free response buf [10:24:15]execute_script done [10:24:15]execute_script returns [10:24:15]free content buf [10:24:15]Sock 9.Close socket [10:24:15]Sock 9.Thread stoped [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:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:36]accept exits with 8 [10:40:36]New connection [10:40:36]New thread 3067276644 created [10:40:36]Thread 3067133284 joined [10:40:36]Waiting for new connection... [10:40:36] Sock 8.Parse request [10:40:36]Sock 8.Check first char [10:40:36]Sock 8.First char is OK [10:40:36]request: POST /json_proto HTTP/1.0 [10:40:36]Method: POST [10:40:36]URL: /json_proto [10:40:36]Method is POST - this is cgi request [10:40:36]url: /json_proto [10:40:36]query_string will be loaded in cgi processing [10:40:36]execute_cgi json_proto POST (null) [10:40:36]execute_cgi path=json_proto method=POST [10:40:36]POST find Content-Length [10:40:36]Host: 172.17.60.69:8080 [10:40:36]Content-Length: 695 [10:40:36]Content-Type: application/json [10:40:36] [10:40:36]POST finish read [10:40:36]Found Content-Length = 695 [10:40:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73669", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 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" ] } } [10:40:36]execute_script... [10:40: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)73669", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 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" ] } } [10:40:36]POST & json_proto [10:40:36]process_json_proto [10:40:36]json parsed OK: [10:40:36]protocol is kg_v1.0 [10:40:36]action value=close_receipt [10:40:36]process_action close_receipt [10:40:36]cmd_close_receipt [10:40:36]MH_GetDate [10:40:36]Write to MH i2c: F0 00 00 67 1C 72 [10:40:36]Write i2c OK [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: F0 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: F0 09 00 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: F0 09 00 67 1C 00 A7 40 60 66 D2 83 5F 66 42 [10:40:36]GetLastDocTimeStamp 1717583053 [10:40:36]current date 1717584039 [10:40:36]FM_GetShiftState [10:40:36]SAM_PROTO_GetShiftState [10:40:36]wFMCommunicate request_size=4 [10:40:36]MH_SAM_APDU [10:40:36]CAPDU: 80 13 01 00 [10:40:36]Write to MH i2c: E2 08 00 68 1C 80 13 01 00 00 00 00 00 01 [10:40:36]Write i2c OK [10:40:36]MH_I2C_Read... [10:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:36]Read from MH i2c: E2 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: E2 0E 00 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: E2 0E 00 68 1C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 42 [10:40:36]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:40:36]wFMCommunicate OK [10:40:36]SAM_PROTO_GetShiftState done [10:40:36]FM_GetShiftState done [10:40:36]opened in 1717545925 [10:40:36]opened+sec_in_day 1717632325 [10:40:36]quantity*price = 8500 [10:40:36]sum+1 = 8501 [10:40:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 55 05.06.2024 10:40 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64135 ФПД: 65467691084049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T104039&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64135&fm=65467691084049&tin=02508201610067®Number=0000000000092737&sum=8500 0 [10:40:37]StoreToDocumentArchive [10:40:37]shift 375 fd 64135 [10:40:37]save to /storage/0375/doc_00064135 [10:40:37]save last doc name /storage/0375/doc_00064135 to /storage/kkm_last_doc_name [10:40:37]save OK [10:40:37]Clear old archive folders... [10:40:37]ProcessDocumentItem done err = 0, tmpTLVsize=299 [10:40:37]tlvbuf is 00FFFAF0 [10:40:37]SAM_PROTO_ClearQueue [10:40:37]wFMCommunicate request_size=4 [10:40:37]MH_SAM_APDU [10:40:37]CAPDU: 80 09 00 00 [10:40:37]Write to MH i2c: E2 08 00 75 1C 80 09 00 00 00 00 00 00 03 [10:40:37]Write i2c OK [10:40:37]MH_I2C_Read... [10:40:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:37]Read from MH i2c: E2 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 03 00 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 03 00 75 1C 00 90 00 05 [10:40:37]RAPDU: 90 00 [10:40:37]wFMCommunicate OK [10:40:37]SAM_PROTO_ClearQueue done [10:40:37]KKMCreateOFDPacket [10:40:37]OFDProtocolAddRootSTLVToBuf [10:40:37]FM_MakeSignedData [10:40:37]FM_MakeSignedData [10:40:37]SAM_PROTO_SignData [10:40:37]wFMCommunicate request_size=4 [10:40:37]MH_SAM_APDU [10:40:37]CAPDU: 80 0D 01 02 [10:40:37]Write to MH i2c: E2 08 00 76 1C 80 0D 01 02 00 00 00 00 0B [10:40:37]Write i2c OK [10:40:37]MH_I2C_Read... [10:40:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:37]Read from MH i2c: E2 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 03 00 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 03 00 76 1C 00 90 00 06 [10:40:37]RAPDU: 90 00 [10:40:37]wFMCommunicate OK [10:40:37]wFMCommunicate request_size=255 [10:40:37]MH_SAM_APDU [10:40:37]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 37 00 00 00 F4 03 04 00 A7 40 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [10:40:37]Write to MH i2c: E2 02 01 77 1C 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 37 00 00 00 F4 03 04 00 A7 40 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 75 [10:40:37]Write i2c OK [10:40:37]MH_I2C_Read... [10:40:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:37]Read from MH i2c: E2 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 03 00 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 03 00 77 1C 00 90 00 07 [10:40:37]RAPDU: 90 00 [10:40:37]wFMCommunicate OK [10:40:37]wFMCommunicate request_size=58 [10:40:37]MH_SAM_APDU [10:40:37]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 87 FA 00 00 35 04 06 00 3B 8A E2 78 A9 11 [10:40:37]Write to MH i2c: E2 3D 00 78 1C 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 87 FA 00 00 35 04 06 00 3B 8A E2 78 A9 11 00 00 59 [10:40:37]Write i2c OK [10:40:37]MH_I2C_Read... [10:40:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:37]Read from MH i2c: E2 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 03 00 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 03 00 78 1C 00 90 00 08 [10:40:37]RAPDU: 90 00 [10:40:37]wFMCommunicate OK [10:40:37]wFMCommunicate request_size=4 [10:40:37]MH_SAM_APDU [10:40:37]CAPDU: 80 0D 03 02 [10:40:37]Write to MH i2c: E2 08 00 79 1C 80 0D 03 02 00 00 00 00 10 [10:40:37]Write i2c OK [10:40:37]MH_I2C_Read... [10:40:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:37]Read from MH i2c: E2 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 0B 00 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 0B 00 79 1C 00 5F 09 F0 E2 54 CC BA E6 90 00 0B [10:40:37]RAPDU: 5F 09 F0 E2 54 CC BA E6 90 00 [10:40:37]wFMCommunicate OK [10:40:37]SAM_PROTO_SignData done [10:40:37]FM_MakeSignedData done [10:40:37]CreateOFDProtocolMessage [10:40:37]wFMCommunicate request_size=4 [10:40:37]MH_SAM_APDU [10:40:37]CAPDU: 80 11 00 00 [10:40:37]Write to MH i2c: E2 08 00 7A 1C 80 11 00 00 00 00 00 00 10 [10:40:37]Write i2c OK [10:40:37]MH_I2C_Read... [10:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:37]Read from MH i2c: E2 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 17 00 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 17 00 7A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 62 [10:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:40:37]wFMCommunicate OK [10:40:37]CreateOFDProtocolMessage done [10:40:37]OFDSenderStorePacket 64135 [10:40:37]StoreOFDPacket docnum=64135 [10:40:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3F 01 00 00 86 20 37 01 F7 4F 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 37 00 00 00 F4 03 04 00 A7 40 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 87 FA 00 00 35 04 06 00 3B 8A E2 78 A9 11 5F 09 F0 E2 54 CC BA E6 [10:40:37]CheckFolder [10:40:37]dirname=/storage/ofd_packets [10:40:37]CheckFolder done [10:40:37]ProducePacketName [10:40:37]name=ofd_packets/00064135 [10:40:37]NVStorageSaveData ofd_packets/00064135 [10:40:37]File name is /storage/ofd_packets/00064135 [10:40:37]Write 349 bytes [10:40:37]NVStorageSaveData done [10:40:37]OFDSenderStorePacket done [10:40:37]KKMCreateOFDPacket done [10:40:37]NVStorageSaveData kkm_last_timestamp [10:40:37]File name is /storage/kkm_last_timestamp [10:40:37]Write 4 bytes [10:40:37]NVStorageSaveData done [10:40:37]ExternCall_PrintAddStr [10:40:37]wPrintStart [10:40:37]Write to MH i2c: 01 00 00 7B 1C 97 [10:40:37]Write i2c OK [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: 01 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: 01 07 00 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: 01 07 00 7B 1C 00 00 00 00 00 FF 0F AC [10:40:37]RasterBufferAndPrint [10:40:37]line Счет N : (3)73669 [10:40:37]line ИНН: 02508201610067 [10:40:37]line Контрольно-Кассовый Чек [10:40:37]line ПРОДАЖА [10:40:37]line Товар: 4700000480364 [10:40:37]line Напиток энерг Nitro экзотик 0.45 ж/б [10:40:37]line 1.000 * 85.00 [10:40:37]line = 85.00 [10:40:37]line НДС 12% НСП 1% [10:40:37]line > о реализуемом товаре [10:40:37]line ИТОГО: 85.00 [10:40:37]line НСП 1% : 0.75 [10:40:37]line НДС 12% : 9.03 [10:40:37]line Наличными: 85.00 [10:40:37]line Безнал.: 0.00 [10:40:37]line Место: АЗС № 117 "Партнер Нефть" [10:40:37]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:40:37]line СНО: Общий режим [10:40:37]line Чек 55 05.06.2024 10:40 [10:40:37]line Смена: 375 ФФД: 1.0 [10:40:37]line ЗНМ: 0300000031 [10:40:37]line РНМ: 0000000000092737 [10:40:37]line Версия ККМ: 001 [10:40:37]line ФМ: 0000000000875074 [10:40:37]line ФД: 64135 [10:40:37]line ФПД: 65467691084049 [10:40:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T104039&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64135&fm=65467691084049&tin=02508201610067®Number=0000000000092737&sum=8500 [10:40:37]line 0 [10:40:38]written 0, free lines is 4095 [10:40:38]OFD Sender: Processing packet 64135 [packets to send 14, broken 13] [10:40:38]ProducePacketName [10:40:38]name=ofd_packets/00064135 [10:40:38]OFD Sender: To server: pG, [10:40:38]CommunicateWithHost lk.salyk.kg:30040 [10:40:38]ConnectInit lk.salyk.kg [10:40:38]Connected sock=10 [10:40:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3F 01 00 00 86 20 37 01 F7 4F 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 37 00 00 00 F4 03 04 00 A7 40 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 87 FA 00 00 35 04 06 00 3B 8A E2 78 A9 11 5F 09 F0 E2 54 CC BA E6 [10:40:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 74 82 47 00 F5 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 87 FA 00 00 F4 03 04 00 B3 EC 5F 66 B6 04 01 00 00 75 91 AC BD 7E 20 1B 8D [10:40:38]CommunicateWithHost err = 0 [10:40:38]CheckOFDResponse [10:40:38]1017 (14) - 77093643461234 [10:40:38]1041 (16) - 0000000000875074 [10:40:38]1040 (4) - 64135 [10:40:38]1012 (4) - 05.06.2024 04:42 [10:40:38]1206 (1) - 0 [10:40:38]OFD Sender: Remove packet 64135 [10:40:38]ProducePacketName [10:40:38]name=ofd_packets/00064135 [10:40:38]NVStorageDeleteData [10:40:38]Write to MH i2c: 01 00 00 A4 1C C0 [10:40:38]Write i2c OK [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: 01 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: 01 07 00 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: 01 07 00 A4 1C 00 00 00 00 00 FA 0C CD [10:40:38]RasterBufferAndPrint [10:40:38]line [10:40:38]line [10:40:38]line [10:40:38]line [10:40:38]line [10:40:38]written 0, free lines is 3332 [10:40:38]MH_Cut [10:40:38]Write to MH i2c: D1 01 00 AB 1C 01 99 [10:40:38]Write i2c OK [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: D1 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: D1 01 00 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: D1 01 00 AB 1C 00 98 [10:40:38]Write to MH i2c: 01 00 00 AC 1C C8 [10:40:38]Write i2c OK [10:40:38]MH_I2C_Read... [10:40:38]OFD Sender: No OFD packet to send [10:40:39]*** Cut start [10:40:39]*** Partial cut [10:40:39]*** CUTSNS_PIN = 1 [10:40:39]*** CUTSNS_PIN = 0 [10:40:39]*** Brake cut motor [10:40:39]Read from MH i2c: 01 [10:40:39]MH_I2C_Read... [10:40:39]*** Stop cut motor [10:40:40]*** Cut end [10:40:40]Read from MH i2c: 01 07 00 [10:40:40]MH_I2C_Read... [10:40:40]Read from MH i2c: 01 07 00 AC 1C 00 00 00 00 00 FF 0F DD [10:40:40]process_action close_receipt done [10:40:40]requested_data is exist [10:40:40]produce_requested_data [10:40:40]requested_item fm.sn is exist - process it [10:40:40]wFMCommunicate request_size=4 [10:40:40]MH_SAM_APDU [10:40:40]CAPDU: 80 11 00 00 [10:40:40]Write to MH i2c: E2 08 00 AD 1C 80 11 00 00 00 00 00 00 43 [10:40:40]Write i2c OK [10:40:40]MH_I2C_Read... [10:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:40]Read from MH i2c: E2 [10:40:40]MH_I2C_Read... [10:40:40]Read from MH i2c: E2 17 00 [10:40:40]MH_I2C_Read... [10:40:40]Read from MH i2c: E2 17 00 AD 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 95 [10:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:40:40]wFMCommunicate OK [10:40:40]requested_item fd.num is exist - process it [10:40:40]SAM_PROTO_GetFieldsCounters [10:40:40]wFMCommunicate request_size=4 [10:40:40]MH_SAM_APDU [10:40:40]CAPDU: 80 13 00 00 [10:40:40]Write to MH i2c: E2 08 00 AE 1C 80 13 00 00 00 00 00 00 46 [10:40:40]Write i2c OK [10:40:40]MH_I2C_Read... [10:40:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:40]Read from MH i2c: E2 [10:40:40]MH_I2C_Read... [10:40:40]Read from MH i2c: E2 62 00 [10:40:40]MH_I2C_Read... [10:40:40]Read from MH i2c: E2 62 00 AE 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 87 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [10:40:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 87 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:40]wFMCommunicate OK [10:40:40]SAM_PROTO_GetFieldsCounters done [10:40:40]requested_item shift.num is exist - process it [10:40:40]requested_item shift.opened is exist - process it [10:40:40]req_shift_opened [10:40:40]FM_GetShiftState [10:40:40]SAM_PROTO_GetShiftState [10:40:40]wFMCommunicate request_size=4 [10:40:40]MH_SAM_APDU [10:40:40]CAPDU: 80 13 01 00 [10:40:40]Write to MH i2c: E2 08 00 AF 1C 80 13 01 00 00 00 00 00 48 [10:40:40]Write i2c OK [10:40:40]MH_I2C_Read... [10:40:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:40]Read from MH i2c: E2 [10:40:40]MH_I2C_Read... [10:40:40]Read from MH i2c: E2 0E 00 [10:40:40]MH_I2C_Read... [10:40:40]Read from MH i2c: E2 0E 00 AF 1C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 89 [10:40:40]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:40:40]wFMCommunicate OK [10:40:40]SAM_PROTO_GetShiftState done [10:40:40]FM_GetShiftState done [10:40:40]req_shift_opened done [10:40:40]requested_item shift.open_date is exist - process it [10:40:40]req_shift_open_date [10:40:40]req_shift_open_date done [10:40:40]produce_requested_data done [10:40:40]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64135,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:40:40]process_action_free close_receipt [10:40:40]json_value_free [10:40:40]json_value_free done [10:40:40]process_json_proto returns [10:40:40]Send response to host [10:40:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64135,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:40:40]free response buf [10:40:40]execute_script done [10:40:40]execute_script returns [10:40:40]free content buf [10:40:40]Sock 8.Close socket [10:40:40]Sock 8.Thread stoped [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:20]accept exits with 9 [10:44:20]New connection [10:44:20]New thread 3067133284 created [10:44:20]Thread 3067276644 joined [10:44:20]Waiting for new connection... [10:44:20] Sock 9.Parse request [10:44:20]Sock 9.Check first char [10:44:20]Sock 9.First char is OK [10:44:20]request: POST /json_proto HTTP/1.0 [10:44:20]Method: POST [10:44:20]URL: /json_proto [10:44:20]Method is POST - this is cgi request [10:44:20]url: /json_proto [10:44:20]query_string will be loaded in cgi processing [10:44:20]execute_cgi json_proto POST (null) [10:44:20]execute_cgi path=json_proto method=POST [10:44:20]POST find Content-Length [10:44:20]Host: 172.17.60.69:8080 [10:44:20]Content-Length: 643 [10:44:20]Content-Type: application/json [10:44:20] [10:44:20]POST finish read [10:44:20]Found Content-Length = 643 [10:44:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73670", "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" : 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" ] } } [10:44:20]execute_script... [10:44:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73670", "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" : 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" ] } } [10:44:20]POST & json_proto [10:44:20]process_json_proto [10:44:20]json parsed OK: [10:44:20]protocol is kg_v1.0 [10:44:20]action value=close_receipt [10:44:20]process_action close_receipt [10:44:20]cmd_close_receipt [10:44:20]MH_GetDate [10:44:20]Write to MH i2c: F0 00 00 B0 1C BB [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: F0 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: F0 09 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: F0 09 00 B0 1C 00 87 41 60 66 D2 83 5F 66 6C [10:44:20]GetLastDocTimeStamp 1717584039 [10:44:20]current date 1717584263 [10:44:20]FM_GetShiftState [10:44:20]SAM_PROTO_GetShiftState [10:44:20]wFMCommunicate request_size=4 [10:44:20]MH_SAM_APDU [10:44:20]CAPDU: 80 13 01 00 [10:44:20]Write to MH i2c: E2 08 00 B1 1C 80 13 01 00 00 00 00 00 4A [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:20]Read from MH i2c: E2 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 0E 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 0E 00 B1 1C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 8B [10:44:20]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:44:20]wFMCommunicate OK [10:44:20]SAM_PROTO_GetShiftState done [10:44:20]FM_GetShiftState done [10:44:20]opened in 1717545925 [10:44:20]opened+sec_in_day 1717632325 [10:44:20]quantity*price = 11500 [10:44:20]sum+1 = 11501 [10:44:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 56 05.06.2024 10:44 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64136 ФПД: 154419387807077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T104423&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64136&fm=154419387807077&tin=02508201610067®Number=0000000000092737&sum=11500 0 [10:44:21]StoreToDocumentArchive [10:44:21]shift 375 fd 64136 [10:44:21]save to /storage/0375/doc_00064136 [10:44:21]save last doc name /storage/0375/doc_00064136 to /storage/kkm_last_doc_name [10:44:21]save OK [10:44:21]Clear old archive folders... [10:44:21]ProcessDocumentItem done err = 0, tmpTLVsize=280 [10:44:21]tlvbuf is 00FB07A0 [10:44:21]SAM_PROTO_ClearQueue [10:44:21]wFMCommunicate request_size=4 [10:44:21]MH_SAM_APDU [10:44:21]CAPDU: 80 09 00 00 [10:44:21]Write to MH i2c: E2 08 00 BE 1C 80 09 00 00 00 00 00 00 4C [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:21]Read from MH i2c: E2 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 03 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 03 00 BE 1C 00 90 00 4E [10:44:21]RAPDU: 90 00 [10:44:21]wFMCommunicate OK [10:44:21]SAM_PROTO_ClearQueue done [10:44:21]KKMCreateOFDPacket [10:44:21]OFDProtocolAddRootSTLVToBuf [10:44:21]FM_MakeSignedData [10:44:21]FM_MakeSignedData [10:44:21]SAM_PROTO_SignData [10:44:21]wFMCommunicate request_size=4 [10:44:21]MH_SAM_APDU [10:44:21]CAPDU: 80 0D 01 02 [10:44:21]Write to MH i2c: E2 08 00 BF 1C 80 0D 01 02 00 00 00 00 54 [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:21]Read from MH i2c: E2 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 03 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 03 00 BF 1C 00 90 00 4F [10:44:21]RAPDU: 90 00 [10:44:21]wFMCommunicate OK [10:44:21]wFMCommunicate request_size=255 [10:44:21]MH_SAM_APDU [10:44:21]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 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 38 00 00 00 F4 03 04 00 87 41 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [10:44:21]Write to MH i2c: E2 02 01 C0 1C 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 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 38 00 00 00 F4 03 04 00 87 41 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 D5 [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:21]Read from MH i2c: E2 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 03 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 03 00 C0 1C 00 90 00 50 [10:44:21]RAPDU: 90 00 [10:44:21]wFMCommunicate OK [10:44:21]wFMCommunicate request_size=39 [10:44:21]MH_SAM_APDU [10:44:21]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 88 FA 00 00 35 04 06 00 8C 71 90 C1 B5 65 [10:44:21]Write to MH i2c: E2 2A 00 C1 1C 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 88 FA 00 00 35 04 06 00 8C 71 90 C1 B5 65 00 00 FB [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:21]Read from MH i2c: E2 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 03 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 03 00 C1 1C 00 90 00 51 [10:44:21]RAPDU: 90 00 [10:44:21]wFMCommunicate OK [10:44:21]wFMCommunicate request_size=4 [10:44:21]MH_SAM_APDU [10:44:21]CAPDU: 80 0D 03 02 [10:44:21]Write to MH i2c: E2 08 00 C2 1C 80 0D 03 02 00 00 00 00 59 [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:21]Read from MH i2c: E2 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 0B 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 0B 00 C2 1C 00 90 94 F1 3C A7 A9 3C 74 90 00 AB [10:44:21]RAPDU: 90 94 F1 3C A7 A9 3C 74 90 00 [10:44:21]wFMCommunicate OK [10:44:21]SAM_PROTO_SignData done [10:44:21]FM_MakeSignedData done [10:44:21]CreateOFDProtocolMessage [10:44:21]wFMCommunicate request_size=4 [10:44:21]MH_SAM_APDU [10:44:21]CAPDU: 80 11 00 00 [10:44:21]Write to MH i2c: E2 08 00 C3 1C 80 11 00 00 00 00 00 00 59 [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:21]Read from MH i2c: E2 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 17 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 17 00 C3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AB [10:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:44:21]wFMCommunicate OK [10:44:21]CreateOFDProtocolMessage done [10:44:21]OFDSenderStorePacket 64136 [10:44:21]StoreOFDPacket docnum=64136 [10:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 D2 07 24 01 05 FC 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 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 38 00 00 00 F4 03 04 00 87 41 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 88 FA 00 00 35 04 06 00 8C 71 90 C1 B5 65 90 94 F1 3C A7 A9 3C 74 [10:44:21]CheckFolder [10:44:21]dirname=/storage/ofd_packets [10:44:21]CheckFolder done [10:44:21]ProducePacketName [10:44:21]name=ofd_packets/00064136 [10:44:21]NVStorageSaveData ofd_packets/00064136 [10:44:21]File name is /storage/ofd_packets/00064136 [10:44:21]Write 330 bytes [10:44:21]NVStorageSaveData done [10:44:21]OFDSenderStorePacket done [10:44:21]KKMCreateOFDPacket done [10:44:21]NVStorageSaveData kkm_last_timestamp [10:44:21]File name is /storage/kkm_last_timestamp [10:44:21]Write 4 bytes [10:44:21]NVStorageSaveData done [10:44:21]ExternCall_PrintAddStr [10:44:21]wPrintStart [10:44:21]Write to MH i2c: 01 00 00 C4 1C E0 [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: 01 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: 01 07 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: 01 07 00 C4 1C 00 00 00 00 00 FF 0F F5 [10:44:21]RasterBufferAndPrint [10:44:21]line Счет N : (3)73670 [10:44:21]line ИНН: 02508201610067 [10:44:21]line Контрольно-Кассовый Чек [10:44:21]line ПРОДАЖА [10:44:21]line Товар: 2000036210013 [10:44:21]line Кофе Капучино (GABB TRADE) [10:44:21]line 1.000 * 115.00 [10:44:21]line = 115.00 [10:44:21]line НДС 12% НСП 1% [10:44:21]line > о реализуемом товаре [10:44:21]line ИТОГО: 115.00 [10:44:21]line НСП 1% : 1.02 [10:44:21]line НДС 12% : 12.21 [10:44:21]line Наличными: 115.00 [10:44:21]line Безнал.: 0.00 [10:44:21]line Место: АЗС № 117 "Партнер Нефть" [10:44:21]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:44:21]line СНО: Общий режим [10:44:21]line Чек 56 05.06.2024 10:44 [10:44:21]line Смена: 375 ФФД: 1.0 [10:44:21]line ЗНМ: 0300000031 [10:44:21]line РНМ: 0000000000092737 [10:44:21]line Версия ККМ: 001 [10:44:22]line ФМ: 0000000000875074 [10:44:22]line ФД: 64136 [10:44:22]line ФПД: 154419387807077 [10:44:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T104423&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64136&fm=154419387807077&tin=02508201610067®Number=0000000000092737&sum=11500 [10:44:22]line 0 [10:44:22]OFD Sender: Processing packet 64136 [packets to send 14, broken 13] [10:44:22]ProducePacketName [10:44:22]name=ofd_packets/00064136 [10:44:22]OFD Sender: To server: pG, [10:44:22]CommunicateWithHost lk.salyk.kg:30040 [10:44:22]ConnectInit lk.salyk.kg [10:44:22]written 0, free lines is 4095 [10:44:22]Connected sock=10 [10:44:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 D2 07 24 01 05 FC 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 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 38 00 00 00 F4 03 04 00 87 41 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 88 FA 00 00 35 04 06 00 8C 71 90 C1 B5 65 90 94 F1 3C A7 A9 3C 74 [10:44:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 16 73 47 00 46 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 88 FA 00 00 F4 03 04 00 93 ED 5F 66 B6 04 01 00 00 88 C9 F5 EC B3 D1 72 29 [10:44:22]CommunicateWithHost err = 0 [10:44:22]CheckOFDResponse [10:44:22]1017 (14) - 77093643461234 [10:44:22]1041 (16) - 0000000000875074 [10:44:22]1040 (4) - 64136 [10:44:22]1012 (4) - 05.06.2024 04:46 [10:44:22]1206 (1) - 0 [10:44:22]OFD Sender: Remove packet 64136 [10:44:22]ProducePacketName [10:44:22]name=ofd_packets/00064136 [10:44:22]NVStorageDeleteData [10:44:22]Write to MH i2c: 01 00 00 EC 1C 08 [10:44:22]Write i2c OK [10:44:22]MH_I2C_Read... [10:44:22]Read from MH i2c: 01 [10:44:22]MH_I2C_Read... [10:44:22]Read from MH i2c: 01 07 00 [10:44:22]MH_I2C_Read... [10:44:22]Read from MH i2c: 01 07 00 EC 1C 00 00 00 00 00 FB 0C 16 [10:44:22]RasterBufferAndPrint [10:44:22]line [10:44:22]line [10:44:22]line [10:44:22]line [10:44:22]line [10:44:22]written 0, free lines is 3329 [10:44:22]MH_Cut [10:44:22]Write to MH i2c: D1 01 00 F3 1C 01 E1 [10:44:22]Write i2c OK [10:44:22]MH_I2C_Read... [10:44:22]Read from MH i2c: D1 [10:44:22]MH_I2C_Read... [10:44:22]Read from MH i2c: D1 01 00 [10:44:22]MH_I2C_Read... [10:44:22]Read from MH i2c: D1 01 00 F3 1C 00 E0 [10:44:22]Write to MH i2c: 01 00 00 F4 1C 10 [10:44:22]Write i2c OK [10:44:22]MH_I2C_Read... [10:44:22]OFD Sender: No OFD packet to send [10:44:23]*** Cut start [10:44:23]*** Partial cut [10:44:23]*** CUTSNS_PIN = 1 [10:44:23]*** CUTSNS_PIN = 0 [10:44:23]*** Brake cut motor [10:44:24]Read from MH i2c: 01 [10:44:24]MH_I2C_Read... [10:44:24]*** Stop cut motor [10:44:24]*** Cut end [10:44:24]Read from MH i2c: 01 07 00 [10:44:24]MH_I2C_Read... [10:44:24]Read from MH i2c: 01 07 00 F4 1C 00 00 00 00 00 FF 0F 25 [10:44:24]process_action close_receipt done [10:44:24]requested_data is exist [10:44:24]produce_requested_data [10:44:24]requested_item fm.sn is exist - process it [10:44:24]wFMCommunicate request_size=4 [10:44:24]MH_SAM_APDU [10:44:24]CAPDU: 80 11 00 00 [10:44:24]Write to MH i2c: E2 08 00 F5 1C 80 11 00 00 00 00 00 00 8B [10:44:24]Write i2c OK [10:44:24]MH_I2C_Read... [10:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:24]Read from MH i2c: E2 [10:44:24]MH_I2C_Read... [10:44:24]Read from MH i2c: E2 17 00 [10:44:24]MH_I2C_Read... [10:44:24]Read from MH i2c: E2 17 00 F5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DD [10:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:44:24]wFMCommunicate OK [10:44:24]requested_item fd.num is exist - process it [10:44:24]SAM_PROTO_GetFieldsCounters [10:44:24]wFMCommunicate request_size=4 [10:44:24]MH_SAM_APDU [10:44:24]CAPDU: 80 13 00 00 [10:44:24]Write to MH i2c: E2 08 00 F6 1C 80 13 00 00 00 00 00 00 8E [10:44:24]Write i2c OK [10:44:24]MH_I2C_Read... [10:44:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:24]Read from MH i2c: E2 [10:44:24]MH_I2C_Read... [10:44:24]Read from MH i2c: E2 62 00 [10:44:24]MH_I2C_Read... [10:44:24]Read from MH i2c: E2 62 00 F6 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 88 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [10:44:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 88 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:24]wFMCommunicate OK [10:44:24]SAM_PROTO_GetFieldsCounters done [10:44:24]requested_item shift.num is exist - process it [10:44:24]requested_item shift.opened is exist - process it [10:44:24]req_shift_opened [10:44:24]FM_GetShiftState [10:44:24]SAM_PROTO_GetShiftState [10:44:24]wFMCommunicate request_size=4 [10:44:24]MH_SAM_APDU [10:44:24]CAPDU: 80 13 01 00 [10:44:24]Write to MH i2c: E2 08 00 F7 1C 80 13 01 00 00 00 00 00 90 [10:44:24]Write i2c OK [10:44:24]MH_I2C_Read... [10:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:24]Read from MH i2c: E2 [10:44:24]MH_I2C_Read... [10:44:24]Read from MH i2c: E2 0E 00 [10:44:24]MH_I2C_Read... [10:44:24]Read from MH i2c: E2 0E 00 F7 1C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 D1 [10:44:24]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:44:24]wFMCommunicate OK [10:44:24]SAM_PROTO_GetShiftState done [10:44:24]FM_GetShiftState done [10:44:24]req_shift_opened done [10:44:24]requested_item shift.open_date is exist - process it [10:44:24]req_shift_open_date [10:44:24]req_shift_open_date done [10:44:24]produce_requested_data done [10:44:24]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64136,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:44:24]process_action_free close_receipt [10:44:24]json_value_free [10:44:24]json_value_free done [10:44:24]process_json_proto returns [10:44:24]Send response to host [10:44:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64136,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:44:24]free response buf [10:44:24]execute_script done [10:44:24]execute_script returns [10:44:24]free content buf [10:44:24]Sock 9.Close socket [10:44:24]Sock 9.Thread stoped [10:44:27]OFD Sender: No OFD packet to send [10:44:30]accept exits with 8 [10:44:30]New connection [10:44:30]New thread 3067276644 created [10:44:30]Thread 3067133284 joined [10:44:30]Waiting for new connection... [10:44:30] Sock 8.Parse request [10:44:30]Sock 8.Check first char [10:44:30]Sock 8.First char is OK [10:44:30]request: POST /json_proto HTTP/1.0 [10:44:30]Method: POST [10:44:30]URL: /json_proto [10:44:30]Method is POST - this is cgi request [10:44:30]url: /json_proto [10:44:30]query_string will be loaded in cgi processing [10:44:30]execute_cgi json_proto POST (null) [10:44:30]execute_cgi path=json_proto method=POST [10:44:30]POST find Content-Length [10:44:30]Host: 172.17.60.69:8080 [10:44:30]Content-Length: 643 [10:44:30]Content-Type: application/json [10:44:30] [10:44:30]POST finish read [10:44:30]Found Content-Length = 643 [10:44:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73671", "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" : 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" ] } } [10:44:30]execute_script... [10:44:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73671", "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" : 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" ] } } [10:44:30]POST & json_proto [10:44:30]process_json_proto [10:44:30]json parsed OK: [10:44:30]protocol is kg_v1.0 [10:44:30]action value=close_receipt [10:44:30]process_action close_receipt [10:44:30]cmd_close_receipt [10:44:30]MH_GetDate [10:44:30]Write to MH i2c: F0 00 00 F8 1C 03 [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: F0 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: F0 09 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: F0 09 00 F8 1C 00 91 41 60 66 D2 83 5F 66 BE [10:44:30]GetLastDocTimeStamp 1717584263 [10:44:30]current date 1717584273 [10:44:30]FM_GetShiftState [10:44:30]SAM_PROTO_GetShiftState [10:44:30]wFMCommunicate request_size=4 [10:44:30]MH_SAM_APDU [10:44:30]CAPDU: 80 13 01 00 [10:44:30]Write to MH i2c: E2 08 00 F9 1C 80 13 01 00 00 00 00 00 92 [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:30]Read from MH i2c: E2 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 0E 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 0E 00 F9 1C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 D3 [10:44:30]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:44:30]wFMCommunicate OK [10:44:30]SAM_PROTO_GetShiftState done [10:44:30]FM_GetShiftState done [10:44:30]opened in 1717545925 [10:44:30]opened+sec_in_day 1717632325 [10:44:30]quantity*price = 11500 [10:44:30]sum+1 = 11501 [10:44:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 57 05.06.2024 10:44 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64137 ФПД: 19899223258693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T104433&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64137&fm=19899223258693&tin=02508201610067®Number=0000000000092737&sum=11500 0 [10:44:31]StoreToDocumentArchive [10:44:31]shift 375 fd 64137 [10:44:31]save to /storage/0375/doc_00064137 [10:44:31]save last doc name /storage/0375/doc_00064137 to /storage/kkm_last_doc_name [10:44:31]save OK [10:44:31]Clear old archive folders... [10:44:31]ProcessDocumentItem done err = 0, tmpTLVsize=280 [10:44:31]tlvbuf is 010852A0 [10:44:31]SAM_PROTO_ClearQueue [10:44:31]wFMCommunicate request_size=4 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 09 00 00 [10:44:31]Write to MH i2c: E2 08 00 06 1D 80 09 00 00 00 00 00 00 95 [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 06 1D 00 90 00 97 [10:44:31]RAPDU: 90 00 [10:44:31]wFMCommunicate OK [10:44:31]SAM_PROTO_ClearQueue done [10:44:31]KKMCreateOFDPacket [10:44:31]OFDProtocolAddRootSTLVToBuf [10:44:31]FM_MakeSignedData [10:44:31]FM_MakeSignedData [10:44:31]SAM_PROTO_SignData [10:44:31]wFMCommunicate request_size=4 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 0D 01 02 [10:44:31]Write to MH i2c: E2 08 00 07 1D 80 0D 01 02 00 00 00 00 9D [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 07 1D 00 90 00 98 [10:44:31]RAPDU: 90 00 [10:44:31]wFMCommunicate OK [10:44:31]wFMCommunicate request_size=255 [10:44:31]MH_SAM_APDU [10:44:31]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 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 39 00 00 00 F4 03 04 00 91 41 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [10:44:31]Write to MH i2c: E2 02 01 08 1D 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 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 39 00 00 00 F4 03 04 00 91 41 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 29 [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 08 1D 00 90 00 99 [10:44:31]RAPDU: 90 00 [10:44:31]wFMCommunicate OK [10:44:31]wFMCommunicate request_size=39 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 89 FA 00 00 35 04 06 00 12 19 26 22 36 45 [10:44:31]Write to MH i2c: E2 2A 00 09 1D 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 89 FA 00 00 35 04 06 00 12 19 26 22 36 45 00 00 CB [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 09 1D 00 90 00 9A [10:44:31]RAPDU: 90 00 [10:44:31]wFMCommunicate OK [10:44:31]wFMCommunicate request_size=4 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 0D 03 02 [10:44:31]Write to MH i2c: E2 08 00 0A 1D 80 0D 03 02 00 00 00 00 A2 [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 0B 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 0B 00 0A 1D 00 19 80 DD 88 39 2E 63 38 90 00 A3 [10:44:31]RAPDU: 19 80 DD 88 39 2E 63 38 90 00 [10:44:31]wFMCommunicate OK [10:44:31]SAM_PROTO_SignData done [10:44:31]FM_MakeSignedData done [10:44:31]CreateOFDProtocolMessage [10:44:31]wFMCommunicate request_size=4 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 11 00 00 [10:44:31]Write to MH i2c: E2 08 00 0B 1D 80 11 00 00 00 00 00 00 A2 [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 17 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 17 00 0B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F4 [10:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:44:31]wFMCommunicate OK [10:44:31]CreateOFDProtocolMessage done [10:44:31]OFDSenderStorePacket 64137 [10:44:31]StoreOFDPacket docnum=64137 [10:44:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 82 86 24 01 E5 6C 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 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 39 00 00 00 F4 03 04 00 91 41 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 89 FA 00 00 35 04 06 00 12 19 26 22 36 45 19 80 DD 88 39 2E 63 38 [10:44:31]CheckFolder [10:44:31]dirname=/storage/ofd_packets [10:44:31]CheckFolder done [10:44:31]ProducePacketName [10:44:31]name=ofd_packets/00064137 [10:44:31]NVStorageSaveData ofd_packets/00064137 [10:44:31]File name is /storage/ofd_packets/00064137 [10:44:31]Write 330 bytes [10:44:31]NVStorageSaveData done [10:44:31]OFDSenderStorePacket done [10:44:31]KKMCreateOFDPacket done [10:44:31]NVStorageSaveData kkm_last_timestamp [10:44:31]File name is /storage/kkm_last_timestamp [10:44:31]Write 4 bytes [10:44:31]NVStorageSaveData done [10:44:31]ExternCall_PrintAddStr [10:44:31]wPrintStart [10:44:31]Write to MH i2c: 01 00 00 0C 1D 29 [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: 01 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: 01 07 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: 01 07 00 0C 1D 00 00 00 00 00 FF 0F 3E [10:44:31]RasterBufferAndPrint [10:44:31]line Счет N : (3)73671 [10:44:31]line ИНН: 02508201610067 [10:44:31]line Контрольно-Кассовый Чек [10:44:31]line ПРОДАЖА [10:44:31]line Товар: 2000036210013 [10:44:31]line Кофе Капучино (GABB TRADE) [10:44:31]line 1.000 * 115.00 [10:44:31]line = 115.00 [10:44:31]line НДС 12% НСП 1% [10:44:31]line > о реализуемом товаре [10:44:31]line ИТОГО: 115.00 [10:44:31]line НСП 1% : 1.02 [10:44:31]line НДС 12% : 12.21 [10:44:31]line Наличными: 115.00 [10:44:31]line Безнал.: 0.00 [10:44:31]line Место: АЗС № 117 "Партнер Нефть" [10:44:31]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:44:31]line СНО: Общий режим [10:44:31]line Чек 57 05.06.2024 10:44 [10:44:31]line Смена: 375 ФФД: 1.0 [10:44:31]line ЗНМ: 0300000031 [10:44:31]line РНМ: 0000000000092737 [10:44:31]line Версия ККМ: 001 [10:44:31]line ФМ: 0000000000875074 [10:44:31]line ФД: 64137 [10:44:31]line ФПД: 19899223258693 [10:44:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T104433&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64137&fm=19899223258693&tin=02508201610067®Number=0000000000092737&sum=11500 [10:44:31]line 0 [10:44:31]written 0, free lines is 4095 [10:44:32]OFD Sender: Processing packet 64137 [packets to send 14, broken 13] [10:44:32]ProducePacketName [10:44:32]name=ofd_packets/00064137 [10:44:32]OFD Sender: To server: pG, [10:44:32]CommunicateWithHost lk.salyk.kg:30040 [10:44:32]ConnectInit lk.salyk.kg [10:44:32]Connected sock=10 [10:44:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 82 86 24 01 E5 6C 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 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 39 00 00 00 F4 03 04 00 91 41 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 89 FA 00 00 35 04 06 00 12 19 26 22 36 45 19 80 DD 88 39 2E 63 38 [10:44:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 63 39 47 00 A0 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 89 FA 00 00 F4 03 04 00 9D ED 5F 66 B6 04 01 00 00 A0 2E 1D 74 C9 02 00 2E [10:44:32]CommunicateWithHost err = 0 [10:44:32]CheckOFDResponse [10:44:32]1017 (14) - 77093643461234 [10:44:32]1041 (16) - 0000000000875074 [10:44:32]1040 (4) - 64137 [10:44:32]1012 (4) - 05.06.2024 04:46 [10:44:32]1206 (1) - 0 [10:44:32]OFD Sender: Remove packet 64137 [10:44:32]ProducePacketName [10:44:32]name=ofd_packets/00064137 [10:44:32]NVStorageDeleteData [10:44:32]Write to MH i2c: 01 00 00 34 1D 51 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: 01 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: 01 07 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: 01 07 00 34 1D 00 00 00 00 00 06 0D 6B [10:44:32]RasterBufferAndPrint [10:44:32]line [10:44:32]line [10:44:32]line [10:44:32]line [10:44:32]line [10:44:32]written 0, free lines is 3340 [10:44:32]MH_Cut [10:44:32]Write to MH i2c: D1 01 00 3B 1D 01 2A [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: D1 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: D1 01 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: D1 01 00 3B 1D 00 29 [10:44:32]Write to MH i2c: 01 00 00 3C 1D 59 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]OFD Sender: No OFD packet to send [10:44:33]*** Cut start [10:44:33]*** Partial cut [10:44:33]*** CUTSNS_PIN = 1 [10:44:33]*** CUTSNS_PIN = 0 [10:44:33]*** Brake cut motor [10:44:33]Read from MH i2c: 01 [10:44:33]MH_I2C_Read... [10:44:33]*** Stop cut motor [10:44:33]*** Cut end [10:44:33]Read from MH i2c: 01 07 00 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: 01 07 00 3C 1D 00 00 00 00 00 FF 0F 6E [10:44:33]process_action close_receipt done [10:44:33]requested_data is exist [10:44:33]produce_requested_data [10:44:33]requested_item fm.sn is exist - process it [10:44:33]wFMCommunicate request_size=4 [10:44:33]MH_SAM_APDU [10:44:33]CAPDU: 80 11 00 00 [10:44:33]Write to MH i2c: E2 08 00 3D 1D 80 11 00 00 00 00 00 00 D4 [10:44:33]Write i2c OK [10:44:33]MH_I2C_Read... [10:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:33]Read from MH i2c: E2 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: E2 17 00 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: E2 17 00 3D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 26 [10:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:44:33]wFMCommunicate OK [10:44:33]requested_item fd.num is exist - process it [10:44:33]SAM_PROTO_GetFieldsCounters [10:44:33]wFMCommunicate request_size=4 [10:44:33]MH_SAM_APDU [10:44:33]CAPDU: 80 13 00 00 [10:44:33]Write to MH i2c: E2 08 00 3E 1D 80 13 00 00 00 00 00 00 D7 [10:44:33]Write i2c OK [10:44:33]MH_I2C_Read... [10:44:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:34]Read from MH i2c: E2 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 62 00 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 62 00 3E 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 89 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [10:44:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 89 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:34]wFMCommunicate OK [10:44:34]SAM_PROTO_GetFieldsCounters done [10:44:34]requested_item shift.num is exist - process it [10:44:34]requested_item shift.opened is exist - process it [10:44:34]req_shift_opened [10:44:34]FM_GetShiftState [10:44:34]SAM_PROTO_GetShiftState [10:44:34]wFMCommunicate request_size=4 [10:44:34]MH_SAM_APDU [10:44:34]CAPDU: 80 13 01 00 [10:44:34]Write to MH i2c: E2 08 00 3F 1D 80 13 01 00 00 00 00 00 D9 [10:44:34]Write i2c OK [10:44:34]MH_I2C_Read... [10:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:34]Read from MH i2c: E2 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 0E 00 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 0E 00 3F 1D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 1A [10:44:34]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:44:34]wFMCommunicate OK [10:44:34]SAM_PROTO_GetShiftState done [10:44:34]FM_GetShiftState done [10:44:34]req_shift_opened done [10:44:34]requested_item shift.open_date is exist - process it [10:44:34]req_shift_open_date [10:44:34]req_shift_open_date done [10:44:34]produce_requested_data done [10:44:34]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64137,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:44:34]process_action_free close_receipt [10:44:34]json_value_free [10:44:34]json_value_free done [10:44:34]process_json_proto returns [10:44:34]Send response to host [10:44:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64137,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:44:34]free response buf [10:44:34]execute_script done [10:44:34]execute_script returns [10:44:34]free content buf [10:44:34]Sock 8.Close socket [10:44:34]Sock 8.Thread stoped [10:44:37]OFD Sender: No OFD packet to send [10:44:40]accept exits with 9 [10:44:40]New connection [10:44:40]New thread 3067133284 created [10:44:40]Thread 3067276644 joined [10:44:40]Waiting for new connection... [10:44:40] Sock 9.Parse request [10:44:40]Sock 9.Check first char [10:44:40]Sock 9.First char is OK [10:44:40]request: POST /json_proto HTTP/1.0 [10:44:40]Method: POST [10:44:40]URL: /json_proto [10:44:40]Method is POST - this is cgi request [10:44:40]url: /json_proto [10:44:40]query_string will be loaded in cgi processing [10:44:40]execute_cgi json_proto POST (null) [10:44:40]execute_cgi path=json_proto method=POST [10:44:40]POST find Content-Length [10:44:40]Host: 172.17.60.69:8080 [10:44:40]Content-Length: 643 [10:44:40]Content-Type: application/json [10:44:40] [10:44:40]POST finish read [10:44:40]Found Content-Length = 643 [10:44:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73672", "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" : 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" ] } } [10:44:40]execute_script... [10:44: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)73672", "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" : 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" ] } } [10:44:40]POST & json_proto [10:44:40]process_json_proto [10:44:40]json parsed OK: [10:44:40]protocol is kg_v1.0 [10:44:40]action value=close_receipt [10:44:40]process_action close_receipt [10:44:40]cmd_close_receipt [10:44:40]MH_GetDate [10:44:40]Write to MH i2c: F0 00 00 40 1D 4C [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: F0 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: F0 09 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: F0 09 00 40 1D 00 9B 41 60 66 D2 83 5F 66 11 [10:44:40]GetLastDocTimeStamp 1717584273 [10:44:40]current date 1717584283 [10:44:40]FM_GetShiftState [10:44:40]SAM_PROTO_GetShiftState [10:44:40]wFMCommunicate request_size=4 [10:44:40]MH_SAM_APDU [10:44:40]CAPDU: 80 13 01 00 [10:44:40]Write to MH i2c: E2 08 00 41 1D 80 13 01 00 00 00 00 00 DB [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 [10:44:40]MH_I2C_Read... [10:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:40]Read from MH i2c: E2 0E 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 0E 00 41 1D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 1C [10:44:40]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:44:40]wFMCommunicate OK [10:44:40]SAM_PROTO_GetShiftState done [10:44:40]FM_GetShiftState done [10:44:40]opened in 1717545925 [10:44:40]opened+sec_in_day 1717632325 [10:44:40]quantity*price = 11500 [10:44:40]sum+1 = 11501 [10:44:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 58 05.06.2024 10:44 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64138 ФПД: 132397404890594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T104443&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64138&fm=132397404890594&tin=02508201610067®Number=0000000000092737&sum=11500 0 [10:44:41]StoreToDocumentArchive [10:44:41]shift 375 fd 64138 [10:44:41]save to /storage/0375/doc_00064138 [10:44:41]save last doc name /storage/0375/doc_00064138 to /storage/kkm_last_doc_name [10:44:41]save OK [10:44:41]Clear old archive folders... [10:44:41]ProcessDocumentItem done err = 0, tmpTLVsize=280 [10:44:41]tlvbuf is 00FEA130 [10:44:41]SAM_PROTO_ClearQueue [10:44:41]wFMCommunicate request_size=4 [10:44:41]MH_SAM_APDU [10:44:41]CAPDU: 80 09 00 00 [10:44:41]Write to MH i2c: E2 08 00 4E 1D 80 09 00 00 00 00 00 00 DD [10:44:41]Write i2c OK [10:44:41]MH_I2C_Read... [10:44:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:41]Read from MH i2c: E2 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 03 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 03 00 4E 1D 00 90 00 DF [10:44:41]RAPDU: 90 00 [10:44:41]wFMCommunicate OK [10:44:41]SAM_PROTO_ClearQueue done [10:44:41]KKMCreateOFDPacket [10:44:41]OFDProtocolAddRootSTLVToBuf [10:44:41]FM_MakeSignedData [10:44:41]FM_MakeSignedData [10:44:41]SAM_PROTO_SignData [10:44:41]wFMCommunicate request_size=4 [10:44:41]MH_SAM_APDU [10:44:41]CAPDU: 80 0D 01 02 [10:44:41]Write to MH i2c: E2 08 00 4F 1D 80 0D 01 02 00 00 00 00 E5 [10:44:41]Write i2c OK [10:44:41]MH_I2C_Read... [10:44:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:41]Read from MH i2c: E2 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 03 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 03 00 4F 1D 00 90 00 E0 [10:44:41]RAPDU: 90 00 [10:44:41]wFMCommunicate OK [10:44:41]wFMCommunicate request_size=255 [10:44:41]MH_SAM_APDU [10:44:41]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 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 3A 00 00 00 F4 03 04 00 9B 41 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [10:44:41]Write to MH i2c: E2 02 01 50 1D 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 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 3A 00 00 00 F4 03 04 00 9B 41 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 7C [10:44:41]Write i2c OK [10:44:41]MH_I2C_Read... [10:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:41]Read from MH i2c: E2 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 03 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 03 00 50 1D 00 90 00 E1 [10:44:41]RAPDU: 90 00 [10:44:41]wFMCommunicate OK [10:44:41]wFMCommunicate request_size=39 [10:44:41]MH_SAM_APDU [10:44:41]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8A FA 00 00 35 04 06 00 78 6A 2C 49 A5 E2 [10:44:41]Write to MH i2c: E2 2A 00 51 1D 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8A FA 00 00 35 04 06 00 78 6A 2C 49 A5 E2 00 00 04 [10:44:41]Write i2c OK [10:44:41]MH_I2C_Read... [10:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:41]Read from MH i2c: E2 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 03 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 03 00 51 1D 00 90 00 E2 [10:44:41]RAPDU: 90 00 [10:44:41]wFMCommunicate OK [10:44:41]wFMCommunicate request_size=4 [10:44:41]MH_SAM_APDU [10:44:41]CAPDU: 80 0D 03 02 [10:44:41]Write to MH i2c: E2 08 00 52 1D 80 0D 03 02 00 00 00 00 EA [10:44:41]Write i2c OK [10:44:41]MH_I2C_Read... [10:44:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:41]Read from MH i2c: E2 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 0B 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 0B 00 52 1D 00 89 2B C7 8F 6C 9A ED 28 90 00 10 [10:44:41]RAPDU: 89 2B C7 8F 6C 9A ED 28 90 00 [10:44:41]wFMCommunicate OK [10:44:41]SAM_PROTO_SignData done [10:44:41]FM_MakeSignedData done [10:44:41]CreateOFDProtocolMessage [10:44:41]wFMCommunicate request_size=4 [10:44:41]MH_SAM_APDU [10:44:41]CAPDU: 80 11 00 00 [10:44:41]Write to MH i2c: E2 08 00 53 1D 80 11 00 00 00 00 00 00 EA [10:44:41]Write i2c OK [10:44:41]MH_I2C_Read... [10:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:41]Read from MH i2c: E2 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 17 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 17 00 53 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3C [10:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:44:41]wFMCommunicate OK [10:44:41]CreateOFDProtocolMessage done [10:44:41]OFDSenderStorePacket 64138 [10:44:41]StoreOFDPacket docnum=64138 [10:44:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 43 CA 24 01 56 5C 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 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 3A 00 00 00 F4 03 04 00 9B 41 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8A FA 00 00 35 04 06 00 78 6A 2C 49 A5 E2 89 2B C7 8F 6C 9A ED 28 [10:44:41]CheckFolder [10:44:41]dirname=/storage/ofd_packets [10:44:41]CheckFolder done [10:44:41]ProducePacketName [10:44:41]name=ofd_packets/00064138 [10:44:41]NVStorageSaveData ofd_packets/00064138 [10:44:41]File name is /storage/ofd_packets/00064138 [10:44:41]Write 330 bytes [10:44:41]NVStorageSaveData done [10:44:41]OFDSenderStorePacket done [10:44:41]KKMCreateOFDPacket done [10:44:41]NVStorageSaveData kkm_last_timestamp [10:44:41]File name is /storage/kkm_last_timestamp [10:44:41]Write 4 bytes [10:44:41]NVStorageSaveData done [10:44:41]ExternCall_PrintAddStr [10:44:41]wPrintStart [10:44:41]Write to MH i2c: 01 00 00 54 1D 71 [10:44:41]Write i2c OK [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: 01 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: 01 07 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: 01 07 00 54 1D 00 00 00 00 00 FF 0F 86 [10:44:41]RasterBufferAndPrint [10:44:41]line Счет N : (3)73672 [10:44:41]line ИНН: 02508201610067 [10:44:41]line Контрольно-Кассовый Чек [10:44:41]line ПРОДАЖА [10:44:41]line Товар: 2000036210013 [10:44:41]line Кофе Капучино (GABB TRADE) [10:44:41]line 1.000 * 115.00 [10:44:41]line = 115.00 [10:44:41]line НДС 12% НСП 1% [10:44:41]line > о реализуемом товаре [10:44:41]line ИТОГО: 115.00 [10:44:41]line НСП 1% : 1.02 [10:44:41]line НДС 12% : 12.21 [10:44:41]line Наличными: 115.00 [10:44:41]line Безнал.: 0.00 [10:44:41]line Место: АЗС № 117 "Партнер Нефть" [10:44:41]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:44:41]line СНО: Общий режим [10:44:41]line Чек 58 05.06.2024 10:44 [10:44:41]line Смена: 375 ФФД: 1.0 [10:44:41]line ЗНМ: 0300000031 [10:44:41]line РНМ: 0000000000092737 [10:44:41]line Версия ККМ: 001 [10:44:41]line ФМ: 0000000000875074 [10:44:41]line ФД: 64138 [10:44:41]line ФПД: 132397404890594 [10:44:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T104443&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64138&fm=132397404890594&tin=02508201610067®Number=0000000000092737&sum=11500 [10:44:41]line 0 [10:44:41]written 0, free lines is 4095 [10:44:41]OFD Sender: Processing packet 64138 [packets to send 14, broken 13] [10:44:41]ProducePacketName [10:44:41]name=ofd_packets/00064138 [10:44:41]OFD Sender: To server: pG, [10:44:41]CommunicateWithHost lk.salyk.kg:30040 [10:44:41]ConnectInit lk.salyk.kg [10:44:42]Connected sock=10 [10:44:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 43 CA 24 01 56 5C 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 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 3A 00 00 00 F4 03 04 00 9B 41 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8A FA 00 00 35 04 06 00 78 6A 2C 49 A5 E2 89 2B C7 8F 6C 9A ED 28 [10:44:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 67 DC 47 00 E8 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8A FA 00 00 F4 03 04 00 A6 ED 5F 66 B6 04 01 00 00 A1 F7 CE 29 DC 06 04 42 [10:44:42]CommunicateWithHost err = 0 [10:44:42]CheckOFDResponse [10:44:42]1017 (14) - 77093643461234 [10:44:42]1041 (16) - 0000000000875074 [10:44:42]1040 (4) - 64138 [10:44:42]1012 (4) - 05.06.2024 04:46 [10:44:42]1206 (1) - 0 [10:44:42]OFD Sender: Remove packet 64138 [10:44:42]ProducePacketName [10:44:42]name=ofd_packets/00064138 [10:44:42]NVStorageDeleteData [10:44:42]Write to MH i2c: 01 00 00 7C 1D 99 [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: 01 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: 01 07 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: 01 07 00 7C 1D 00 00 00 00 00 0D 0D BA [10:44:42]RasterBufferAndPrint [10:44:42]line [10:44:42]line [10:44:42]line [10:44:42]line [10:44:42]line [10:44:42]written 0, free lines is 3354 [10:44:42]MH_Cut [10:44:42]Write to MH i2c: D1 01 00 83 1D 01 72 [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: D1 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: D1 01 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: D1 01 00 83 1D 00 71 [10:44:42]Write to MH i2c: 01 00 00 84 1D A1 [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]OFD Sender: No OFD packet to send [10:44:43]*** Cut start [10:44:43]*** Partial cut [10:44:43]*** CUTSNS_PIN = 1 [10:44:43]*** CUTSNS_PIN = 0 [10:44:43]*** Brake cut motor [10:44:43]Read from MH i2c: 01 [10:44:43]MH_I2C_Read... [10:44:43]*** Stop cut motor [10:44:43]*** Cut end [10:44:43]Read from MH i2c: 01 07 00 [10:44:43]MH_I2C_Read... [10:44:43]Read from MH i2c: 01 07 00 84 1D 00 00 00 00 00 FF 0F B6 [10:44:43]process_action close_receipt done [10:44:43]requested_data is exist [10:44:43]produce_requested_data [10:44:43]requested_item fm.sn is exist - process it [10:44:43]wFMCommunicate request_size=4 [10:44:43]MH_SAM_APDU [10:44:43]CAPDU: 80 11 00 00 [10:44:43]Write to MH i2c: E2 08 00 85 1D 80 11 00 00 00 00 00 00 1C [10:44:43]Write i2c OK [10:44:43]MH_I2C_Read... [10:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:43]Read from MH i2c: E2 [10:44:43]MH_I2C_Read... [10:44:43]Read from MH i2c: E2 17 00 [10:44:43]MH_I2C_Read... [10:44:43]Read from MH i2c: E2 17 00 85 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6E [10:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:44:43]wFMCommunicate OK [10:44:43]requested_item fd.num is exist - process it [10:44:43]SAM_PROTO_GetFieldsCounters [10:44:43]wFMCommunicate request_size=4 [10:44:43]MH_SAM_APDU [10:44:43]CAPDU: 80 13 00 00 [10:44:43]Write to MH i2c: E2 08 00 86 1D 80 13 00 00 00 00 00 00 1F [10:44:43]Write i2c OK [10:44:43]MH_I2C_Read... [10:44:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:43]Read from MH i2c: E2 [10:44:43]MH_I2C_Read... [10:44:43]Read from MH i2c: E2 62 00 [10:44:43]MH_I2C_Read... [10:44:43]Read from MH i2c: E2 62 00 86 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8A FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [10:44:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8A FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:43]wFMCommunicate OK [10:44:43]SAM_PROTO_GetFieldsCounters done [10:44:43]requested_item shift.num is exist - process it [10:44:43]requested_item shift.opened is exist - process it [10:44:43]req_shift_opened [10:44:43]FM_GetShiftState [10:44:43]SAM_PROTO_GetShiftState [10:44:43]wFMCommunicate request_size=4 [10:44:43]MH_SAM_APDU [10:44:43]CAPDU: 80 13 01 00 [10:44:43]Write to MH i2c: E2 08 00 87 1D 80 13 01 00 00 00 00 00 21 [10:44:43]Write i2c OK [10:44:43]MH_I2C_Read... [10:44:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:44]Read from MH i2c: E2 [10:44:44]MH_I2C_Read... [10:44:44]Read from MH i2c: E2 0E 00 [10:44:44]MH_I2C_Read... [10:44:44]Read from MH i2c: E2 0E 00 87 1D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 62 [10:44:44]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:44:44]wFMCommunicate OK [10:44:44]SAM_PROTO_GetShiftState done [10:44:44]FM_GetShiftState done [10:44:44]req_shift_opened done [10:44:44]requested_item shift.open_date is exist - process it [10:44:44]req_shift_open_date [10:44:44]req_shift_open_date done [10:44:44]produce_requested_data done [10:44:44]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64138,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:44:44]process_action_free close_receipt [10:44:44]json_value_free [10:44:44]json_value_free done [10:44:44]process_json_proto returns [10:44:44]Send response to host [10:44:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64138,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:44:44]free response buf [10:44:44]execute_script done [10:44:44]execute_script returns [10:44:44]free content buf [10:44:44]Sock 9.Close socket [10:44:44]Sock 9.Thread stoped [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48: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:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:30]accept exits with 8 [10:49:30]New connection [10:49:30]New thread 3067276644 created [10:49:30]Thread 3067133284 joined [10:49:30]Waiting for new connection... [10:49:30] Sock 8.Parse request [10:49:30]Sock 8.Check first char [10:49:30]Sock 8.First char is OK [10:49:30]request: POST /json_proto HTTP/1.0 [10:49:30]Method: POST [10:49:30]URL: /json_proto [10:49:30]Method is POST - this is cgi request [10:49:30]url: /json_proto [10:49:30]query_string will be loaded in cgi processing [10:49:30]execute_cgi json_proto POST (null) [10:49:30]execute_cgi path=json_proto method=POST [10:49:30]POST find Content-Length [10:49:30]Host: 172.17.60.69:8080 [10:49:30]Content-Length: 976 [10:49:30]Content-Type: application/json [10:49:30] [10:49:30]POST finish read [10:49:30]Found Content-Length = 976 [10:49:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73673", "tax_sys" : 0, "items" : [ { "code": "4700321005031", "name": "\u0424\u0438\u0441\u0442\u0430\u0448\u043A\u0438 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0435 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:30]execute_script... [10:49:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73673", "tax_sys" : 0, "items" : [ { "code": "4700321005031", "name": "\u0424\u0438\u0441\u0442\u0430\u0448\u043A\u0438 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0435 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:30]POST & json_proto [10:49:30]process_json_proto [10:49:30]json parsed OK: [10:49:30]protocol is kg_v1.0 [10:49:30]action value=close_receipt [10:49:30]process_action close_receipt [10:49:30]cmd_close_receipt [10:49:30]MH_GetDate [10:49:30]Write to MH i2c: F0 00 00 88 1D 94 [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: F0 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: F0 09 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: F0 09 00 88 1D 00 BD 42 60 66 D2 83 5F 66 7C [10:49:30]GetLastDocTimeStamp 1717584283 [10:49:30]current date 1717584573 [10:49:30]FM_GetShiftState [10:49:30]SAM_PROTO_GetShiftState [10:49:30]wFMCommunicate request_size=4 [10:49:30]MH_SAM_APDU [10:49:30]CAPDU: 80 13 01 00 [10:49:30]Write to MH i2c: E2 08 00 89 1D 80 13 01 00 00 00 00 00 23 [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 0E 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 0E 00 89 1D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 64 [10:49:30]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:49:30]wFMCommunicate OK [10:49:30]SAM_PROTO_GetShiftState done [10:49:30]FM_GetShiftState done [10:49:30]opened in 1717545925 [10:49:30]opened+sec_in_day 1717632325 [10:49:30]quantity*price = 13000 [10:49:30]sum+1 = 13001 [10:49:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 59 05.06.2024 10:49 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64139 ФПД: 200655207041249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T104933&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64139&fm=200655207041249&tin=02508201610067®Number=0000000000092737&sum=22500 0 [10:49:31]StoreToDocumentArchive [10:49:31]shift 375 fd 64139 [10:49:31]save to /storage/0375/doc_00064139 [10:49:31]save last doc name /storage/0375/doc_00064139 to /storage/kkm_last_doc_name [10:49:31]save OK [10:49:31]Clear old archive folders... [10:49:31]ProcessDocumentItem done err = 0, tmpTLVsize=421 [10:49:31]tlvbuf is 00FFF6A0 [10:49:31]SAM_PROTO_ClearQueue [10:49:31]wFMCommunicate request_size=4 [10:49:31]MH_SAM_APDU [10:49:31]CAPDU: 80 09 00 00 [10:49:31]Write to MH i2c: E2 08 00 96 1D 80 09 00 00 00 00 00 00 25 [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:31]Read from MH i2c: E2 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: E2 03 00 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: E2 03 00 96 1D 00 90 00 27 [10:49:31]RAPDU: 90 00 [10:49:31]wFMCommunicate OK [10:49:31]SAM_PROTO_ClearQueue done [10:49:31]KKMCreateOFDPacket [10:49:31]OFDProtocolAddRootSTLVToBuf [10:49:31]FM_MakeSignedData [10:49:31]FM_MakeSignedData [10:49:31]SAM_PROTO_SignData [10:49:31]wFMCommunicate request_size=4 [10:49:31]MH_SAM_APDU [10:49:31]CAPDU: 80 0D 01 02 [10:49:31]Write to MH i2c: E2 08 00 97 1D 80 0D 01 02 00 00 00 00 2D [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:31]Read from MH i2c: E2 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: E2 03 00 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: E2 03 00 97 1D 00 90 00 28 [10:49:31]RAPDU: 90 00 [10:49:31]wFMCommunicate OK [10:49:31]wFMCommunicate request_size=255 [10:49:31]MH_SAM_APDU [10:49:31]CAPDU: 80 0D 02 02 FA 03 00 A5 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 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 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 [10:49:31]Write to MH i2c: E2 02 01 98 1D 80 0D 02 02 FA 00 03 00 A5 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 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 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 00 00 13 [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:31]Read from MH i2c: E2 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: E2 03 00 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: E2 03 00 98 1D 00 90 00 29 [10:49:31]RAPDU: 90 00 [10:49:31]wFMCommunicate OK [10:49:31]wFMCommunicate request_size=180 [10:49:31]MH_SAM_APDU [10:49:31]CAPDU: 80 0D 02 02 AF F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 BD 42 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8B FA 00 00 35 04 06 00 B6 7E AE 56 88 E1 [10:49:31]Write to MH i2c: E2 B7 00 99 1D 80 0D 02 02 AF 00 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 BD 42 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8B FA 00 00 35 04 06 00 B6 7E AE 56 88 E1 00 00 C8 [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:32]Read from MH i2c: E2 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 03 00 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 03 00 99 1D 00 90 00 2A [10:49:32]RAPDU: 90 00 [10:49:32]wFMCommunicate OK [10:49:32]wFMCommunicate request_size=4 [10:49:32]MH_SAM_APDU [10:49:32]CAPDU: 80 0D 03 02 [10:49:32]Write to MH i2c: E2 08 00 9A 1D 80 0D 03 02 00 00 00 00 32 [10:49:32]Write i2c OK [10:49:32]MH_I2C_Read... [10:49:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:32]Read from MH i2c: E2 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 0B 00 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 0B 00 9A 1D 00 B6 9A 37 8D D1 C2 86 19 90 00 79 [10:49:32]RAPDU: B6 9A 37 8D D1 C2 86 19 90 00 [10:49:32]wFMCommunicate OK [10:49:32]SAM_PROTO_SignData done [10:49:32]FM_MakeSignedData done [10:49:32]CreateOFDProtocolMessage [10:49:32]wFMCommunicate request_size=4 [10:49:32]MH_SAM_APDU [10:49:32]CAPDU: 80 11 00 00 [10:49:32]Write to MH i2c: E2 08 00 9B 1D 80 11 00 00 00 00 00 00 32 [10:49:32]Write i2c OK [10:49:32]MH_I2C_Read... [10:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:32]Read from MH i2c: E2 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 17 00 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 17 00 9B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 84 [10:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:49:32]wFMCommunicate OK [10:49:32]CreateOFDProtocolMessage done [10:49:32]OFDSenderStorePacket 64139 [10:49:32]StoreOFDPacket docnum=64139 [10:49:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 B9 01 00 00 74 A8 B1 01 CA FB 5A 03 01 00 03 00 A5 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 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 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 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 BD 42 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8B FA 00 00 35 04 06 00 B6 7E AE 56 88 E1 B6 9A 37 8D D1 C2 86 19 [10:49:32]CheckFolder [10:49:32]dirname=/storage/ofd_packets [10:49:32]CheckFolder done [10:49:32]ProducePacketName [10:49:32]name=ofd_packets/00064139 [10:49:32]NVStorageSaveData ofd_packets/00064139 [10:49:32]File name is /storage/ofd_packets/00064139 [10:49:32]Write 471 bytes [10:49:32]NVStorageSaveData done [10:49:32]OFDSenderStorePacket done [10:49:32]KKMCreateOFDPacket done [10:49:32]NVStorageSaveData kkm_last_timestamp [10:49:32]File name is /storage/kkm_last_timestamp [10:49:32]Write 4 bytes [10:49:32]NVStorageSaveData done [10:49:32]ExternCall_PrintAddStr [10:49:32]wPrintStart [10:49:32]Write to MH i2c: 01 00 00 9C 1D B9 [10:49:32]Write i2c OK [10:49:32]MH_I2C_Read... [10:49:32]OFD Sender: Processing packet 64139 [packets to send 14, broken 13] [10:49:32]Read from MH i2c: ProducePacketName [10:49:32]01 name=ofd_packets/00064139 [10:49:32] [10:49:32]MH_I2C_Read... [10:49:32]OFD Sender: To server: pG, [10:49:32]Read from MH i2c: CommunicateWithHost lk.salyk.kg:30040 [10:49:32]01 ConnectInit lk.salyk.kg [10:49:32]07 00 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: 01 07 00 9C 1D 00 00 00 00 00 FF 0F CE [10:49:32]RasterBufferAndPrint [10:49:32]line Счет N : (3)73673 [10:49:32]line ИНН: 02508201610067 [10:49:32]line Контрольно-Кассовый Чек [10:49:32]line ПРОДАЖА [10:49:32]line Товар: 4700321005031 [10:49:32]line Фисташки Mike жареные соленые 50г [10:49:32]line 1.000 * 130.00 [10:49:32]line = 130.00 [10:49:32]line НДС 12% НСП 1% [10:49:32]line > о реализуемом товаре [10:49:32]line Товар: 4700000480050 [10:49:32]line Напиток Nitro Energy эн green ж/б 0,45л [10:49:32]line 1.000 * 95.00 [10:49:32]line = 95.00 [10:49:32]line НДС 12% НСП 1% [10:49:32]line > о реализуемом товаре [10:49:32]line ИТОГО: 225.00 [10:49:32]line НСП 1% : 1.99 [10:49:32]line НДС 12% : 23.89 [10:49:32]line Наличными: 225.00 [10:49:32]line Безнал.: 0.00 [10:49:32]line Место: АЗС № 117 "Партнер Нефть" [10:49:32]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:49:32]line СНО: Общий режим [10:49:32]line Чек 59 05.06.2024 10:49 [10:49:32]line Смена: 375 ФФД: 1.0 [10:49:32]line ЗНМ: 0300000031 [10:49:32]line РНМ: 0000000000092737 [10:49:32]line Версия ККМ: 001 [10:49:32]line ФМ: 0000000000875074 [10:49:32]line ФД: 64139 [10:49:32]line ФПД: 200655207041249 [10:49:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T104933&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64139&fm=200655207041249&tin=02508201610067®Number=0000000000092737&sum=22500 [10:49:32]line 0 [10:49:32]written 0, free lines is 4095 [10:49:32]Connected sock=11 [10:49:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 B9 01 00 00 74 A8 B1 01 CA FB 5A 03 01 00 03 00 A5 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 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 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 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 BD 42 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8B FA 00 00 35 04 06 00 B6 7E AE 56 88 E1 B6 9A 37 8D D1 C2 86 19 [10:49:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 36 14 47 00 8C C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8B FA 00 00 F4 03 04 00 C9 EE 5F 66 B6 04 01 00 00 70 6B DB 9D 50 D5 98 A3 [10:49:32]CommunicateWithHost err = 0 [10:49:32]CheckOFDResponse [10:49:32]1017 (14) - 77093643461234 [10:49:32]1041 (16) - 0000000000875074 [10:49:32]1040 (4) - 64139 [10:49:32]1012 (4) - 05.06.2024 04:51 [10:49:32]1206 (1) - 0 [10:49:32]OFD Sender: Remove packet 64139 [10:49:32]ProducePacketName [10:49:32]name=ofd_packets/00064139 [10:49:32]NVStorageDeleteData [10:49:33]Write to MH i2c: 01 00 00 CC 1D E9 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: 01 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: 01 07 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: 01 07 00 CC 1D 00 00 00 00 00 6A 0C 66 [10:49:33]RasterBufferAndPrint [10:49:33]line [10:49:33]line [10:49:33]line [10:49:33]line [10:49:33]line [10:49:33]written 0, free lines is 3186 [10:49:33]MH_Cut [10:49:33]Write to MH i2c: D1 01 00 D3 1D 01 C2 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: D1 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: D1 01 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: D1 01 00 D3 1D 00 C1 [10:49:33]Write to MH i2c: 01 00 00 D4 1D F1 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]OFD Sender: No OFD packet to send [10:49:33]*** Cut start [10:49:33]*** Partial cut [10:49:33]*** CUTSNS_PIN = 1 [10:49:33]*** CUTSNS_PIN = 0 [10:49:34]*** Brake cut motor [10:49:34]Read from MH i2c: 01 [10:49:34]MH_I2C_Read... [10:49:34]*** Stop cut motor [10:49:34]*** Cut end [10:49:34]Read from MH i2c: 01 07 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: 01 07 00 D4 1D 00 00 00 00 00 FF 0F 06 [10:49:34]process_action close_receipt done [10:49:34]requested_data is exist [10:49:34]produce_requested_data [10:49:34]requested_item fm.sn is exist - process it [10:49:34]wFMCommunicate request_size=4 [10:49:34]MH_SAM_APDU [10:49:34]CAPDU: 80 11 00 00 [10:49:34]Write to MH i2c: E2 08 00 D5 1D 80 11 00 00 00 00 00 00 6C [10:49:34]Write i2c OK [10:49:34]MH_I2C_Read... [10:49:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:34]Read from MH i2c: E2 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 17 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 17 00 D5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 BE [10:49:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:49:34]wFMCommunicate OK [10:49:34]requested_item fd.num is exist - process it [10:49:34]SAM_PROTO_GetFieldsCounters [10:49:34]wFMCommunicate request_size=4 [10:49:34]MH_SAM_APDU [10:49:34]CAPDU: 80 13 00 00 [10:49:34]Write to MH i2c: E2 08 00 D6 1D 80 13 00 00 00 00 00 00 6F [10:49:34]Write i2c OK [10:49:34]MH_I2C_Read... [10:49:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:34]Read from MH i2c: E2 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 62 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 62 00 D6 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8B FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [10:49:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8B FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:34]wFMCommunicate OK [10:49:34]SAM_PROTO_GetFieldsCounters done [10:49:34]requested_item shift.num is exist - process it [10:49:34]requested_item shift.opened is exist - process it [10:49:34]req_shift_opened [10:49:34]FM_GetShiftState [10:49:34]SAM_PROTO_GetShiftState [10:49:34]wFMCommunicate request_size=4 [10:49:34]MH_SAM_APDU [10:49:34]CAPDU: 80 13 01 00 [10:49:34]Write to MH i2c: E2 08 00 D7 1D 80 13 01 00 00 00 00 00 71 [10:49:34]Write i2c OK [10:49:34]MH_I2C_Read... [10:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:34]Read from MH i2c: E2 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 0E 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 0E 00 D7 1D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 B2 [10:49:34]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [10:49:34]wFMCommunicate OK [10:49:34]SAM_PROTO_GetShiftState done [10:49:34]FM_GetShiftState done [10:49:34]req_shift_opened done [10:49:34]requested_item shift.open_date is exist - process it [10:49:34]req_shift_open_date [10:49:34]req_shift_open_date done [10:49:34]produce_requested_data done [10:49:34]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64139,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [10:49:34]process_action_free close_receipt [10:49:34]json_value_free [10:49:34]json_value_free done [10:49:34]process_json_proto returns [10:49:34]Send response to host [10:49:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64139,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [10:49:34]free response buf [10:49:34]execute_script done [10:49:34]execute_script returns [10:49:34]free content buf [10:49:34]Sock 8.Close socket [10:49:34]Sock 8.Thread stoped [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:17]accept exits with 9 [11:05:17]New connection [11:05:17]New thread 3067133284 created [11:05:17]Thread 3067276644 joined [11:05:17]Waiting for new connection... [11:05:17] Sock 9.Parse request [11:05:17]Sock 9.Check first char [11:05:17]Sock 9.First char is OK [11:05:17]request: POST /json_proto HTTP/1.0 [11:05:17]Method: POST [11:05:17]URL: /json_proto [11:05:17]Method is POST - this is cgi request [11:05:17]url: /json_proto [11:05:17]query_string will be loaded in cgi processing [11:05:17]execute_cgi json_proto POST (null) [11:05:17]execute_cgi path=json_proto method=POST [11:05:17]POST find Content-Length [11:05:17]Host: 172.17.60.69:8080 [11:05:17]Content-Length: 881 [11:05:17]Content-Type: application/json [11:05:17] [11:05:17]POST finish read [11:05:17]Found Content-Length = 881 [11:05:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73674", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.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" ] } } [11:05:17]execute_script... [11:05: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)73674", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.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" ] } } [11:05:17]POST & json_proto [11:05:17]process_json_proto [11:05:17]json parsed OK: [11:05:17]protocol is kg_v1.0 [11:05:17]action value=close_receipt [11:05:17]process_action close_receipt [11:05:17]cmd_close_receipt [11:05:17]MH_GetDate [11:05:17]Write to MH i2c: F0 00 00 D8 1D E4 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: F0 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: F0 09 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: F0 09 00 D8 1D 00 70 46 60 66 D2 83 5F 66 83 [11:05:17]GetLastDocTimeStamp 1717584573 [11:05:17]current date 1717585520 [11:05:17]FM_GetShiftState [11:05:17]SAM_PROTO_GetShiftState [11:05:17]wFMCommunicate request_size=4 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 13 01 00 [11:05:17]Write to MH i2c: E2 08 00 D9 1D 80 13 01 00 00 00 00 00 73 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 0E 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 0E 00 D9 1D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 B4 [11:05:17]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [11:05:17]wFMCommunicate OK [11:05:17]SAM_PROTO_GetShiftState done [11:05:17]FM_GetShiftState done [11:05:17]opened in 1717545925 [11:05:17]opened+sec_in_day 1717632325 [11:05:17]quantity*price = 13800 [11:05:17]sum+1 = 13801 [11:05:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 368.00 НСП 1% : 3.25 НДС 12% : 39.07 Наличными: 368.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 60 05.06.2024 11:05 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64140 ФПД: 169796363447735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T110520&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64140&fm=169796363447735&tin=02508201610067®Number=0000000000092737&sum=36800 0 [11:05:18]StoreToDocumentArchive [11:05:18]shift 375 fd 64140 [11:05:18]save to /storage/0375/doc_00064140 [11:05:18]save last doc name /storage/0375/doc_00064140 to /storage/kkm_last_doc_name [11:05:18]save OK [11:05:18]Clear old archive folders... [11:05:18]ProcessDocumentItem done err = 0, tmpTLVsize=384 [11:05:18]tlvbuf is 0107B9F0 [11:05:18]SAM_PROTO_ClearQueue [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 09 00 00 [11:05:18]Write to MH i2c: E2 08 00 E6 1D 80 09 00 00 00 00 00 00 75 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 E6 1D 00 90 00 77 [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]SAM_PROTO_ClearQueue done [11:05:18]KKMCreateOFDPacket [11:05:18]OFDProtocolAddRootSTLVToBuf [11:05:18]FM_MakeSignedData [11:05:18]FM_MakeSignedData [11:05:18]SAM_PROTO_SignData [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 01 02 [11:05:18]Write to MH i2c: E2 08 00 E7 1D 80 0D 01 02 00 00 00 00 7D [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 E7 1D 00 90 00 78 [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]wFMCommunicate request_size=255 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 02 02 FA 03 00 80 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 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 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 C0 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [11:05:18]Write to MH i2c: E2 02 01 E8 1D 80 0D 02 02 FA 00 03 00 80 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 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 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 C0 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 13 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 E8 1D 00 90 00 79 [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]wFMCommunicate request_size=143 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 02 02 8A 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 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 3C 00 00 00 F4 03 04 00 70 46 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8C FA 00 00 35 04 06 00 9A 6D CB ED 6D B7 [11:05:18]Write to MH i2c: E2 92 00 E9 1D 80 0D 02 02 8A 00 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 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 3C 00 00 00 F4 03 04 00 70 46 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8C FA 00 00 35 04 06 00 9A 6D CB ED 6D B7 00 00 43 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 E9 1D 00 90 00 7A [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 03 02 [11:05:18]Write to MH i2c: E2 08 00 EA 1D 80 0D 03 02 00 00 00 00 82 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:19]Read from MH i2c: E2 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 0B 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 0B 00 EA 1D 00 46 10 09 A8 94 9E A4 6D 90 00 CD [11:05:19]RAPDU: 46 10 09 A8 94 9E A4 6D 90 00 [11:05:19]wFMCommunicate OK [11:05:19]SAM_PROTO_SignData done [11:05:19]FM_MakeSignedData done [11:05:19]CreateOFDProtocolMessage [11:05:19]wFMCommunicate request_size=4 [11:05:19]MH_SAM_APDU [11:05:19]CAPDU: 80 11 00 00 [11:05:19]Write to MH i2c: E2 08 00 EB 1D 80 11 00 00 00 00 00 00 82 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:19]Read from MH i2c: E2 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 17 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 17 00 EB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D4 [11:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:05:19]wFMCommunicate OK [11:05:19]CreateOFDProtocolMessage done [11:05:19]OFDSenderStorePacket 64140 [11:05:19]StoreOFDPacket docnum=64140 [11:05:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 94 01 00 00 AF 92 8C 01 1B CA 5A 03 01 00 03 00 80 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 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 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 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 43 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 3C 00 00 00 F4 03 04 00 70 46 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8C FA 00 00 35 04 06 00 9A 6D CB ED 6D B7 46 10 09 A8 94 9E A4 6D [11:05:19]CheckFolder [11:05:19]dirname=/storage/ofd_packets [11:05:19]CheckFolder done [11:05:19]ProducePacketName [11:05:19]name=ofd_packets/00064140 [11:05:19]NVStorageSaveData ofd_packets/00064140 [11:05:19]File name is /storage/ofd_packets/00064140 [11:05:19]Write 434 bytes [11:05:19]NVStorageSaveData done [11:05:19]OFDSenderStorePacket done [11:05:19]KKMCreateOFDPacket done [11:05:19]NVStorageSaveData kkm_last_timestamp [11:05:19]File name is /storage/kkm_last_timestamp [11:05:19]Write 4 bytes [11:05:19]NVStorageSaveData done [11:05:19]ExternCall_PrintAddStr [11:05:19]wPrintStart [11:05:19]Write to MH i2c: 01 00 00 EC 1D 09 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 EC 1D 00 00 00 00 00 FF 0F 1E [11:05:19]RasterBufferAndPrint [11:05:19]line Счет N : (3)73674 [11:05:19]line ИНН: 02508201610067 [11:05:19]line Контрольно-Кассовый Чек [11:05:19]line ПРОДАЖА [11:05:19]line Товар: 4640030091645 [11:05:19]line Сигареты ESSE Exchange M [11:05:19]line 1.000 * 138.00 [11:05:19]line = 138.00 [11:05:19]line НДС 12% НСП 1% [11:05:19]line > о реализуемом товаре [11:05:19]line Товар: 2000036210013 [11:05:19]line Кофе Капучино (GABB TRADE) [11:05:19]line 2.000 * 115.00 [11:05:19]line = 230.00 [11:05:19]line НДС 12% НСП 1% [11:05:19]line > о реализуемом товаре [11:05:19]line ИТОГО: 368.00 [11:05:19]line НСП 1% : 3.25 [11:05:19]line НДС 12% : 39.07 [11:05:19]line Наличными: 368.00 [11:05:19]line Безнал.: 0.00 [11:05:19]line Место: АЗС № 117 "Партнер Нефть" [11:05:19]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:05:19]line СНО: Общий режим [11:05:19]line Чек 60 05.06.2024 11:05 [11:05:19]line Смена: 375 ФФД: 1.0 [11:05:19]line ЗНМ: 0300000031 [11:05:19]line РНМ: 0000000000092737 [11:05:19]line Версия ККМ: 001 [11:05:19]line ФМ: 0000000000875074 [11:05:19]line ФД: 64140 [11:05:19]line ФПД: 169796363447735 [11:05:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T110520&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64140&fm=169796363447735&tin=02508201610067®Number=0000000000092737&sum=36800 [11:05:19]line 0 [11:05:19]OFD Sender: Processing packet 64140 [packets to send 14, broken 13] [11:05:19]ProducePacketName [11:05:19]name=ofd_packets/00064140 [11:05:19]OFD Sender: To server: pG, [11:05:19]CommunicateWithHost lk.salyk.kg:30040 [11:05:19]ConnectInit lk.salyk.kg [11:05:19]written 0, free lines is 4095 [11:05:19]Connected sock=10 [11:05:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 94 01 00 00 AF 92 8C 01 1B CA 5A 03 01 00 03 00 80 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 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 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 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 43 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 3C 00 00 00 F4 03 04 00 70 46 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8C FA 00 00 35 04 06 00 9A 6D CB ED 6D B7 46 10 09 A8 94 9E A4 6D [11:05:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 85 23 47 00 ED B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8C FA 00 00 F4 03 04 00 7C F2 5F 66 B6 04 01 00 00 67 64 D0 28 FD E8 8F 70 [11:05:19]CommunicateWithHost err = 0 [11:05:19]CheckOFDResponse [11:05:19]1017 (14) - 77093643461234 [11:05:19]1041 (16) - 0000000000875074 [11:05:19]1040 (4) - 64140 [11:05:19]1012 (4) - 05.06.2024 05:07 [11:05:19]1206 (1) - 0 [11:05:19]OFD Sender: Remove packet 64140 [11:05:19]ProducePacketName [11:05:19]name=ofd_packets/00064140 [11:05:19]NVStorageDeleteData [11:05:19]Write to MH i2c: 01 00 00 1A 1E 38 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 1A 1E 00 00 00 00 00 A5 0C F0 [11:05:19]RasterBufferAndPrint [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]written 0, free lines is 3243 [11:05:19]MH_Cut [11:05:19]Write to MH i2c: D1 01 00 21 1E 01 11 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 01 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 01 00 21 1E 00 10 [11:05:19]Write to MH i2c: 01 00 00 22 1E 40 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:20]OFD Sender: No OFD packet to send [11:05:20]*** Cut start [11:05:20]*** Partial cut [11:05:20]*** CUTSNS_PIN = 1 [11:05:20]*** CUTSNS_PIN = 0 [11:05:21]*** Brake cut motor [11:05:21]Read from MH i2c: 01 [11:05:21]MH_I2C_Read... [11:05:21]*** Stop cut motor [11:05:21]*** Cut end [11:05:21]Read from MH i2c: 01 07 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: 01 07 00 22 1E 00 00 00 00 00 FF 0F 55 [11:05:21]process_action close_receipt done [11:05:21]requested_data is exist [11:05:21]produce_requested_data [11:05:21]requested_item fm.sn is exist - process it [11:05:21]wFMCommunicate request_size=4 [11:05:21]MH_SAM_APDU [11:05:21]CAPDU: 80 11 00 00 [11:05:21]Write to MH i2c: E2 08 00 23 1E 80 11 00 00 00 00 00 00 BB [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 17 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 17 00 23 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0D [11:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:05:21]wFMCommunicate OK [11:05:21]requested_item fd.num is exist - process it [11:05:21]SAM_PROTO_GetFieldsCounters [11:05:21]wFMCommunicate request_size=4 [11:05:21]MH_SAM_APDU [11:05:21]CAPDU: 80 13 00 00 [11:05:21]Write to MH i2c: E2 08 00 24 1E 80 13 00 00 00 00 00 00 BE [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 62 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 62 00 24 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8C FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [11:05:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8C FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:21]wFMCommunicate OK [11:05:21]SAM_PROTO_GetFieldsCounters done [11:05:21]requested_item shift.num is exist - process it [11:05:21]requested_item shift.opened is exist - process it [11:05:21]req_shift_opened [11:05:21]FM_GetShiftState [11:05:21]SAM_PROTO_GetShiftState [11:05:21]wFMCommunicate request_size=4 [11:05:21]MH_SAM_APDU [11:05:21]CAPDU: 80 13 01 00 [11:05:21]Write to MH i2c: E2 08 00 25 1E 80 13 01 00 00 00 00 00 C0 [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 0E 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 0E 00 25 1E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 01 [11:05:21]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [11:05:21]wFMCommunicate OK [11:05:21]SAM_PROTO_GetShiftState done [11:05:21]FM_GetShiftState done [11:05:21]req_shift_opened done [11:05:21]requested_item shift.open_date is exist - process it [11:05:21]req_shift_open_date [11:05:21]req_shift_open_date done [11:05:21]produce_requested_data done [11:05:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64140,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [11:05:21]process_action_free close_receipt [11:05:21]json_value_free [11:05:21]json_value_free done [11:05:21]process_json_proto returns [11:05:21]Send response to host [11:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64140,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [11:05:21]free response buf [11:05:21]execute_script done [11:05:21]execute_script returns [11:05:21]free content buf [11:05:21]Sock 9.Close socket [11:05:21]Sock 9.Thread stoped [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:26]accept exits with 8 [11:13:26]New connection [11:13:26]New thread 3067276644 created [11:13:26]Thread 3067133284 joined [11:13:26]Waiting for new connection... [11:13:26] Sock 8.Parse request [11:13:26]Sock 8.Check first char [11:13:26]Sock 8.First char is OK [11:13:26]request: POST /json_proto HTTP/1.0 [11:13:26]Method: POST [11:13:26]URL: /json_proto [11:13:26]Method is POST - this is cgi request [11:13:26]url: /json_proto [11:13:26]query_string will be loaded in cgi processing [11:13:26]execute_cgi json_proto POST (null) [11:13:26]execute_cgi path=json_proto method=POST [11:13:26]POST find Content-Length [11:13:26]Host: 172.17.60.69:8080 [11:13:26]Content-Length: 631 [11:13:26]Content-Type: application/json [11:13:26] [11:13:26]POST finish read [11:13:26]Found Content-Length = 631 [11:13:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73675", "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" ] } } [11:13:26]execute_script... [11:13:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73675", "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" ] } } [11:13:26]POST & json_proto [11:13:26]process_json_proto [11:13:26]json parsed OK: [11:13:26]protocol is kg_v1.0 [11:13:26]action value=close_receipt [11:13:26]process_action close_receipt [11:13:26]cmd_close_receipt [11:13:26]MH_GetDate [11:13:26]Write to MH i2c: F0 00 00 26 1E 33 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: F0 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: F0 09 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: F0 09 00 26 1E 00 59 48 60 66 D2 83 5F 66 BD [11:13:26]GetLastDocTimeStamp 1717585520 [11:13:26]current date 1717586009 [11:13:26]FM_GetShiftState [11:13:26]SAM_PROTO_GetShiftState [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 13 01 00 [11:13:26]Write to MH i2c: E2 08 00 27 1E 80 13 01 00 00 00 00 00 C2 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 0E 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 0E 00 27 1E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 03 [11:13:26]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [11:13:26]wFMCommunicate OK [11:13:26]SAM_PROTO_GetShiftState done [11:13:26]FM_GetShiftState done [11:13:26]opened in 1717545925 [11:13:26]opened+sec_in_day 1717632325 [11:13:26]quantity*price = 6000 [11:13:26]sum+1 = 6001 [11:13:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 61 05.06.2024 11:13 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64141 ФПД: 13828453095782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T111329&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64141&fm=13828453095782&tin=02508201610067®Number=0000000000092737&sum=6000 0 [11:13:27]StoreToDocumentArchive [11:13:27]shift 375 fd 64141 [11:13:27]save to /storage/0375/doc_00064141 [11:13:27]save last doc name /storage/0375/doc_00064141 to /storage/kkm_last_doc_name [11:13:27]save OK [11:13:27]Clear old archive folders... [11:13:27]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:13:27]tlvbuf is B6DF72B0 [11:13:27]SAM_PROTO_ClearQueue [11:13:27]wFMCommunicate request_size=4 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 09 00 00 [11:13:27]Write to MH i2c: E2 08 00 34 1E 80 09 00 00 00 00 00 00 C4 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 34 1E 00 90 00 C6 [11:13:27]RAPDU: 90 00 [11:13:27]wFMCommunicate OK [11:13:27]SAM_PROTO_ClearQueue done [11:13:27]KKMCreateOFDPacket [11:13:27]OFDProtocolAddRootSTLVToBuf [11:13:27]FM_MakeSignedData [11:13:27]FM_MakeSignedData [11:13:27]SAM_PROTO_SignData [11:13:27]wFMCommunicate request_size=4 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 0D 01 02 [11:13:27]Write to MH i2c: E2 08 00 35 1E 80 0D 01 02 00 00 00 00 CC [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 35 1E 00 90 00 C7 [11:13:27]RAPDU: 90 00 [11:13:27]wFMCommunicate OK [11:13:27]wFMCommunicate request_size=255 [11:13:27]MH_SAM_APDU [11:13:27]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 3D 00 00 00 F4 03 04 00 59 48 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:13:27]Write to MH i2c: E2 02 01 36 1E 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 3D 00 00 00 F4 03 04 00 59 48 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 1A [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 03 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 03 00 36 1E 00 90 00 C8 [11:13:28]RAPDU: 90 00 [11:13:28]wFMCommunicate OK [11:13:28]wFMCommunicate request_size=30 [11:13:28]MH_SAM_APDU [11:13:28]CAPDU: 80 0D 02 02 19 30 38 37 35 30 37 34 10 04 04 00 8D FA 00 00 35 04 06 00 0C 93 B0 08 D9 66 [11:13:28]Write to MH i2c: E2 21 00 37 1E 80 0D 02 02 19 00 30 38 37 35 30 37 34 10 04 04 00 8D FA 00 00 35 04 06 00 0C 93 B0 08 D9 66 00 00 E4 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 03 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 03 00 37 1E 00 90 00 C9 [11:13:28]RAPDU: 90 00 [11:13:28]wFMCommunicate OK [11:13:28]wFMCommunicate request_size=4 [11:13:28]MH_SAM_APDU [11:13:28]CAPDU: 80 0D 03 02 [11:13:28]Write to MH i2c: E2 08 00 38 1E 80 0D 03 02 00 00 00 00 D1 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 0B 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 0B 00 38 1E 00 BB B0 FB 62 8F A8 75 33 90 00 79 [11:13:28]RAPDU: BB B0 FB 62 8F A8 75 33 90 00 [11:13:28]wFMCommunicate OK [11:13:28]SAM_PROTO_SignData done [11:13:28]FM_MakeSignedData done [11:13:28]CreateOFDProtocolMessage [11:13:28]wFMCommunicate request_size=4 [11:13:28]MH_SAM_APDU [11:13:28]CAPDU: 80 11 00 00 [11:13:28]Write to MH i2c: E2 08 00 39 1E 80 11 00 00 00 00 00 00 D1 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 17 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 17 00 39 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 23 [11:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:13:28]wFMCommunicate OK [11:13:28]CreateOFDProtocolMessage done [11:13:28]OFDSenderStorePacket 64141 [11:13:28]StoreOFDPacket docnum=64141 [11:13:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 A5 80 1B 01 C8 E1 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 3D 00 00 00 F4 03 04 00 59 48 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8D FA 00 00 35 04 06 00 0C 93 B0 08 D9 66 BB B0 FB 62 8F A8 75 33 [11:13:28]CheckFolder [11:13:28]dirname=/storage/ofd_packets [11:13:28]CheckFolder done [11:13:28]ProducePacketName [11:13:28]name=ofd_packets/00064141 [11:13:28]NVStorageSaveData ofd_packets/00064141 [11:13:28]File name is /storage/ofd_packets/00064141 [11:13:28]Write 321 bytes [11:13:28]NVStorageSaveData done [11:13:28]OFDSenderStorePacket done [11:13:28]KKMCreateOFDPacket done [11:13:28]NVStorageSaveData kkm_last_timestamp [11:13:28]File name is /storage/kkm_last_timestamp [11:13:28]Write 4 bytes [11:13:28]NVStorageSaveData done [11:13:28]ExternCall_PrintAddStr [11:13:28]wPrintStart [11:13:28]Write to MH i2c: 01 00 00 3A 1E 58 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 07 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 07 00 3A 1E 00 00 00 00 00 FF 0F 6D [11:13:28]RasterBufferAndPrint [11:13:28]line Счет N : (3)73675 [11:13:28]line ИНН: 02508201610067 [11:13:28]line Контрольно-Кассовый Чек [11:13:28]line ПРОДАЖА [11:13:28]line Товар: 4700000160204 [11:13:28]line Вода Легенда 1,5л [11:13:28]line 1.000 * 60.00 [11:13:28]line = 60.00 [11:13:28]line НДС 12% НСП 1% [11:13:28]line > о реализуемом товаре [11:13:28]line ИТОГО: 60.00 [11:13:28]line НСП 1% : 0.53 [11:13:28]line НДС 12% : 6.37 [11:13:28]line Наличными: 60.00 [11:13:28]line Безнал.: 0.00 [11:13:28]line Место: АЗС № 117 "Партнер Нефть" [11:13:28]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:13:28]line СНО: Общий режим [11:13:28]line Чек 61 05.06.2024 11:13 [11:13:28]line Смена: 375 ФФД: 1.0 [11:13:28]line ЗНМ: 0300000031 [11:13:28]line РНМ: 0000000000092737 [11:13:28]line Версия ККМ: 001 [11:13:28]line ФМ: 0000000000875074 [11:13:28]line ФД: 64141 [11:13:28]line ФПД: 13828453095782 [11:13:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T111329&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64141&fm=13828453095782&tin=02508201610067®Number=0000000000092737&sum=6000 [11:13:28]line 0 [11:13:28]OFD Sender: Processing packet 64141 [packets to send 14, broken 13] [11:13:28]ProducePacketName [11:13:28]name=ofd_packets/00064141 [11:13:28]OFD Sender: To server: pG, [11:13:28]CommunicateWithHost lk.salyk.kg:30040 [11:13:28]ConnectInit lk.salyk.kg [11:13:28]written 0, free lines is 4095 [11:13:28]Connected sock=11 [11:13:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 A5 80 1B 01 C8 E1 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 3D 00 00 00 F4 03 04 00 59 48 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8D FA 00 00 35 04 06 00 0C 93 B0 08 D9 66 BB B0 FB 62 8F A8 75 33 [11:13:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 53 50 47 00 02 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8D FA 00 00 F4 03 04 00 65 F4 5F 66 B6 04 01 00 00 21 95 E6 CC B9 36 26 F0 [11:13:28]CommunicateWithHost err = 0 [11:13:28]CheckOFDResponse [11:13:28]1017 (14) - 77093643461234 [11:13:28]1041 (16) - 0000000000875074 [11:13:28]1040 (4) - 64141 [11:13:28]1012 (4) - 05.06.2024 05:15 [11:13:28]1206 (1) - 0 [11:13:28]OFD Sender: Remove packet 64141 [11:13:28]ProducePacketName [11:13:28]name=ofd_packets/00064141 [11:13:28]NVStorageDeleteData [11:13:29]Write to MH i2c: 01 00 00 62 1E 80 [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: 01 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: 01 07 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: 01 07 00 62 1E 00 00 00 00 00 EE 0C 81 [11:13:29]RasterBufferAndPrint [11:13:29]line [11:13:29]line [11:13:29]line [11:13:29]line [11:13:29]line [11:13:29]written 0, free lines is 3317 [11:13:29]MH_Cut [11:13:29]Write to MH i2c: D1 01 00 69 1E 01 59 [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: D1 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: D1 01 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: D1 01 00 69 1E 00 58 [11:13:29]Write to MH i2c: 01 00 00 6A 1E 88 [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]OFD Sender: No OFD packet to send [11:13:29]*** Cut start [11:13:29]*** Partial cut [11:13:29]*** CUTSNS_PIN = 1 [11:13:29]*** CUTSNS_PIN = 0 [11:13:30]*** Brake cut motor [11:13:30]Read from MH i2c: 01 [11:13:30]MH_I2C_Read... [11:13:30]*** Stop cut motor [11:13:30]*** Cut end [11:13:30]Read from MH i2c: 01 07 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: 01 07 00 6A 1E 00 00 00 00 00 FF 0F 9D [11:13:30]process_action close_receipt done [11:13:30]requested_data is exist [11:13:30]produce_requested_data [11:13:30]requested_item fm.sn is exist - process it [11:13:30]wFMCommunicate request_size=4 [11:13:30]MH_SAM_APDU [11:13:30]CAPDU: 80 11 00 00 [11:13:30]Write to MH i2c: E2 08 00 6B 1E 80 11 00 00 00 00 00 00 03 [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:30]Read from MH i2c: E2 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 17 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 17 00 6B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 55 [11:13:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:13:30]wFMCommunicate OK [11:13:30]requested_item fd.num is exist - process it [11:13:30]SAM_PROTO_GetFieldsCounters [11:13:30]wFMCommunicate request_size=4 [11:13:30]MH_SAM_APDU [11:13:30]CAPDU: 80 13 00 00 [11:13:30]Write to MH i2c: E2 08 00 6C 1E 80 13 00 00 00 00 00 00 06 [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:30]Read from MH i2c: E2 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 62 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 62 00 6C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8D FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [11:13:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8D FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:30]wFMCommunicate OK [11:13:30]SAM_PROTO_GetFieldsCounters done [11:13:30]requested_item shift.num is exist - process it [11:13:30]requested_item shift.opened is exist - process it [11:13:30]req_shift_opened [11:13:30]FM_GetShiftState [11:13:30]SAM_PROTO_GetShiftState [11:13:30]wFMCommunicate request_size=4 [11:13:30]MH_SAM_APDU [11:13:30]CAPDU: 80 13 01 00 [11:13:30]Write to MH i2c: E2 08 00 6D 1E 80 13 01 00 00 00 00 00 08 [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:30]Read from MH i2c: E2 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 0E 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 0E 00 6D 1E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 49 [11:13:30]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [11:13:30]wFMCommunicate OK [11:13:30]SAM_PROTO_GetShiftState done [11:13:30]FM_GetShiftState done [11:13:30]req_shift_opened done [11:13:30]requested_item shift.open_date is exist - process it [11:13:30]req_shift_open_date [11:13:30]req_shift_open_date done [11:13:30]produce_requested_data done [11:13:30]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64141,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [11:13:30]process_action_free close_receipt [11:13:30]json_value_free [11:13:30]json_value_free done [11:13:30]process_json_proto returns [11:13:30]Send response to host [11:13:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64141,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [11:13:30]free response buf [11:13:30]execute_script done [11:13:30]execute_script returns [11:13:30]free content buf [11:13:30]Sock 8.Close socket [11:13:30]Sock 8.Thread stoped [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:24]OFD Sender: No OFD packet to send [11:18:26]accept exits with 9 [11:18:26]New connection [11:18:26]New thread 3067133284 created [11:18:26]Thread 3067276644 joined [11:18:26]Waiting for new connection... [11:18:26] Sock 9.Parse request [11:18:26]Sock 9.Check first char [11:18:26]Sock 9.First char is OK [11:18:26]request: POST /json_proto HTTP/1.0 [11:18:26]Method: POST [11:18:26]URL: /json_proto [11:18:26]Method is POST - this is cgi request [11:18:26]url: /json_proto [11:18:26]query_string will be loaded in cgi processing [11:18:26]execute_cgi json_proto POST (null) [11:18:26]execute_cgi path=json_proto method=POST [11:18:26]POST find Content-Length [11:18:26]Host: 172.17.60.69:8080 [11:18:26]Content-Length: 1079 [11:18:26]Content-Type: application/json [11:18:26] [11:18:26]POST finish read [11:18:26]Found Content-Length = 1079 [11:18:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73676", "tax_sys" : 0, "items" : [ { "code": "4860114390161", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A\u043E\u0433\u043E\u043B\u044C\u043D\u044B\u0439 \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0413\u0440\u0443\u0448", "price" : 155.00, "quantity" : 2.000, "sum" : 310.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620016300305", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut classic \u0432\u043B \u0430/\u0431\u0430\u043A\u0442 20 \u0448\u0442", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:26]execute_script... [11:18:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73676", "tax_sys" : 0, "items" : [ { "code": "4860114390161", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A\u043E\u0433\u043E\u043B\u044C\u043D\u044B\u0439 \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0413\u0440\u0443\u0448", "price" : 155.00, "quantity" : 2.000, "sum" : 310.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620016300305", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut classic \u0432\u043B \u0430/\u0431\u0430\u043A\u0442 20 \u0448\u0442", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:26]POST & json_proto [11:18:26]process_json_proto [11:18:26]json parsed OK: [11:18:26]protocol is kg_v1.0 [11:18:26]action value=close_receipt [11:18:26]process_action close_receipt [11:18:26]cmd_close_receipt [11:18:26]MH_GetDate [11:18:26]Write to MH i2c: F0 00 00 6E 1E 7B [11:18:26]Write i2c OK [11:18:26]MH_I2C_Read... [11:18:26]Read from MH i2c: F0 [11:18:26]MH_I2C_Read... [11:18:26]Read from MH i2c: F0 09 00 [11:18:26]MH_I2C_Read... [11:18:26]Read from MH i2c: F0 09 00 6E 1E 00 85 49 60 66 D2 83 5F 66 32 [11:18:26]GetLastDocTimeStamp 1717586009 [11:18:26]current date 1717586309 [11:18:26]FM_GetShiftState [11:18:26]SAM_PROTO_GetShiftState [11:18:26]wFMCommunicate request_size=4 [11:18:26]MH_SAM_APDU [11:18:26]CAPDU: 80 13 01 00 [11:18:26]Write to MH i2c: E2 08 00 6F 1E 80 13 01 00 00 00 00 00 0A [11:18:26]Write i2c OK [11:18:26]MH_I2C_Read... [11:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:26]Read from MH i2c: E2 [11:18:26]MH_I2C_Read... [11:18:26]Read from MH i2c: E2 0E 00 [11:18:26]MH_I2C_Read... [11:18:26]Read from MH i2c: E2 0E 00 6F 1E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 4B [11:18:26]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [11:18:26]wFMCommunicate OK [11:18:26]SAM_PROTO_GetShiftState done [11:18:26]FM_GetShiftState done [11:18:26]opened in 1717545925 [11:18:26]opened+sec_in_day 1717632325 [11:18:26]quantity*price = 31000 [11:18:26]sum+1 = 31001 [11:18:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620016300305 Салфетки Absolut classic вл а/бакт 20 шт 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 375.00 НСП 1% : 3.31 НДС 12% : 39.82 Наличными: 375.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 62 05.06.2024 11:18 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64142 ФПД: 81975223096784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T111829&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64142&fm=81975223096784&tin=02508201610067®Number=0000000000092737&sum=37500 0 [11:18:27]StoreToDocumentArchive [11:18:27]shift 375 fd 64142 [11:18:27]save to /storage/0375/doc_00064142 [11:18:27]save last doc name /storage/0375/doc_00064142 to /storage/kkm_last_doc_name [11:18:27]save OK [11:18:27]Clear old archive folders... [11:18:27]ProcessDocumentItem done err = 0, tmpTLVsize=448 [11:18:27]tlvbuf is 00FAFF50 [11:18:27]SAM_PROTO_ClearQueue [11:18:27]wFMCommunicate request_size=4 [11:18:27]MH_SAM_APDU [11:18:27]CAPDU: 80 09 00 00 [11:18:27]Write to MH i2c: E2 08 00 7C 1E 80 09 00 00 00 00 00 00 0C [11:18:27]Write i2c OK [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 [11:18:27]MH_I2C_Read... [11:18:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:27]Read from MH i2c: E2 03 00 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 03 00 7C 1E 00 90 00 0E [11:18:27]RAPDU: 90 00 [11:18:27]wFMCommunicate OK [11:18:27]SAM_PROTO_ClearQueue done [11:18:27]KKMCreateOFDPacket [11:18:27]OFDProtocolAddRootSTLVToBuf [11:18:27]FM_MakeSignedData [11:18:27]FM_MakeSignedData [11:18:27]SAM_PROTO_SignData [11:18:27]wFMCommunicate request_size=4 [11:18:27]MH_SAM_APDU [11:18:27]CAPDU: 80 0D 01 02 [11:18:27]Write to MH i2c: E2 08 00 7D 1E 80 0D 01 02 00 00 00 00 14 [11:18:27]Write i2c OK [11:18:27]MH_I2C_Read... [11:18:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:27]Read from MH i2c: E2 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 03 00 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 03 00 7D 1E 00 90 00 0F [11:18:27]RAPDU: 90 00 [11:18:27]wFMCommunicate OK [11:18:27]wFMCommunicate request_size=255 [11:18:27]MH_SAM_APDU [11:18:27]CAPDU: 80 0D 02 02 FA 03 00 C0 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 36 31 06 04 4D 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 D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 93 D1 80 D1 83 D1 88 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 [11:18:27]Write to MH i2c: E2 02 01 7E 1E 80 0D 02 02 FA 00 03 00 C0 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 36 31 06 04 4D 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 D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 93 D1 80 D1 83 D1 88 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 AC [11:18:27]Write i2c OK [11:18:27]MH_I2C_Read... [11:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:27]Read from MH i2c: E2 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 03 00 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 03 00 7E 1E 00 90 00 10 [11:18:27]RAPDU: 90 00 [11:18:27]wFMCommunicate OK [11:18:27]wFMCommunicate request_size=207 [11:18:27]MH_SAM_APDU [11:18:27]CAPDU: 80 0D 02 02 CA 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 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 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 85 49 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8E FA 00 00 35 04 06 00 4A 8E 58 0D 95 D0 [11:18:27]Write to MH i2c: E2 D2 00 7F 1E 80 0D 02 02 CA 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 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 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 85 49 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8E FA 00 00 35 04 06 00 4A 8E 58 0D 95 D0 00 00 74 [11:18:27]Write i2c OK [11:18:27]MH_I2C_Read... [11:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 7F 1E 00 90 00 11 [11:18:28]RAPDU: 90 00 [11:18:28]wFMCommunicate OK [11:18:28]wFMCommunicate request_size=4 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 0D 03 02 [11:18:28]Write to MH i2c: E2 08 00 80 1E 80 0D 03 02 00 00 00 00 19 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 0B 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 0B 00 80 1E 00 7E E0 A1 3A AD 02 C5 CC 90 00 93 [11:18:28]RAPDU: 7E E0 A1 3A AD 02 C5 CC 90 00 [11:18:28]wFMCommunicate OK [11:18:28]SAM_PROTO_SignData done [11:18:28]FM_MakeSignedData done [11:18:28]CreateOFDProtocolMessage [11:18:28]wFMCommunicate request_size=4 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 11 00 00 [11:18:28]Write to MH i2c: E2 08 00 81 1E 80 11 00 00 00 00 00 00 19 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 17 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 17 00 81 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6B [11:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:18:28]wFMCommunicate OK [11:18:28]CreateOFDProtocolMessage done [11:18:28]OFDSenderStorePacket 64142 [11:18:28]StoreOFDPacket docnum=64142 [11:18:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 D4 01 00 00 8A B0 CC 01 16 4C 5A 03 01 00 03 00 C0 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 36 31 06 04 4D 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 D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 93 D1 80 D1 83 D1 88 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 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 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 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 85 49 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8E FA 00 00 35 04 06 00 4A 8E 58 0D 95 D0 7E E0 A1 3A AD 02 C5 CC [11:18:28]CheckFolder [11:18:28]dirname=/storage/ofd_packets [11:18:28]CheckFolder done [11:18:28]ProducePacketName [11:18:28]name=ofd_packets/00064142 [11:18:28]NVStorageSaveData ofd_packets/00064142 [11:18:28]File name is /storage/ofd_packets/00064142 [11:18:28]Write 498 bytes [11:18:28]NVStorageSaveData done [11:18:28]OFDSenderStorePacket done [11:18:28]KKMCreateOFDPacket done [11:18:28]NVStorageSaveData kkm_last_timestamp [11:18:28]File name is /storage/kkm_last_timestamp [11:18:28]Write 4 bytes [11:18:28]NVStorageSaveData done [11:18:28]ExternCall_PrintAddStr [11:18:28]wPrintStart [11:18:28]Write to MH i2c: 01 00 00 82 1E A0 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: 01 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: 01 07 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: 01 07 00 82 1E 00 00 00 00 00 FF 0F B5 [11:18:28]RasterBufferAndPrint [11:18:28]line Счет N : (3)73676 [11:18:28]line ИНН: 02508201610067 [11:18:28]line Контрольно-Кассовый Чек [11:18:28]line ПРОДАЖА [11:18:28]line Товар: 4860114390161 [11:18:28]line Напиток безалкогольный газированный Груш [11:18:28]line 2.000 * 155.00 [11:18:28]line = 310.00 [11:18:28]line НДС 12% НСП 1% [11:18:28]line > о реализуемом товаре [11:18:28]line Товар: 4620016300305 [11:18:28]line Салфетки Absolut classic вл а/бакт 20 шт [11:18:28]line 1.000 * 65.00 [11:18:28]line = 65.00 [11:18:28]line НДС 12% НСП 1% [11:18:28]line > о реализуемом товаре [11:18:28]line ИТОГО: 375.00 [11:18:28]line НСП 1% : 3.31 [11:18:28]line НДС 12% : 39.82 [11:18:28]line Наличными: 375.00 [11:18:28]line Безнал.: 0.00 [11:18:28]line Место: АЗС № 117 "Партнер Нефть" [11:18:28]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:18:28]line СНО: Общий режим [11:18:28]line Чек 62 05.06.2024 11:18 [11:18:28]line Смена: 375 ФФД: 1.0 [11:18:28]line ЗНМ: 0300000031 [11:18:28]line РНМ: 0000000000092737 [11:18:28]line Версия ККМ: 001 [11:18:28]line ФМ: 0000000000875074 [11:18:28]line ФД: 64142 [11:18:28]line ФПД: 81975223096784 [11:18:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T111829&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64142&fm=81975223096784&tin=02508201610067®Number=0000000000092737&sum=37500 [11:18:28]line 0 [11:18:28]written 0, free lines is 4095 [11:18:28]OFD Sender: Processing packet 64142 [packets to send 14, broken 13] [11:18:28]ProducePacketName [11:18:28]name=ofd_packets/00064142 [11:18:28]OFD Sender: To server: pG, [11:18:28]CommunicateWithHost lk.salyk.kg:30040 [11:18:28]ConnectInit lk.salyk.kg [11:18:28]Connected sock=10 [11:18:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 D4 01 00 00 8A B0 CC 01 16 4C 5A 03 01 00 03 00 C0 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 36 31 06 04 4D 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 D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 93 D1 80 D1 83 D1 88 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 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 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 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 85 49 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8E FA 00 00 35 04 06 00 4A 8E 58 0D 95 D0 7E E0 A1 3A AD 02 C5 CC [11:18:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 67 61 47 00 AA C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8E FA 00 00 F4 03 04 00 91 F5 5F 66 B6 04 01 00 00 CF C0 33 14 06 9A 4D B3 [11:18:28]CommunicateWithHost err = 0 [11:18:28]CheckOFDResponse [11:18:28]1017 (14) - 77093643461234 [11:18:28]1041 (16) - 0000000000875074 [11:18:28]1040 (4) - 64142 [11:18:28]1012 (4) - 05.06.2024 05:20 [11:18:28]1206 (1) - 0 [11:18:28]OFD Sender: Remove packet 64142 [11:18:28]ProducePacketName [11:18:28]name=ofd_packets/00064142 [11:18:28]NVStorageDeleteData [11:18:28]Write to MH i2c: 01 00 00 B2 1E D0 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: 01 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: 01 07 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: 01 07 00 B2 1E 00 00 00 00 00 75 0C 58 [11:18:28]RasterBufferAndPrint [11:18:28]line [11:18:28]line [11:18:28]line [11:18:28]line [11:18:28]line [11:18:28]written 0, free lines is 3198 [11:18:29]MH_Cut [11:18:29]Write to MH i2c: D1 01 00 B9 1E 01 A9 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: D1 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: D1 01 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: D1 01 00 B9 1E 00 A8 [11:18:29]Write to MH i2c: 01 00 00 BA 1E D8 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]OFD Sender: No OFD packet to send [11:18:29]*** Cut start [11:18:29]*** Partial cut [11:18:29]*** CUTSNS_PIN = 1 [11:18:29]*** CUTSNS_PIN = 0 [11:18:30]*** Brake cut motor [11:18:30]Read from MH i2c: 01 [11:18:30]MH_I2C_Read... [11:18:30]*** Stop cut motor [11:18:30]*** Cut end [11:18:30]Read from MH i2c: 01 07 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: 01 07 00 BA 1E 00 00 00 00 00 FF 0F ED [11:18:30]process_action close_receipt done [11:18:30]requested_data is exist [11:18:30]produce_requested_data [11:18:30]requested_item fm.sn is exist - process it [11:18:30]wFMCommunicate request_size=4 [11:18:30]MH_SAM_APDU [11:18:30]CAPDU: 80 11 00 00 [11:18:30]Write to MH i2c: E2 08 00 BB 1E 80 11 00 00 00 00 00 00 53 [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:30]Read from MH i2c: E2 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 17 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 17 00 BB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A5 [11:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:18:30]wFMCommunicate OK [11:18:30]requested_item fd.num is exist - process it [11:18:30]SAM_PROTO_GetFieldsCounters [11:18:30]wFMCommunicate request_size=4 [11:18:30]MH_SAM_APDU [11:18:30]CAPDU: 80 13 00 00 [11:18:30]Write to MH i2c: E2 08 00 BC 1E 80 13 00 00 00 00 00 00 56 [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:30]Read from MH i2c: E2 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 62 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 62 00 BC 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8E FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [11:18:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8E FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:30]wFMCommunicate OK [11:18:30]SAM_PROTO_GetFieldsCounters done [11:18:30]requested_item shift.num is exist - process it [11:18:30]requested_item shift.opened is exist - process it [11:18:30]req_shift_opened [11:18:30]FM_GetShiftState [11:18:30]SAM_PROTO_GetShiftState [11:18:30]wFMCommunicate request_size=4 [11:18:30]MH_SAM_APDU [11:18:30]CAPDU: 80 13 01 00 [11:18:30]Write to MH i2c: E2 08 00 BD 1E 80 13 01 00 00 00 00 00 58 [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:30]Read from MH i2c: E2 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 0E 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 0E 00 BD 1E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 99 [11:18:30]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [11:18:30]wFMCommunicate OK [11:18:30]SAM_PROTO_GetShiftState done [11:18:30]FM_GetShiftState done [11:18:30]req_shift_opened done [11:18:30]requested_item shift.open_date is exist - process it [11:18:30]req_shift_open_date [11:18:30]req_shift_open_date done [11:18:30]produce_requested_data done [11:18:30]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64142,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [11:18:30]process_action_free close_receipt [11:18:30]json_value_free [11:18:30]json_value_free done [11:18:30]process_json_proto returns [11:18:30]Send response to host [11:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64142,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [11:18:30]free response buf [11:18:30]execute_script done [11:18:30]execute_script returns [11:18:30]free content buf [11:18:30]Sock 9.Close socket [11:18:30]Sock 9.Thread stoped [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]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: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:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30: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:24]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:40:59]accept exits with 8 [11:40:59]New connection [11:40:59]New thread 3067276644 created [11:40:59]Thread 3067133284 joined [11:40:59]Waiting for new connection... [11:40:59] Sock 8.Parse request [11:40:59]Sock 8.Check first char [11:40:59]Sock 8.First char is OK [11:40:59]request: POST /json_proto HTTP/1.0 [11:40:59]Method: POST [11:40:59]URL: /json_proto [11:40:59]Method is POST - this is cgi request [11:40:59]url: /json_proto [11:40:59]query_string will be loaded in cgi processing [11:40:59]execute_cgi json_proto POST (null) [11:40:59]execute_cgi path=json_proto method=POST [11:40:59]POST find Content-Length [11:40:59]Host: 172.17.60.69:8080 [11:40:59]Content-Length: 1494 [11:40:59]Content-Type: application/json [11:40:59] [11:40:59]POST finish read [11:40:59]Found Content-Length = 1494 [11:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73677", "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 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:59]execute_script... [11:40:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73677", "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 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:59]POST & json_proto [11:40:59]process_json_proto [11:40:59]json parsed OK: [11:40:59]protocol is kg_v1.0 [11:40:59]action value=close_receipt [11:40:59]process_action close_receipt [11:40:59]cmd_close_receipt [11:40:59]MH_GetDate [11:40:59]Write to MH i2c: F0 00 00 BE 1E CB [11:40:59]Write i2c OK [11:40:59]MH_I2C_Read... [11:40:59]Read from MH i2c: F0 [11:40:59]MH_I2C_Read... [11:40:59]Read from MH i2c: F0 09 00 [11:40:59]MH_I2C_Read... [11:40:59]Read from MH i2c: F0 09 00 BE 1E 00 CF 4E 60 66 D2 83 5F 66 D1 [11:40:59]GetLastDocTimeStamp 1717586309 [11:41:00]current date 1717587663 [11:41:00]FM_GetShiftState [11:41:00]SAM_PROTO_GetShiftState [11:41:00]wFMCommunicate request_size=4 [11:41:00]MH_SAM_APDU [11:41:00]CAPDU: 80 13 01 00 [11:41:00]Write to MH i2c: E2 08 00 BF 1E 80 13 01 00 00 00 00 00 5A [11:41:00]Write i2c OK [11:41:00]MH_I2C_Read... [11:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:00]Read from MH i2c: E2 [11:41:00]MH_I2C_Read... [11:41:00]Read from MH i2c: E2 0E 00 [11:41:00]MH_I2C_Read... [11:41:00]Read from MH i2c: E2 0E 00 BF 1E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 9B [11:41:00]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [11:41:00]wFMCommunicate OK [11:41:00]SAM_PROTO_GetShiftState done [11:41:00]FM_GetShiftState done [11:41:00]opened in 1717545925 [11:41:00]opened+sec_in_day 1717632325 [11:41:00]quantity*price = 19000 [11:41:00]sum+1 = 19001 [11:41:00]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481453 Напиток энерг Nitro Max 0,45 ж/б 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480302 Напиток энерг Nitro манго-клуб 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 510.00 НСП 1% : 4.51 НДС 12% : 54.17 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 63 05.06.2024 11:41 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64143 ФПД: 214953000311899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T114103&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64143&fm=214953000311899&tin=02508201610067®Number=0000000000092737&sum=51000 0 [11:41:01]StoreToDocumentArchive [11:41:01]shift 375 fd 64143 [11:41:01]save to /storage/0375/doc_00064143 [11:41:01]save last doc name /storage/0375/doc_00064143 to /storage/kkm_last_doc_name [11:41:01]save OK [11:41:01]Clear old archive folders... [11:41:01]ProcessDocumentItem done err = 0, tmpTLVsize=650 [11:41:01]tlvbuf is B6EF7AC0 [11:41:01]SAM_PROTO_ClearQueue [11:41:01]wFMCommunicate request_size=4 [11:41:01]MH_SAM_APDU [11:41:01]CAPDU: 80 09 00 00 [11:41:01]Write to MH i2c: E2 08 00 CC 1E 80 09 00 00 00 00 00 00 5C [11:41:01]Write i2c OK [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 [11:41:01]MH_I2C_Read... [11:41:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:01]Read from MH i2c: E2 03 00 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 CC 1E 00 90 00 5E [11:41:01]RAPDU: 90 00 [11:41:01]wFMCommunicate OK [11:41:01]SAM_PROTO_ClearQueue done [11:41:01]KKMCreateOFDPacket [11:41:01]OFDProtocolAddRootSTLVToBuf [11:41:01]FM_MakeSignedData [11:41:01]FM_MakeSignedData [11:41:01]SAM_PROTO_SignData [11:41:01]wFMCommunicate request_size=4 [11:41:01]MH_SAM_APDU [11:41:01]CAPDU: 80 0D 01 02 [11:41:01]Write to MH i2c: E2 08 00 CD 1E 80 0D 01 02 00 00 00 00 64 [11:41:01]Write i2c OK [11:41:01]MH_I2C_Read... [11:41:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:01]Read from MH i2c: E2 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 CD 1E 00 90 00 5F [11:41:01]RAPDU: 90 00 [11:41:01]wFMCommunicate OK [11:41:01]wFMCommunicate request_size=255 [11:41:01]MH_SAM_APDU [11:41:01]CAPDU: 80 0D 02 02 FA 03 00 8A 02 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 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 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 [11:41:01]Write to MH i2c: E2 02 01 CE 1E 80 0D 02 02 FA 00 03 00 8A 02 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 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 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 00 00 24 [11:41:01]Write i2c OK [11:41:01]MH_I2C_Read... [11:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:01]Read from MH i2c: E2 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 CE 1E 00 90 00 60 [11:41:01]RAPDU: 90 00 [11:41:01]wFMCommunicate OK [11:41:01]wFMCommunicate request_size=255 [11:41:01]MH_SAM_APDU [11:41:01]CAPDU: 80 0D 02 02 FA 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 38 C7 00 00 00 00 EB [11:41:01]Write to MH i2c: E2 02 01 CF 1E 80 0D 02 02 FA 00 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 38 C7 00 00 00 00 EB 00 00 93 [11:41:01]Write i2c OK [11:41:01]MH_I2C_Read... [11:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:01]Read from MH i2c: E2 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 CF 1E 00 90 00 61 [11:41:01]RAPDU: 90 00 [11:41:01]wFMCommunicate OK [11:41:01]wFMCommunicate request_size=159 [11:41:01]MH_SAM_APDU [11:41:01]CAPDU: 80 0D 02 02 9A 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 15 00 00 00 00 07 04 06 00 38 C7 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 CF 4E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8F FA 00 00 35 04 06 00 C3 7F A5 3A 1C 5B [11:41:01]Write to MH i2c: E2 A2 00 D0 1E 80 0D 02 02 9A 00 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 15 00 00 00 00 07 04 06 00 38 C7 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 CF 4E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8F FA 00 00 35 04 06 00 C3 7F A5 3A 1C 5B 00 00 AC [11:41:01]Write i2c OK [11:41:01]MH_I2C_Read... [11:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:02]Read from MH i2c: E2 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: E2 03 00 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: E2 03 00 D0 1E 00 90 00 62 [11:41:02]RAPDU: 90 00 [11:41:02]wFMCommunicate OK [11:41:02]wFMCommunicate request_size=4 [11:41:02]MH_SAM_APDU [11:41:02]CAPDU: 80 0D 03 02 [11:41:02]Write to MH i2c: E2 08 00 D1 1E 80 0D 03 02 00 00 00 00 6A [11:41:02]Write i2c OK [11:41:02]MH_I2C_Read... [11:41:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:02]Read from MH i2c: E2 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: E2 0B 00 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: E2 0B 00 D1 1E 00 E6 49 47 8A 10 99 B6 05 90 00 CF [11:41:02]RAPDU: E6 49 47 8A 10 99 B6 05 90 00 [11:41:02]wFMCommunicate OK [11:41:02]SAM_PROTO_SignData done [11:41:02]FM_MakeSignedData done [11:41:02]CreateOFDProtocolMessage [11:41:02]wFMCommunicate request_size=4 [11:41:02]MH_SAM_APDU [11:41:02]CAPDU: 80 11 00 00 [11:41:02]Write to MH i2c: E2 08 00 D2 1E 80 11 00 00 00 00 00 00 6A [11:41:02]Write i2c OK [11:41:02]MH_I2C_Read... [11:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:02]Read from MH i2c: E2 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: E2 17 00 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: E2 17 00 D2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 BC [11:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:41:02]wFMCommunicate OK [11:41:02]CreateOFDProtocolMessage done [11:41:02]OFDSenderStorePacket 64143 [11:41:02]StoreOFDPacket docnum=64143 [11:41:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 9E 02 00 00 EF F5 96 02 E2 A0 5A 03 01 00 03 00 8A 02 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 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 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 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 15 00 00 00 00 07 04 06 00 38 C7 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 CF 4E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8F FA 00 00 35 04 06 00 C3 7F A5 3A 1C 5B E6 49 47 8A 10 99 B6 05 [11:41:02]CheckFolder [11:41:02]dirname=/storage/ofd_packets [11:41:02]CheckFolder done [11:41:02]ProducePacketName [11:41:02]name=ofd_packets/00064143 [11:41:02]NVStorageSaveData ofd_packets/00064143 [11:41:02]File name is /storage/ofd_packets/00064143 [11:41:02]Write 700 bytes [11:41:02]NVStorageSaveData done [11:41:02]OFDSenderStorePacket done [11:41:02]KKMCreateOFDPacket done [11:41:02]NVStorageSaveData kkm_last_timestamp [11:41:02]File name is /storage/kkm_last_timestamp [11:41:02]Write 4 bytes [11:41:02]NVStorageSaveData done [11:41:02]ExternCall_PrintAddStr [11:41:02]wPrintStart [11:41:02]Write to MH i2c: 01 00 00 D3 1E F1 [11:41:02]Write i2c OK [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: 01 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: 01 07 00 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: 01 07 00 D3 1E 00 00 00 00 00 FF 0F 06 [11:41:02]RasterBufferAndPrint [11:41:02]line Счет N : (3)73677 [11:41:02]line ИНН: 02508201610067 [11:41:02]line Контрольно-Кассовый Чек [11:41:02]line ПРОДАЖА [11:41:02]line Товар: 4700000480050 [11:41:02]line Напиток Nitro Energy эн green ж/б 0,45л [11:41:02]line 2.000 * 95.00 [11:41:02]line = 190.00 [11:41:02]line НДС 12% НСП 1% [11:41:02]line > о реализуемом товаре [11:41:02]line Товар: 4700000481453 [11:41:02]line Напиток энерг Nitro Max 0,45 ж/б [11:41:02]line 1.000 * 85.00 [11:41:02]line = 85.00 [11:41:02]line НДС 12% НСП 1% [11:41:02]line > о реализуемом товаре [11:41:02]line Товар: 4700000480302 [11:41:02]line Напиток энерг Nitro манго-клуб 0.45 ж/б [11:41:02]line 1.000 * 95.00 [11:41:02]line = 95.00 [11:41:02]line НДС 12% НСП 1% [11:41:02]line > о реализуемом товаре [11:41:02]line Товар: 48743587 [11:41:02]line Сигареты Winston XStyle Silver [11:41:02]line 1.000 * 140.00 [11:41:02]line = 140.00 [11:41:02]line НДС 12% НСП 1% [11:41:02]line > о реализуемом товаре [11:41:02]line ИТОГО: 510.00 [11:41:02]line НСП 1% : 4.51 [11:41:02]line НДС 12% : 54.17 [11:41:02]line Наличными: 510.00 [11:41:02]line Безнал.: 0.00 [11:41:02]line Место: АЗС № 117 "Партнер Нефть" [11:41:02]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:41:02]line СНО: Общий режим [11:41:02]line Чек 63 05.06.2024 11:41 [11:41:02]line Смена: 375 ФФД: 1.0 [11:41:02]line ЗНМ: 0300000031 [11:41:02]line РНМ: 0000000000092737 [11:41:02]line Версия ККМ: 001 [11:41:02]line ФМ: 0000000000875074 [11:41:02]line ФД: 64143 [11:41:02]line ФПД: 214953000311899 [11:41:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T114103&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64143&fm=214953000311899&tin=02508201610067®Number=0000000000092737&sum=51000 [11:41:02]OFD Sender: Processing packet 64143 [packets to send 14, broken 13] [11:41:02]ProducePacketName [11:41:02]name=ofd_packets/00064143 [11:41:02]OFD Sender: To server: pG, [11:41:02]CommunicateWithHost lk.salyk.kg:30040 [11:41:02]ConnectInit lk.salyk.kg [11:41:02]line 0 [11:41:02]written 0, free lines is 4095 [11:41:02]Connected sock=10 [11:41:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 9E 02 00 00 EF F5 96 02 E2 A0 5A 03 01 00 03 00 8A 02 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 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 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 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 15 00 00 00 00 07 04 06 00 38 C7 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 CF 4E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8F FA 00 00 35 04 06 00 C3 7F A5 3A 1C 5B E6 49 47 8A 10 99 B6 05 [11:41:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 16 9D 47 00 67 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8F FA 00 00 F4 03 04 00 DB FA 5F 66 B6 04 01 00 00 6F AB C1 E4 D8 94 9F 66 [11:41:02]CommunicateWithHost err = 0 [11:41:02]CheckOFDResponse [11:41:02]1017 (14) - 77093643461234 [11:41:02]1041 (16) - 0000000000875074 [11:41:02]1040 (4) - 64143 [11:41:02]1012 (4) - 05.06.2024 05:42 [11:41:02]1206 (1) - 0 [11:41:02]OFD Sender: Remove packet 64143 [11:41:02]ProducePacketName [11:41:02]name=ofd_packets/00064143 [11:41:02]NVStorageDeleteData [11:41:03]Write to MH i2c: 01 00 00 11 1F 30 [11:41:03]Write i2c OK [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: 01 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: 01 07 00 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: 01 07 00 11 1F 00 00 00 00 00 83 0B C5 [11:41:03]RasterBufferAndPrint [11:41:03]line [11:41:03]line [11:41:03]line [11:41:03]line [11:41:03]line [11:41:03]written 0, free lines is 2959 [11:41:03]MH_Cut [11:41:03]Write to MH i2c: D1 01 00 18 1F 01 09 [11:41:03]Write i2c OK [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: D1 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: D1 01 00 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: D1 01 00 18 1F 00 08 [11:41:03]Write to MH i2c: 01 00 00 19 1F 38 [11:41:03]Write i2c OK [11:41:03]MH_I2C_Read... [11:41:03]OFD Sender: No OFD packet to send [11:41:04]*** Cut start [11:41:04]*** Partial cut [11:41:04]*** CUTSNS_PIN = 1 [11:41:04]*** CUTSNS_PIN = 0 [11:41:04]*** Brake cut motor [11:41:04]Read from MH i2c: 01 [11:41:04]MH_I2C_Read... [11:41:04]*** Stop cut motor [11:41:04]*** Cut end [11:41:04]Read from MH i2c: 01 07 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: 01 07 00 19 1F 00 00 00 00 00 FF 0F 4D [11:41:04]process_action close_receipt done [11:41:04]requested_data is exist [11:41:04]produce_requested_data [11:41:04]requested_item fm.sn is exist - process it [11:41:04]wFMCommunicate request_size=4 [11:41:04]MH_SAM_APDU [11:41:04]CAPDU: 80 11 00 00 [11:41:04]Write to MH i2c: E2 08 00 1A 1F 80 11 00 00 00 00 00 00 B3 [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:04]Read from MH i2c: E2 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 17 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 17 00 1A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 05 [11:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:41:04]wFMCommunicate OK [11:41:04]requested_item fd.num is exist - process it [11:41:04]SAM_PROTO_GetFieldsCounters [11:41:04]wFMCommunicate request_size=4 [11:41:04]MH_SAM_APDU [11:41:04]CAPDU: 80 13 00 00 [11:41:04]Write to MH i2c: E2 08 00 1B 1F 80 13 00 00 00 00 00 00 B6 [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:05]Read from MH i2c: E2 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: E2 62 00 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: E2 62 00 1B 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8F FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [11:41:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8F FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:05]wFMCommunicate OK [11:41:05]SAM_PROTO_GetFieldsCounters done [11:41:05]requested_item shift.num is exist - process it [11:41:05]requested_item shift.opened is exist - process it [11:41:05]req_shift_opened [11:41:05]FM_GetShiftState [11:41:05]SAM_PROTO_GetShiftState [11:41:05]wFMCommunicate request_size=4 [11:41:05]MH_SAM_APDU [11:41:05]CAPDU: 80 13 01 00 [11:41:05]Write to MH i2c: E2 08 00 1C 1F 80 13 01 00 00 00 00 00 B8 [11:41:05]Write i2c OK [11:41:05]MH_I2C_Read... [11:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:05]Read from MH i2c: E2 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: E2 0E 00 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: E2 0E 00 1C 1F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 F9 [11:41:05]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [11:41:05]wFMCommunicate OK [11:41:05]SAM_PROTO_GetShiftState done [11:41:05]FM_GetShiftState done [11:41:05]req_shift_opened done [11:41:05]requested_item shift.open_date is exist - process it [11:41:05]req_shift_open_date [11:41:05]req_shift_open_date done [11:41:05]produce_requested_data done [11:41:05]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64143,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [11:41:05]process_action_free close_receipt [11:41:05]json_value_free [11:41:05]json_value_free done [11:41:05]process_json_proto returns [11:41:05]Send response to host [11:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64143,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [11:41:05]free response buf [11:41:05]execute_script done [11:41:05]execute_script returns [11:41:05]free content buf [11:41:05]Sock 8.Close socket [11:41:05]Sock 8.Thread stoped [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:04]accept exits with 9 [11:51:04]New connection [11:51:04]New thread 3067133284 created [11:51:04]Thread 3067276644 joined [11:51:04]Waiting for new connection... [11:51:04] Sock 9.Parse request [11:51:04]Sock 9.Check first char [11:51:04]Sock 9.First char is OK [11:51:04]request: POST /json_proto HTTP/1.0 [11:51:04]Method: POST [11:51:04]URL: /json_proto [11:51:04]Method is POST - this is cgi request [11:51:04]url: /json_proto [11:51:04]query_string will be loaded in cgi processing [11:51:04]execute_cgi json_proto POST (null) [11:51:04]execute_cgi path=json_proto method=POST [11:51:04]POST find Content-Length [11:51:04]Host: 172.17.60.69:8080 [11:51:04]Content-Length: 620 [11:51:04]Content-Type: application/json [11:51:04] [11:51:04]POST finish read [11:51:04]Found Content-Length = 620 [11:51:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73678", "tax_sys" : 0, "items" : [ { "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:04]execute_script... [11:51:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73678", "tax_sys" : 0, "items" : [ { "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:04]POST & json_proto [11:51:04]process_json_proto [11:51:04]json parsed OK: [11:51:04]protocol is kg_v1.0 [11:51:04]action value=close_receipt [11:51:04]process_action close_receipt [11:51:04]cmd_close_receipt [11:51:04]MH_GetDate [11:51:04]Write to MH i2c: F0 00 00 1D 1F 2B [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: F0 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: F0 09 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: F0 09 00 1D 1F 00 2B 51 60 66 D2 83 5F 66 90 [11:51:04]GetLastDocTimeStamp 1717587663 [11:51:04]current date 1717588267 [11:51:04]FM_GetShiftState [11:51:04]SAM_PROTO_GetShiftState [11:51:04]wFMCommunicate request_size=4 [11:51:04]MH_SAM_APDU [11:51:04]CAPDU: 80 13 01 00 [11:51:04]Write to MH i2c: E2 08 00 1E 1F 80 13 01 00 00 00 00 00 BA [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:04]Read from MH i2c: E2 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 0E 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 0E 00 1E 1F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 FB [11:51:04]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [11:51:04]wFMCommunicate OK [11:51:04]SAM_PROTO_GetShiftState done [11:51:04]FM_GetShiftState done [11:51:04]opened in 1717545925 [11:51:04]opened+sec_in_day 1717632325 [11:51:04]quantity*price = 14000 [11:51:04]sum+1 = 14001 [11:51:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 64 05.06.2024 11:51 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64144 ФПД: 164147640724388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T115107&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64144&fm=164147640724388&tin=02508201610067®Number=0000000000092737&sum=14000 0 [11:51:05]StoreToDocumentArchive [11:51:05]shift 375 fd 64144 [11:51:05]save to /storage/0375/doc_00064144 [11:51:05]save last doc name /storage/0375/doc_00064144 to /storage/kkm_last_doc_name [11:51:05]save OK [11:51:05]Clear old archive folders... [11:51:05]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:51:05]tlvbuf is B6FA76C0 [11:51:05]SAM_PROTO_ClearQueue [11:51:05]wFMCommunicate request_size=4 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 09 00 00 [11:51:05]Write to MH i2c: E2 08 00 2B 1F 80 09 00 00 00 00 00 00 BC [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 2B 1F 00 90 00 BE [11:51:05]RAPDU: 90 00 [11:51:05]wFMCommunicate OK [11:51:05]SAM_PROTO_ClearQueue done [11:51:05]KKMCreateOFDPacket [11:51:05]OFDProtocolAddRootSTLVToBuf [11:51:05]FM_MakeSignedData [11:51:05]FM_MakeSignedData [11:51:05]SAM_PROTO_SignData [11:51:05]wFMCommunicate request_size=4 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 0D 01 02 [11:51:05]Write to MH i2c: E2 08 00 2C 1F 80 0D 01 02 00 00 00 00 C4 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 2C 1F 00 90 00 BF [11:51:05]RAPDU: 90 00 [11:51:05]wFMCommunicate OK [11:51:05]wFMCommunicate request_size=255 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 40 00 00 00 F4 03 04 00 2B 51 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [11:51:05]Write to MH i2c: E2 02 01 2D 1F 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 40 00 00 00 F4 03 04 00 2B 51 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 A2 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 2D 1F 00 90 00 C0 [11:51:05]RAPDU: 90 00 [11:51:05]wFMCommunicate OK [11:51:05]wFMCommunicate request_size=32 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 90 FA 00 00 35 04 06 00 95 4A 99 D0 EB A4 [11:51:05]Write to MH i2c: E2 23 00 2E 1F 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 90 FA 00 00 35 04 06 00 95 4A 99 D0 EB A4 00 00 84 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 2E 1F 00 90 00 C1 [11:51:05]RAPDU: 90 00 [11:51:05]wFMCommunicate OK [11:51:05]wFMCommunicate request_size=4 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 0D 03 02 [11:51:05]Write to MH i2c: E2 08 00 2F 1F 80 0D 03 02 00 00 00 00 C9 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 0B 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 0B 00 2F 1F 00 3E B8 27 E0 87 8C 70 C0 90 00 0A [11:51:05]RAPDU: 3E B8 27 E0 87 8C 70 C0 90 00 [11:51:05]wFMCommunicate OK [11:51:05]SAM_PROTO_SignData done [11:51:05]FM_MakeSignedData done [11:51:05]CreateOFDProtocolMessage [11:51:05]wFMCommunicate request_size=4 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 11 00 00 [11:51:05]Write to MH i2c: E2 08 00 30 1F 80 11 00 00 00 00 00 00 C9 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 17 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 17 00 30 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1B [11:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:51:05]wFMCommunicate OK [11:51:05]CreateOFDProtocolMessage done [11:51:05]OFDSenderStorePacket 64144 [11:51:05]StoreOFDPacket docnum=64144 [11:51:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 00 E0 1D 01 9C 9C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 40 00 00 00 F4 03 04 00 2B 51 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 90 FA 00 00 35 04 06 00 95 4A 99 D0 EB A4 3E B8 27 E0 87 8C 70 C0 [11:51:05]CheckFolder [11:51:05]dirname=/storage/ofd_packets [11:51:05]CheckFolder done [11:51:05]ProducePacketName [11:51:05]name=ofd_packets/00064144 [11:51:05]NVStorageSaveData ofd_packets/00064144 [11:51:05]File name is /storage/ofd_packets/00064144 [11:51:05]Write 323 bytes [11:51:05]NVStorageSaveData done [11:51:05]OFDSenderStorePacket done [11:51:05]KKMCreateOFDPacket done [11:51:05]NVStorageSaveData kkm_last_timestamp [11:51:05]File name is /storage/kkm_last_timestamp [11:51:05]Write 4 bytes [11:51:05]NVStorageSaveData done [11:51:05]ExternCall_PrintAddStr [11:51:05]wPrintStart [11:51:05]Write to MH i2c: 01 00 00 31 1F 50 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 07 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 07 00 31 1F 00 00 00 00 00 FF 0F 65 [11:51:05]RasterBufferAndPrint [11:51:05]line Счет N : (3)73678 [11:51:05]line ИНН: 02508201610067 [11:51:05]line Контрольно-Кассовый Чек [11:51:05]line ПРОДАЖА [11:51:05]line Товар: 48747059 [11:51:05]line Сигареты Winston Legend Blue [11:51:05]line 1.000 * 140.00 [11:51:05]line = 140.00 [11:51:05]line НДС 12% НСП 1% [11:51:05]line > о реализуемом товаре [11:51:05]line ИТОГО: 140.00 [11:51:05]line НСП 1% : 1.24 [11:51:05]line НДС 12% : 14.87 [11:51:05]line Наличными: 140.00 [11:51:05]line Безнал.: 0.00 [11:51:05]line Место: АЗС № 117 "Партнер Нефть" [11:51:05]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:51:05]line СНО: Общий режим [11:51:05]line Чек 64 05.06.2024 11:51 [11:51:05]line Смена: 375 ФФД: 1.0 [11:51:05]line ЗНМ: 0300000031 [11:51:05]line РНМ: 0000000000092737 [11:51:05]line Версия ККМ: 001 [11:51:05]line ФМ: 0000000000875074 [11:51:05]line ФД: 64144 [11:51:05]line ФПД: 164147640724388 [11:51:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T115107&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64144&fm=164147640724388&tin=02508201610067®Number=0000000000092737&sum=14000 [11:51:06]line 0 [11:51:06]OFD Sender: Processing packet 64144 [packets to send 14, broken 13] [11:51:06]ProducePacketName [11:51:06]name=ofd_packets/00064144 [11:51:06]OFD Sender: To server: pG, [11:51:06]CommunicateWithHost lk.salyk.kg:30040 [11:51:06]ConnectInit lk.salyk.kg [11:51:06]written 0, free lines is 4095 [11:51:06]Connected sock=10 [11:51:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 00 E0 1D 01 9C 9C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 40 00 00 00 F4 03 04 00 2B 51 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 90 FA 00 00 35 04 06 00 95 4A 99 D0 EB A4 3E B8 27 E0 87 8C 70 C0 [11:51:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 80 75 47 00 1B 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 90 FA 00 00 F4 03 04 00 37 FD 5F 66 B6 04 01 00 00 8E 38 2F 2A 9E 48 3B 9C [11:51:06]CommunicateWithHost err = 0 [11:51:06]CheckOFDResponse [11:51:06]1017 (14) - 77093643461234 [11:51:06]1041 (16) - 0000000000875074 [11:51:06]1040 (4) - 64144 [11:51:06]1012 (4) - 05.06.2024 05:52 [11:51:06]1206 (1) - 0 [11:51:06]OFD Sender: Remove packet 64144 [11:51:06]ProducePacketName [11:51:06]name=ofd_packets/00064144 [11:51:06]NVStorageDeleteData [11:51:06]Write to MH i2c: 01 00 00 5A 1F 79 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: 01 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: 01 07 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: 01 07 00 5A 1F 00 00 00 00 00 D1 0C 5D [11:51:06]RasterBufferAndPrint [11:51:06]line [11:51:06]line [11:51:06]line [11:51:06]line [11:51:06]line [11:51:06]written 0, free lines is 3287 [11:51:06]MH_Cut [11:51:06]Write to MH i2c: D1 01 00 61 1F 01 52 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: D1 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: D1 01 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: D1 01 00 61 1F 00 51 [11:51:06]Write to MH i2c: 01 00 00 62 1F 81 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]OFD Sender: No OFD packet to send [11:51:07]*** Cut start [11:51:07]*** Partial cut [11:51:07]*** CUTSNS_PIN = 1 [11:51:07]*** CUTSNS_PIN = 0 [11:51:07]*** Brake cut motor [11:51:08]Read from MH i2c: 01 [11:51:08]MH_I2C_Read... [11:51:08]*** Stop cut motor [11:51:08]*** Cut end [11:51:08]Read from MH i2c: 01 07 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 62 1F 00 00 00 00 00 FF 0F 96 [11:51:08]process_action close_receipt done [11:51:08]requested_data is exist [11:51:08]produce_requested_data [11:51:08]requested_item fm.sn is exist - process it [11:51:08]wFMCommunicate request_size=4 [11:51:08]MH_SAM_APDU [11:51:08]CAPDU: 80 11 00 00 [11:51:08]Write to MH i2c: E2 08 00 63 1F 80 11 00 00 00 00 00 00 FC [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 17 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 17 00 63 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4E [11:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:51:08]wFMCommunicate OK [11:51:08]requested_item fd.num is exist - process it [11:51:08]SAM_PROTO_GetFieldsCounters [11:51:08]wFMCommunicate request_size=4 [11:51:08]MH_SAM_APDU [11:51:08]CAPDU: 80 13 00 00 [11:51:08]Write to MH i2c: E2 08 00 64 1F 80 13 00 00 00 00 00 00 FF [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 62 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 62 00 64 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 90 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [11:51:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 90 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:08]wFMCommunicate OK [11:51:08]SAM_PROTO_GetFieldsCounters done [11:51:08]requested_item shift.num is exist - process it [11:51:08]requested_item shift.opened is exist - process it [11:51:08]req_shift_opened [11:51:08]FM_GetShiftState [11:51:08]SAM_PROTO_GetShiftState [11:51:08]wFMCommunicate request_size=4 [11:51:08]MH_SAM_APDU [11:51:08]CAPDU: 80 13 01 00 [11:51:08]Write to MH i2c: E2 08 00 65 1F 80 13 01 00 00 00 00 00 01 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:08]Read from MH i2c: E2 0E 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 0E 00 65 1F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 42 [11:51:08]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [11:51:08]wFMCommunicate OK [11:51:08]SAM_PROTO_GetShiftState done [11:51:08]FM_GetShiftState done [11:51:08]req_shift_opened done [11:51:08]requested_item shift.open_date is exist - process it [11:51:08]req_shift_open_date [11:51:08]req_shift_open_date done [11:51:08]produce_requested_data done [11:51:08]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64144,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [11:51:08]process_action_free close_receipt [11:51:08]json_value_free [11:51:08]json_value_free done [11:51:08]process_json_proto returns [11:51:08]Send response to host [11:51:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64144,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [11:51:08]free response buf [11:51:08]execute_script done [11:51:08]execute_script returns [11:51:08]free content buf [11:51:08]Sock 9.Close socket [11:51:08]Sock 9.Thread stoped [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:15]accept exits with 8 [11:54:15]New connection [11:54:15]New thread 3067276644 created [11:54:15]Thread 3067133284 joined [11:54:15]Waiting for new connection... [11:54:15] Sock 8.Parse request [11:54:15]Sock 8.Check first char [11:54:15]Sock 8.First char is OK [11:54:15]request: POST /json_proto HTTP/1.0 [11:54:15]Method: POST [11:54:15]URL: /json_proto [11:54:15]Method is POST - this is cgi request [11:54:15]url: /json_proto [11:54:15]query_string will be loaded in cgi processing [11:54:15]execute_cgi json_proto POST (null) [11:54:15]execute_cgi path=json_proto method=POST [11:54:15]POST find Content-Length [11:54:15]Host: 172.17.60.69:8080 [11:54:15]Content-Length: 677 [11:54:15]Content-Type: application/json [11:54:15] [11:54:15]POST finish read [11:54:15]Found Content-Length = 677 [11:54:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:15]execute_script... [11:54:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:15]POST & json_proto [11:54:15]process_json_proto [11:54:15]json parsed OK: [11:54:15]protocol is kg_v1.0 [11:54:15]action value=close_receipt [11:54:15]process_action close_receipt [11:54:15]cmd_close_receipt [11:54:15]MH_GetDate [11:54:15]Write to MH i2c: F0 00 00 66 1F 74 [11:54:15]Write i2c OK [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: F0 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: F0 09 00 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: F0 09 00 66 1F 00 EA 51 60 66 D2 83 5F 66 98 [11:54:15]GetLastDocTimeStamp 1717588267 [11:54:15]current date 1717588458 [11:54:15]FM_GetShiftState [11:54:15]SAM_PROTO_GetShiftState [11:54:15]wFMCommunicate request_size=4 [11:54:15]MH_SAM_APDU [11:54:15]CAPDU: 80 13 01 00 [11:54:15]Write to MH i2c: E2 08 00 67 1F 80 13 01 00 00 00 00 00 03 [11:54:15]Write i2c OK [11:54:15]MH_I2C_Read... [11:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:15]Read from MH i2c: E2 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: E2 0E 00 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: E2 0E 00 67 1F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 44 [11:54:15]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [11:54:15]wFMCommunicate OK [11:54:15]SAM_PROTO_GetShiftState done [11:54:15]FM_GetShiftState done [11:54:15]opened in 1717545925 [11:54:15]opened+sec_in_day 1717632325 [11:54:15]quantity*price = 50041 [11:54:15]sum+1 = 50042 [11:54:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 65 05.06.2024 11:54 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64145 ФПД: 53952912464805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T115418&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64145&fm=53952912464805&tin=02508201610067®Number=0000000000092737&sum=50000 [11:54:16]StoreToDocumentArchive [11:54:16]shift 375 fd 64145 [11:54:16]save to /storage/0375/doc_00064145 [11:54:16]save last doc name /storage/0375/doc_00064145 to /storage/kkm_last_doc_name [11:54:16]save OK [11:54:16]Clear old archive folders... [11:54:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:16]tlvbuf is 01124770 [11:54:16]SAM_PROTO_ClearQueue [11:54:16]wFMCommunicate request_size=4 [11:54:16]MH_SAM_APDU [11:54:16]CAPDU: 80 09 00 00 [11:54:16]Write to MH i2c: E2 08 00 74 1F 80 09 00 00 00 00 00 00 05 [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:16]Read from MH i2c: E2 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 03 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 03 00 74 1F 00 90 00 07 [11:54:16]RAPDU: 90 00 [11:54:16]wFMCommunicate OK [11:54:16]SAM_PROTO_ClearQueue done [11:54:16]KKMCreateOFDPacket [11:54:16]OFDProtocolAddRootSTLVToBuf [11:54:16]FM_MakeSignedData [11:54:16]FM_MakeSignedData [11:54:16]SAM_PROTO_SignData [11:54:16]wFMCommunicate request_size=4 [11:54:16]MH_SAM_APDU [11:54:16]CAPDU: 80 0D 01 02 [11:54:16]Write to MH i2c: E2 08 00 75 1F 80 0D 01 02 00 00 00 00 0D [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:16]Read from MH i2c: E2 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 03 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 03 00 75 1F 00 90 00 08 [11:54:16]RAPDU: 90 00 [11:54:16]wFMCommunicate OK [11:54:16]wFMCommunicate request_size=255 [11:54:16]MH_SAM_APDU [11:54:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EA 51 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 91 FA 00 00 35 04 06 00 31 [11:54:16]Write to MH i2c: E2 02 01 76 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EA 51 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 91 FA 00 00 35 04 06 00 31 00 00 14 [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 76 1F 00 90 00 09 [11:54:17]RAPDU: 90 00 [11:54:17]wFMCommunicate OK [11:54:17]wFMCommunicate request_size=10 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 0D 02 02 05 11 E4 2E 9B A5 [11:54:17]Write to MH i2c: E2 0D 00 77 1F 80 0D 02 02 05 00 11 E4 2E 9B A5 00 00 7D [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 77 1F 00 90 00 0A [11:54:17]RAPDU: 90 00 [11:54:17]wFMCommunicate OK [11:54:17]wFMCommunicate request_size=4 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 0D 03 02 [11:54:17]Write to MH i2c: E2 08 00 78 1F 80 0D 03 02 00 00 00 00 12 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 0B 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 0B 00 78 1F 00 EA 2A B0 9D 2B 22 A1 A6 90 00 08 [11:54:17]RAPDU: EA 2A B0 9D 2B 22 A1 A6 90 00 [11:54:17]wFMCommunicate OK [11:54:17]SAM_PROTO_SignData done [11:54:17]FM_MakeSignedData done [11:54:17]CreateOFDProtocolMessage [11:54:17]wFMCommunicate request_size=4 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 11 00 00 [11:54:17]Write to MH i2c: E2 08 00 79 1F 80 11 00 00 00 00 00 00 12 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 17 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 17 00 79 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 64 [11:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:54:17]wFMCommunicate OK [11:54:17]CreateOFDProtocolMessage done [11:54:17]OFDSenderStorePacket 64145 [11:54:17]StoreOFDPacket docnum=64145 [11:54:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 0D C4 07 01 38 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EA 51 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 91 FA 00 00 35 04 06 00 31 11 E4 2E 9B A5 EA 2A B0 9D 2B 22 A1 A6 [11:54:17]CheckFolder [11:54:17]dirname=/storage/ofd_packets [11:54:17]CheckFolder done [11:54:17]ProducePacketName [11:54:17]name=ofd_packets/00064145 [11:54:17]NVStorageSaveData ofd_packets/00064145 [11:54:17]File name is /storage/ofd_packets/00064145 [11:54:17]Write 301 bytes [11:54:17]NVStorageSaveData done [11:54:17]OFDSenderStorePacket done [11:54:17]KKMCreateOFDPacket done [11:54:17]NVStorageSaveData kkm_last_timestamp [11:54:17]File name is /storage/kkm_last_timestamp [11:54:17]Write 4 bytes [11:54:17]NVStorageSaveData done [11:54:17]ExternCall_PrintAddStr [11:54:17]wPrintStart [11:54:17]Write to MH i2c: 01 00 00 7A 1F 99 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 07 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 07 00 7A 1F 00 00 00 00 00 FF 0F AE [11:54:17]RasterBufferAndPrint [11:54:17]line Счет N : (1)545634 [11:54:17]line ИНН: 02508201610067 [11:54:17]line Контрольно-Кассовый Чек [11:54:17]line ПРОДАЖА [11:54:17]line ТРК (МРК, ГНК) : 12 [11:54:17]line Товар: 2710124130 [11:54:17]line Аи-92-К-5 [11:54:17]line 7.480 * 66.90 [11:54:17]line = 500.41 [11:54:17]line НДС 12% НСП 1% [11:54:17]line > о реализуемом товаре [11:54:17]line ОКРУГЛЕНИЕ: -0.41 [11:54:17]line ИТОГО: 500.00 [11:54:17]line Внесено: 500.00 [11:54:17]line СДАЧА: 0.00 [11:54:17]line НСП 1% : 4.43 [11:54:17]line НДС 12% : 53.14 [11:54:17]line Наличными: 500.00 [11:54:17]line Безнал.: 0.00 [11:54:17]line Место: АЗС № 117 "Партнер Нефть" [11:54:17]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:54:17]line СНО: Общий режим [11:54:17]line Чек 65 05.06.2024 11:54 [11:54:17]line Смена: 375 ФФД: 1.0 [11:54:17]line ЗНМ: 0300000031 [11:54:17]line РНМ: 0000000000092737 [11:54:17]line Версия ККМ: 001 [11:54:17]line ФМ: 0000000000875074 [11:54:17]line ФД: 64145 [11:54:17]line ФПД: 53952912464805 [11:54:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T115418&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64145&fm=53952912464805&tin=02508201610067®Number=0000000000092737&sum=50000 [11:54:17]OFD Sender: Processing packet 64145 [packets to send 14, broken 13] [11:54:17]ProducePacketName [11:54:17]name=ofd_packets/00064145 [11:54:17]OFD Sender: To server: pG, [11:54:17]CommunicateWithHost lk.salyk.kg:30040 [11:54:17]ConnectInit lk.salyk.kg [11:54:17]written 0, free lines is 4095 [11:54:17]Connected sock=9 [11:54:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 0D C4 07 01 38 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EA 51 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 91 FA 00 00 35 04 06 00 31 11 E4 2E 9B A5 EA 2A B0 9D 2B 22 A1 A6 [11:54:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C5 9C 47 00 1C 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 91 FA 00 00 F4 03 04 00 F6 FD 5F 66 B6 04 01 00 00 A7 D6 32 41 25 49 BD 8E [11:54:17]CommunicateWithHost err = 0 [11:54:17]CheckOFDResponse [11:54:17]1017 (14) - 77093643461234 [11:54:17]1041 (16) - 0000000000875074 [11:54:17]1040 (4) - 64145 [11:54:17]1012 (4) - 05.06.2024 05:56 [11:54:17]1206 (1) - 0 [11:54:17]OFD Sender: Remove packet 64145 [11:54:17]ProducePacketName [11:54:17]name=ofd_packets/00064145 [11:54:17]NVStorageDeleteData [11:54:17]Write to MH i2c: 01 00 00 A5 1F C4 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 07 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 07 00 A5 1F 00 00 00 00 00 E1 0C B8 [11:54:17]RasterBufferAndPrint [11:54:17]line [11:54:17]line [11:54:17]line [11:54:17]line [11:54:17]line [11:54:17]written 0, free lines is 3306 [11:54:17]MH_Cut [11:54:17]Write to MH i2c: D1 01 00 AC 1F 01 9D [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: D1 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: D1 01 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: D1 01 00 AC 1F 00 9C [11:54:17]Write to MH i2c: 01 00 00 AD 1F CC [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:18]OFD Sender: No OFD packet to send [11:54:18]*** Cut start [11:54:18]*** Partial cut [11:54:18]*** CUTSNS_PIN = 1 [11:54:18]*** CUTSNS_PIN = 0 [11:54:19]*** Brake cut motor [11:54:19]Read from MH i2c: 01 [11:54:19]MH_I2C_Read... [11:54:19]*** Stop cut motor [11:54:19]*** Cut end [11:54:19]Read from MH i2c: 01 07 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: 01 07 00 AD 1F 00 00 00 00 00 FF 0F E1 [11:54:19]process_action close_receipt done [11:54:19]requested_data is exist [11:54:19]produce_requested_data [11:54:19]requested_item fm.sn is exist - process it [11:54:19]wFMCommunicate request_size=4 [11:54:19]MH_SAM_APDU [11:54:19]CAPDU: 80 11 00 00 [11:54:19]Write to MH i2c: E2 08 00 AE 1F 80 11 00 00 00 00 00 00 47 [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:19]Read from MH i2c: E2 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 17 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 17 00 AE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 99 [11:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:54:19]wFMCommunicate OK [11:54:19]requested_item fd.num is exist - process it [11:54:19]SAM_PROTO_GetFieldsCounters [11:54:19]wFMCommunicate request_size=4 [11:54:19]MH_SAM_APDU [11:54:19]CAPDU: 80 13 00 00 [11:54:19]Write to MH i2c: E2 08 00 AF 1F 80 13 00 00 00 00 00 00 4A [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:19]Read from MH i2c: E2 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 62 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 62 00 AF 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 91 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [11:54:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 91 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:19]wFMCommunicate OK [11:54:19]SAM_PROTO_GetFieldsCounters done [11:54:19]requested_item shift.num is exist - process it [11:54:19]requested_item shift.opened is exist - process it [11:54:19]req_shift_opened [11:54:19]FM_GetShiftState [11:54:19]SAM_PROTO_GetShiftState [11:54:19]wFMCommunicate request_size=4 [11:54:19]MH_SAM_APDU [11:54:19]CAPDU: 80 13 01 00 [11:54:19]Write to MH i2c: E2 08 00 B0 1F 80 13 01 00 00 00 00 00 4C [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:19]Read from MH i2c: E2 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 0E 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 0E 00 B0 1F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 8D [11:54:19]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [11:54:19]wFMCommunicate OK [11:54:19]SAM_PROTO_GetShiftState done [11:54:19]FM_GetShiftState done [11:54:19]req_shift_opened done [11:54:19]requested_item shift.open_date is exist - process it [11:54:19]req_shift_open_date [11:54:19]req_shift_open_date done [11:54:19]produce_requested_data done [11:54:19]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64145,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [11:54:19]process_action_free close_receipt [11:54:19]json_value_free [11:54:19]json_value_free done [11:54:19]process_json_proto returns [11:54:19]Send response to host [11:54:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64145,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [11:54:19]free response buf [11:54:19]execute_script done [11:54:19]execute_script returns [11:54:19]free content buf [11:54:19]Sock 8.Close socket [11:54:19]Sock 8.Thread stoped [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:09]accept exits with 10 [11:55:09]New connection [11:55:09]New thread 3067133284 created [11:55:09]Thread 3067276644 joined [11:55:09]Waiting for new connection... [11:55:09] Sock 10.Parse request [11:55:09]Sock 10.Check first char [11:55:09]Sock 10.First char is OK [11:55:09]request: POST /json_proto HTTP/1.0 [11:55:09]Method: POST [11:55:09]URL: /json_proto [11:55:09]Method is POST - this is cgi request [11:55:09]url: /json_proto [11:55:09]query_string will be loaded in cgi processing [11:55:09]execute_cgi json_proto POST (null) [11:55:09]execute_cgi path=json_proto method=POST [11:55:09]POST find Content-Length [11:55:09]Host: 172.17.60.69:8080 [11:55:09]Content-Length: 668 [11:55:09]Content-Type: application/json [11:55:09] [11:55:09]POST finish read [11:55:09]Found Content-Length = 668 [11:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73679", "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 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:09]execute_script... [11:55:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73679", "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 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:09]POST & json_proto [11:55:09]process_json_proto [11:55:09]json parsed OK: [11:55:09]protocol is kg_v1.0 [11:55:09]action value=close_receipt [11:55:09]process_action close_receipt [11:55:09]cmd_close_receipt [11:55:09]MH_GetDate [11:55:09]Write to MH i2c: F0 00 00 B1 1F BF [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: F0 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: F0 09 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: F0 09 00 B1 1F 00 20 52 60 66 D2 83 5F 66 1A [11:55:09]GetLastDocTimeStamp 1717588458 [11:55:09]current date 1717588512 [11:55:09]FM_GetShiftState [11:55:09]SAM_PROTO_GetShiftState [11:55:09]wFMCommunicate request_size=4 [11:55:09]MH_SAM_APDU [11:55:09]CAPDU: 80 13 01 00 [11:55:09]Write to MH i2c: E2 08 00 B2 1F 80 13 01 00 00 00 00 00 4E [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:09]Read from MH i2c: E2 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 0E 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 0E 00 B2 1F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 8F [11:55:09]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [11:55:09]wFMCommunicate OK [11:55:09]SAM_PROTO_GetShiftState done [11:55:09]FM_GetShiftState done [11:55:09]opened in 1717545925 [11:55:09]opened+sec_in_day 1717632325 [11:55:09]quantity*price = 11000 [11:55:09]sum+1 = 11001 [11:55:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 66 05.06.2024 11:55 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64146 ФПД: 63528331938258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T115512&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64146&fm=63528331938258&tin=02508201610067®Number=0000000000092737&sum=11000 0 [11:55:10]StoreToDocumentArchive [11:55:10]shift 375 fd 64146 [11:55:10]save to /storage/0375/doc_00064146 [11:55:10]save last doc name /storage/0375/doc_00064146 to /storage/kkm_last_doc_name [11:55:10]save OK [11:55:10]Clear old archive folders... [11:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=293 [11:55:10]tlvbuf is 00FB0280 [11:55:10]SAM_PROTO_ClearQueue [11:55:10]wFMCommunicate request_size=4 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 09 00 00 [11:55:10]Write to MH i2c: E2 08 00 BF 1F 80 09 00 00 00 00 00 00 50 [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:10]Read from MH i2c: E2 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 03 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 03 00 BF 1F 00 90 00 52 [11:55:10]RAPDU: 90 00 [11:55:10]wFMCommunicate OK [11:55:10]SAM_PROTO_ClearQueue done [11:55:10]KKMCreateOFDPacket [11:55:10]OFDProtocolAddRootSTLVToBuf [11:55:10]FM_MakeSignedData [11:55:10]FM_MakeSignedData [11:55:10]SAM_PROTO_SignData [11:55:10]wFMCommunicate request_size=4 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 0D 01 02 [11:55:10]Write to MH i2c: E2 08 00 C0 1F 80 0D 01 02 00 00 00 00 58 [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:10]Read from MH i2c: E2 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 03 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 03 00 C0 1F 00 90 00 53 [11:55:10]RAPDU: 90 00 [11:55:10]wFMCommunicate OK [11:55:10]wFMCommunicate request_size=255 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 42 00 00 00 F4 03 04 00 20 52 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [11:55:10]Write to MH i2c: E2 02 01 C1 1F 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 42 00 00 00 F4 03 04 00 20 52 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 64 [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:10]Read from MH i2c: E2 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 03 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 03 00 C1 1F 00 90 00 54 [11:55:10]RAPDU: 90 00 [11:55:10]wFMCommunicate OK [11:55:10]wFMCommunicate request_size=52 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 92 FA 00 00 35 04 06 00 39 C7 57 A8 89 D2 [11:55:10]Write to MH i2c: E2 37 00 C2 1F 80 0D 02 02 2F 00 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 92 FA 00 00 35 04 06 00 39 C7 57 A8 89 D2 00 00 06 [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:10]Read from MH i2c: E2 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 03 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 03 00 C2 1F 00 90 00 55 [11:55:10]RAPDU: 90 00 [11:55:10]wFMCommunicate OK [11:55:10]wFMCommunicate request_size=4 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 0D 03 02 [11:55:10]Write to MH i2c: E2 08 00 C3 1F 80 0D 03 02 00 00 00 00 5D [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:10]Read from MH i2c: E2 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 0B 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 0B 00 C3 1F 00 E7 55 BA E4 07 90 DB 95 90 00 3F [11:55:10]RAPDU: E7 55 BA E4 07 90 DB 95 90 00 [11:55:10]wFMCommunicate OK [11:55:10]SAM_PROTO_SignData done [11:55:10]FM_MakeSignedData done [11:55:10]CreateOFDProtocolMessage [11:55:10]wFMCommunicate request_size=4 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 11 00 00 [11:55:10]Write to MH i2c: E2 08 00 C4 1F 80 11 00 00 00 00 00 00 5D [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:10]Read from MH i2c: E2 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 17 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 17 00 C4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AF [11:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:55:10]wFMCommunicate OK [11:55:10]CreateOFDProtocolMessage done [11:55:10]OFDSenderStorePacket 64146 [11:55:10]StoreOFDPacket docnum=64146 [11:55:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 63 0F 31 01 99 DE 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 42 00 00 00 F4 03 04 00 20 52 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 92 FA 00 00 35 04 06 00 39 C7 57 A8 89 D2 E7 55 BA E4 07 90 DB 95 [11:55:10]CheckFolder [11:55:10]dirname=/storage/ofd_packets [11:55:10]CheckFolder done [11:55:10]ProducePacketName [11:55:10]name=ofd_packets/00064146 [11:55:10]NVStorageSaveData ofd_packets/00064146 [11:55:10]File name is /storage/ofd_packets/00064146 [11:55:10]Write 343 bytes [11:55:10]NVStorageSaveData done [11:55:10]OFDSenderStorePacket done [11:55:10]KKMCreateOFDPacket done [11:55:10]NVStorageSaveData kkm_last_timestamp [11:55:10]File name is /storage/kkm_last_timestamp [11:55:10]Write 4 bytes [11:55:10]NVStorageSaveData done [11:55:10]ExternCall_PrintAddStr [11:55:10]wPrintStart [11:55:10]Write to MH i2c: 01 00 00 C5 1F E4 [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: 01 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: 01 07 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: 01 07 00 C5 1F 00 00 00 00 00 FF 0F F9 [11:55:10]RasterBufferAndPrint [11:55:10]line Счет N : (3)73679 [11:55:10]line ИНН: 02508201610067 [11:55:10]line Контрольно-Кассовый Чек [11:55:10]line ПРОДАЖА [11:55:10]line Товар: 4870022003305 [11:55:10]line Напиток Gorilla эн нат ж/б 0,5/0,45л [11:55:10]line 1.000 * 110.00 [11:55:10]line = 110.00 [11:55:10]line НДС 12% НСП 1% [11:55:10]line > о реализуемом товаре [11:55:10]line ИТОГО: 110.00 [11:55:10]line НСП 1% : 0.97 [11:55:10]line НДС 12% : 11.68 [11:55:10]line Наличными: 110.00 [11:55:10]line Безнал.: 0.00 [11:55:10]line Место: АЗС № 117 "Партнер Нефть" [11:55:10]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:55:10]line СНО: Общий режим [11:55:10]line Чек 66 05.06.2024 11:55 [11:55:10]line Смена: 375 ФФД: 1.0 [11:55:10]line ЗНМ: 0300000031 [11:55:10]line РНМ: 0000000000092737 [11:55:10]line Версия ККМ: 001 [11:55:10]line ФМ: 0000000000875074 [11:55:10]line ФД: 64146 [11:55:10]line ФПД: 63528331938258 [11:55:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T115512&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64146&fm=63528331938258&tin=02508201610067®Number=0000000000092737&sum=11000 [11:55:11]OFD Sender: Processing packet 64146 [packets to send 14, broken 13] [11:55:11]ProducePacketName [11:55:11]name=ofd_packets/00064146 [11:55:11]OFD Sender: To server: pG, [11:55:11]CommunicateWithHost lk.salyk.kg:30040 [11:55:11]ConnectInit lk.salyk.kg [11:55:11]line 0 [11:55:11]written 0, free lines is 4095 [11:55:11]Connected sock=9 [11:55:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 63 0F 31 01 99 DE 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 42 00 00 00 F4 03 04 00 20 52 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 92 FA 00 00 35 04 06 00 39 C7 57 A8 89 D2 E7 55 BA E4 07 90 DB 95 [11:55:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 BD FA 47 00 78 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 92 FA 00 00 F4 03 04 00 2C FE 5F 66 B6 04 01 00 00 EC 1C 8B C6 DD B1 D7 91 [11:55:11]CommunicateWithHost err = 0 [11:55:11]CheckOFDResponse [11:55:11]1017 (14) - 77093643461234 [11:55:11]1041 (16) - 0000000000875074 [11:55:11]1040 (4) - 64146 [11:55:11]1012 (4) - 05.06.2024 05:57 [11:55:11]1206 (1) - 0 [11:55:11]OFD Sender: Remove packet 64146 [11:55:11]ProducePacketName [11:55:11]name=ofd_packets/00064146 [11:55:11]NVStorageDeleteData [11:55:11]Write to MH i2c: 01 00 00 EE 1F 0D [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: 01 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: 01 07 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: 01 07 00 EE 1F 00 00 00 00 00 E7 0C 07 [11:55:11]RasterBufferAndPrint [11:55:11]line [11:55:11]line [11:55:11]line [11:55:11]line [11:55:11]line [11:55:11]written 0, free lines is 3310 [11:55:11]MH_Cut [11:55:11]Write to MH i2c: D1 01 00 F5 1F 01 E6 [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: D1 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: D1 01 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: D1 01 00 F5 1F 00 E5 [11:55:11]Write to MH i2c: 01 00 00 F6 1F 15 [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:12]OFD Sender: No OFD packet to send [11:55:12]*** Cut start [11:55:12]*** Partial cut [11:55:12]*** CUTSNS_PIN = 1 [11:55:12]*** CUTSNS_PIN = 0 [11:55:12]*** Brake cut motor [11:55:13]Read from MH i2c: 01 [11:55:13]MH_I2C_Read... [11:55:13]*** Stop cut motor [11:55:13]*** Cut end [11:55:13]Read from MH i2c: 01 07 00 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: 01 07 00 F6 1F 00 00 00 00 00 FF 0F 2A [11:55:13]process_action close_receipt done [11:55:13]requested_data is exist [11:55:13]produce_requested_data [11:55:13]requested_item fm.sn is exist - process it [11:55:13]wFMCommunicate request_size=4 [11:55:13]MH_SAM_APDU [11:55:13]CAPDU: 80 11 00 00 [11:55:13]Write to MH i2c: E2 08 00 F7 1F 80 11 00 00 00 00 00 00 90 [11:55:13]Write i2c OK [11:55:13]MH_I2C_Read... [11:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:13]Read from MH i2c: E2 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: E2 17 00 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: E2 17 00 F7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E2 [11:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:55:13]wFMCommunicate OK [11:55:13]requested_item fd.num is exist - process it [11:55:13]SAM_PROTO_GetFieldsCounters [11:55:13]wFMCommunicate request_size=4 [11:55:13]MH_SAM_APDU [11:55:13]CAPDU: 80 13 00 00 [11:55:13]Write to MH i2c: E2 08 00 F8 1F 80 13 00 00 00 00 00 00 93 [11:55:13]Write i2c OK [11:55:13]MH_I2C_Read... [11:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:13]Read from MH i2c: E2 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: E2 62 00 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: E2 62 00 F8 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 92 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [11:55:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 92 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:13]wFMCommunicate OK [11:55:13]SAM_PROTO_GetFieldsCounters done [11:55:13]requested_item shift.num is exist - process it [11:55:13]requested_item shift.opened is exist - process it [11:55:13]req_shift_opened [11:55:13]FM_GetShiftState [11:55:13]SAM_PROTO_GetShiftState [11:55:13]wFMCommunicate request_size=4 [11:55:13]MH_SAM_APDU [11:55:13]CAPDU: 80 13 01 00 [11:55:13]Write to MH i2c: E2 08 00 F9 1F 80 13 01 00 00 00 00 00 95 [11:55:13]Write i2c OK [11:55:13]MH_I2C_Read... [11:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:13]Read from MH i2c: E2 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: E2 0E 00 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: E2 0E 00 F9 1F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 D6 [11:55:13]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [11:55:13]wFMCommunicate OK [11:55:13]SAM_PROTO_GetShiftState done [11:55:13]FM_GetShiftState done [11:55:13]req_shift_opened done [11:55:13]requested_item shift.open_date is exist - process it [11:55:13]req_shift_open_date [11:55:13]req_shift_open_date done [11:55:13]produce_requested_data done [11:55:13]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64146,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [11:55:13]process_action_free close_receipt [11:55:13]json_value_free [11:55:13]json_value_free done [11:55:13]process_json_proto returns [11:55:13]Send response to host [11:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64146,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [11:55:13]free response buf [11:55:13]execute_script done [11:55:13]execute_script returns [11:55:13]free content buf [11:55:13]Sock 10.Close socket [11:55:13]Sock 10.Thread stoped [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:15]accept exits with 8 [12:05:15]New connection [12:05:15]New thread 3067276644 created [12:05:15]Thread 3067133284 joined [12:05:15]Waiting for new connection... [12:05:15] Sock 8.Parse request [12:05:15]Sock 8.Check first char [12:05:15]Sock 8.First char is OK [12:05:15]request: POST /json_proto HTTP/1.0 [12:05:15]Method: POST [12:05:15]URL: /json_proto [12:05:15]Method is POST - this is cgi request [12:05:15]url: /json_proto [12:05:15]query_string will be loaded in cgi processing [12:05:15]execute_cgi json_proto POST (null) [12:05:15]execute_cgi path=json_proto method=POST [12:05:15]POST find Content-Length [12:05:15]Host: 172.17.60.69:8080 [12:05:15]Content-Length: 869 [12:05:15]Content-Type: application/json [12:05:15] [12:05:15]POST finish read [12:05:15]Found Content-Length = 869 [12:05:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73680", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:15]execute_script... [12:05: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)73680", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:15]POST & json_proto [12:05:15]process_json_proto [12:05:15]json parsed OK: [12:05:15]protocol is kg_v1.0 [12:05:15]action value=close_receipt [12:05:15]process_action close_receipt [12:05:15]cmd_close_receipt [12:05:15]MH_GetDate [12:05:15]Write to MH i2c: F0 00 00 FA 1F 08 [12:05:15]Write i2c OK [12:05:15]MH_I2C_Read... [12:05:15]Read from MH i2c: F0 [12:05:15]MH_I2C_Read... [12:05:15]Read from MH i2c: F0 09 00 [12:05:15]MH_I2C_Read... [12:05:15]Read from MH i2c: F0 09 00 FA 1F 00 7E 54 60 66 D2 83 5F 66 C3 [12:05:15]GetLastDocTimeStamp 1717588512 [12:05:15]current date 1717589118 [12:05:15]FM_GetShiftState [12:05:15]SAM_PROTO_GetShiftState [12:05:15]wFMCommunicate request_size=4 [12:05:15]MH_SAM_APDU [12:05:15]CAPDU: 80 13 01 00 [12:05:15]Write to MH i2c: E2 08 00 FB 1F 80 13 01 00 00 00 00 00 97 [12:05:15]Write i2c OK [12:05:15]MH_I2C_Read... [12:05:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:15]Read from MH i2c: E2 [12:05:15]MH_I2C_Read... [12:05:15]Read from MH i2c: E2 0E 00 [12:05:15]MH_I2C_Read... [12:05:15]Read from MH i2c: E2 0E 00 FB 1F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 D8 [12:05:15]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:05:15]wFMCommunicate OK [12:05:15]SAM_PROTO_GetShiftState done [12:05:15]FM_GetShiftState done [12:05:15]opened in 1717545925 [12:05:15]opened+sec_in_day 1717632325 [12:05:15]quantity*price = 11000 [12:05:15]sum+1 = 11001 [12:05:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 0.00 Безнал.: 110.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 67 05.06.2024 12:05 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64147 ФПД: 21041308774135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T120518&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64147&fm=21041308774135&tin=02508201610067®Number=0000000000092737&sum=11000 0 [12:05:16]StoreToDocumentArchive [12:05:16]shift 375 fd 64147 [12:05:16]save to /storage/0375/doc_00064147 [12:05:16]save last doc name /storage/0375/doc_00064147 to /storage/kkm_last_doc_name [12:05:16]save OK [12:05:16]Clear old archive folders... [12:05:16]ProcessDocumentItem done err = 0, tmpTLVsize=293 [12:05:16]tlvbuf is B6FA77F0 [12:05:16]SAM_PROTO_ClearQueue [12:05:16]wFMCommunicate request_size=4 [12:05:16]MH_SAM_APDU [12:05:16]CAPDU: 80 09 00 00 [12:05:16]Write to MH i2c: E2 08 00 08 20 80 09 00 00 00 00 00 00 9A [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 [12:05:16]MH_I2C_Read... [12:05:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:16]Read from MH i2c: E2 03 00 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 03 00 08 20 00 90 00 9C [12:05:16]RAPDU: 90 00 [12:05:16]wFMCommunicate OK [12:05:16]SAM_PROTO_ClearQueue done [12:05:16]KKMCreateOFDPacket [12:05:16]OFDProtocolAddRootSTLVToBuf [12:05:16]FM_MakeSignedData [12:05:16]FM_MakeSignedData [12:05:16]SAM_PROTO_SignData [12:05:16]wFMCommunicate request_size=4 [12:05:16]MH_SAM_APDU [12:05:16]CAPDU: 80 0D 01 02 [12:05:16]Write to MH i2c: E2 08 00 09 20 80 0D 01 02 00 00 00 00 A2 [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:16]Read from MH i2c: E2 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 03 00 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 03 00 09 20 00 90 00 9D [12:05:16]RAPDU: 90 00 [12:05:16]wFMCommunicate OK [12:05:16]wFMCommunicate request_size=255 [12:05:16]MH_SAM_APDU [12:05:16]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7E 54 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [12:05:16]Write to MH i2c: E2 02 01 0A 20 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7E 54 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 0F [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:16]Read from MH i2c: E2 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 03 00 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 03 00 0A 20 00 90 00 9E [12:05:16]RAPDU: 90 00 [12:05:16]wFMCommunicate OK [12:05:16]wFMCommunicate request_size=52 [12:05:16]MH_SAM_APDU [12:05:16]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 93 FA 00 00 35 04 06 00 13 23 0F BC 2E F7 [12:05:16]Write to MH i2c: E2 37 00 0B 20 80 0D 02 02 2F 00 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 93 FA 00 00 35 04 06 00 13 23 0F BC 2E F7 00 00 1D [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:16]Read from MH i2c: E2 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 03 00 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 03 00 0B 20 00 90 00 9F [12:05:16]RAPDU: 90 00 [12:05:16]wFMCommunicate OK [12:05:16]wFMCommunicate request_size=4 [12:05:16]MH_SAM_APDU [12:05:16]CAPDU: 80 0D 03 02 [12:05:16]Write to MH i2c: E2 08 00 0C 20 80 0D 03 02 00 00 00 00 A7 [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:16]Read from MH i2c: E2 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 0B 00 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 0B 00 0C 20 00 B3 20 E5 2D BE 1D D4 D5 90 00 11 [12:05:16]RAPDU: B3 20 E5 2D BE 1D D4 D5 90 00 [12:05:16]wFMCommunicate OK [12:05:16]SAM_PROTO_SignData done [12:05:16]FM_MakeSignedData done [12:05:16]CreateOFDProtocolMessage [12:05:16]wFMCommunicate request_size=4 [12:05:16]MH_SAM_APDU [12:05:16]CAPDU: 80 11 00 00 [12:05:16]Write to MH i2c: E2 08 00 0D 20 80 11 00 00 00 00 00 00 A7 [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:16]Read from MH i2c: E2 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 17 00 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 17 00 0D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F9 [12:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:05:16]wFMCommunicate OK [12:05:16]CreateOFDProtocolMessage done [12:05:16]OFDSenderStorePacket 64147 [12:05:16]StoreOFDPacket docnum=64147 [12:05:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 AC 48 31 01 41 BA 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7E 54 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 93 FA 00 00 35 04 06 00 13 23 0F BC 2E F7 B3 20 E5 2D BE 1D D4 D5 [12:05:16]CheckFolder [12:05:16]dirname=/storage/ofd_packets [12:05:16]CheckFolder done [12:05:16]ProducePacketName [12:05:16]name=ofd_packets/00064147 [12:05:16]NVStorageSaveData ofd_packets/00064147 [12:05:16]File name is /storage/ofd_packets/00064147 [12:05:16]Write 343 bytes [12:05:16]NVStorageSaveData done [12:05:16]OFDSenderStorePacket done [12:05:16]KKMCreateOFDPacket done [12:05:16]NVStorageSaveData kkm_last_timestamp [12:05:16]File name is /storage/kkm_last_timestamp [12:05:16]Write 4 bytes [12:05:16]NVStorageSaveData done [12:05:16]ExternCall_PrintAddStr [12:05:16]wPrintStart [12:05:16]Write to MH i2c: 01 00 00 0E 20 2E [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: 01 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: 01 07 00 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: 01 07 00 0E 20 00 00 00 00 00 FF 0F 43 [12:05:16]RasterBufferAndPrint [12:05:16]line Счет N : (3)73680 [12:05:16]line ИНН: 02508201610067 [12:05:16]line Контрольно-Кассовый Чек [12:05:16]line ПРОДАЖА [12:05:16]line Товар: 4870022003305 [12:05:16]line Напиток Gorilla эн нат ж/б 0,5/0,45л [12:05:16]line 1.000 * 110.00 [12:05:16]line = 110.00 [12:05:16]line НДС 12% НСП 1% [12:05:16]line > о реализуемом товаре [12:05:16]line ИТОГО: 110.00 [12:05:16]line НСП 1% : 0.97 [12:05:16]line НДС 12% : 11.68 [12:05:16]line Наличными: 0.00 [12:05:16]line Безнал.: 110.00 [12:05:16]line Место: АЗС № 117 "Партнер Нефть" [12:05:16]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:05:16]line СНО: Общий режим [12:05:16]line Чек 67 05.06.2024 12:05 [12:05:16]line Смена: 375 ФФД: 1.0 [12:05:16]line ЗНМ: 0300000031 [12:05:16]line РНМ: 0000000000092737 [12:05:16]line Версия ККМ: 001 [12:05:16]line Платежная система: АКБ Кыргызстан [12:05:16]line ФМ: 0000000000875074 [12:05:16]line ФД: 64147 [12:05:16]line ФПД: 21041308774135 [12:05:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T120518&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64147&fm=21041308774135&tin=02508201610067®Number=0000000000092737&sum=11000 [12:05:17]line 0 [12:05:17]OFD Sender: Processing packet 64147 [packets to send 14, broken 13] [12:05:17]ProducePacketName [12:05:17]name=ofd_packets/00064147 [12:05:17]OFD Sender: To server: pG, [12:05:17]CommunicateWithHost lk.salyk.kg:30040 [12:05:17]ConnectInit lk.salyk.kg [12:05:17]written 0, free lines is 4095 [12:05:17]Connected sock=10 [12:05:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 AC 48 31 01 41 BA 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7E 54 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 93 FA 00 00 35 04 06 00 13 23 0F BC 2E F7 B3 20 E5 2D BE 1D D4 D5 [12:05:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 B7 18 47 00 B8 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 93 FA 00 00 F4 03 04 00 8A 00 60 66 B6 04 01 00 00 87 BA 9A 5F B8 57 AF 42 [12:05:17]CommunicateWithHost err = 0 [12:05:17]CheckOFDResponse [12:05:17]1017 (14) - 77093643461234 [12:05:17]1041 (16) - 0000000000875074 [12:05:17]1040 (4) - 64147 [12:05:17]1012 (4) - 05.06.2024 06:07 [12:05:17]1206 (1) - 0 [12:05:17]OFD Sender: Remove packet 64147 [12:05:17]ProducePacketName [12:05:17]name=ofd_packets/00064147 [12:05:17]NVStorageDeleteData [12:05:17]Write to MH i2c: 01 00 00 39 20 59 [12:05:17]Write i2c OK [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: 01 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: 01 07 00 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: 01 07 00 39 20 00 00 00 00 00 D6 0C 42 [12:05:17]RasterBufferAndPrint [12:05:17]line [12:05:17]line [12:05:17]line [12:05:17]line [12:05:17]line [12:05:17]written 0, free lines is 3294 [12:05:17]MH_Cut [12:05:17]Write to MH i2c: D1 01 00 40 20 01 32 [12:05:17]Write i2c OK [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: D1 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: D1 01 00 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: D1 01 00 40 20 00 31 [12:05:17]Write to MH i2c: 01 00 00 41 20 61 [12:05:17]Write i2c OK [12:05:17]MH_I2C_Read... [12:05:17]OFD Sender: No OFD packet to send [12:05:18]*** Cut start [12:05:18]*** Partial cut [12:05:18]*** CUTSNS_PIN = 1 [12:05:18]*** CUTSNS_PIN = 0 [12:05:18]*** Brake cut motor [12:05:19]Read from MH i2c: 01 [12:05:19]MH_I2C_Read... [12:05:19]*** Stop cut motor [12:05:19]*** Cut end [12:05:19]Read from MH i2c: 01 07 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: 01 07 00 41 20 00 00 00 00 00 FF 0F 76 [12:05:19]process_action close_receipt done [12:05:19]requested_data is exist [12:05:19]produce_requested_data [12:05:19]requested_item fm.sn is exist - process it [12:05:19]wFMCommunicate request_size=4 [12:05:19]MH_SAM_APDU [12:05:19]CAPDU: 80 11 00 00 [12:05:19]Write to MH i2c: E2 08 00 42 20 80 11 00 00 00 00 00 00 DC [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:19]Read from MH i2c: E2 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 17 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 17 00 42 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 2E [12:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:05:19]wFMCommunicate OK [12:05:19]requested_item fd.num is exist - process it [12:05:19]SAM_PROTO_GetFieldsCounters [12:05:19]wFMCommunicate request_size=4 [12:05:19]MH_SAM_APDU [12:05:19]CAPDU: 80 13 00 00 [12:05:19]Write to MH i2c: E2 08 00 43 20 80 13 00 00 00 00 00 00 DF [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:19]Read from MH i2c: E2 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 62 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 62 00 43 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 93 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [12:05:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 93 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:19]wFMCommunicate OK [12:05:19]SAM_PROTO_GetFieldsCounters done [12:05:19]requested_item shift.num is exist - process it [12:05:19]requested_item shift.opened is exist - process it [12:05:19]req_shift_opened [12:05:19]FM_GetShiftState [12:05:19]SAM_PROTO_GetShiftState [12:05:19]wFMCommunicate request_size=4 [12:05:19]MH_SAM_APDU [12:05:19]CAPDU: 80 13 01 00 [12:05:19]Write to MH i2c: E2 08 00 44 20 80 13 01 00 00 00 00 00 E1 [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:19]Read from MH i2c: E2 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 0E 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 0E 00 44 20 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 22 [12:05:19]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:05:19]wFMCommunicate OK [12:05:19]SAM_PROTO_GetShiftState done [12:05:19]FM_GetShiftState done [12:05:19]req_shift_opened done [12:05:19]requested_item shift.open_date is exist - process it [12:05:19]req_shift_open_date [12:05:19]req_shift_open_date done [12:05:19]produce_requested_data done [12:05:19]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64147,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [12:05:19]process_action_free close_receipt [12:05:19]json_value_free [12:05:19]json_value_free done [12:05:19]process_json_proto returns [12:05:19]Send response to host [12:05:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64147,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [12:05:19]free response buf [12:05:19]execute_script done [12:05:19]execute_script returns [12:05:19]free content buf [12:05:19]Sock 8.Close socket [12:05:19]Sock 8.Thread stoped [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:15]accept exits with 9 [12:06:15]New connection [12:06:15]New thread 3067133284 created [12:06:15]Thread 3067276644 joined [12:06:15]Waiting for new connection... [12:06:15] Sock 9.Parse request [12:06:15]Sock 9.Check first char [12:06:15]Sock 9.First char is OK [12:06:15]request: POST /json_proto HTTP/1.0 [12:06:15]Method: POST [12:06:15]URL: /json_proto [12:06:15]Method is POST - this is cgi request [12:06:15]url: /json_proto [12:06:15]query_string will be loaded in cgi processing [12:06:15]execute_cgi json_proto POST (null) [12:06:15]execute_cgi path=json_proto method=POST [12:06:15]POST find Content-Length [12:06:15]Host: 172.17.60.69:8080 [12:06:15]Content-Length: 677 [12:06:15]Content-Type: application/json [12:06:15] [12:06:15]POST finish read [12:06:15]Found Content-Length = 677 [12:06:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:15]execute_script... [12:06:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:15]POST & json_proto [12:06:15]process_json_proto [12:06:15]json parsed OK: [12:06:15]protocol is kg_v1.0 [12:06:15]action value=close_receipt [12:06:15]process_action close_receipt [12:06:15]cmd_close_receipt [12:06:15]MH_GetDate [12:06:15]Write to MH i2c: F0 00 00 45 20 54 [12:06:15]Write i2c OK [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: F0 [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: F0 09 00 [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: F0 09 00 45 20 00 BB 54 60 66 D2 83 5F 66 4C [12:06:15]GetLastDocTimeStamp 1717589118 [12:06:15]current date 1717589179 [12:06:15]FM_GetShiftState [12:06:15]SAM_PROTO_GetShiftState [12:06:15]wFMCommunicate request_size=4 [12:06:15]MH_SAM_APDU [12:06:15]CAPDU: 80 13 01 00 [12:06:15]Write to MH i2c: E2 08 00 46 20 80 13 01 00 00 00 00 00 E3 [12:06:15]Write i2c OK [12:06:15]MH_I2C_Read... [12:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:15]Read from MH i2c: E2 [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: E2 0E 00 [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: E2 0E 00 46 20 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 24 [12:06:15]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:06:15]wFMCommunicate OK [12:06:15]SAM_PROTO_GetShiftState done [12:06:15]FM_GetShiftState done [12:06:15]opened in 1717545925 [12:06:15]opened+sec_in_day 1717632325 [12:06:15]quantity*price = 60009 [12:06:15]sum+1 = 60010 [12:06:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 68 05.06.2024 12:06 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64148 ФПД: 66784200027287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T120619&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64148&fm=66784200027287&tin=02508201610067®Number=0000000000092737&sum=60000 [12:06:16]StoreToDocumentArchive [12:06:16]shift 375 fd 64148 [12:06:16]save to /storage/0375/doc_00064148 [12:06:16]save last doc name /storage/0375/doc_00064148 to /storage/kkm_last_doc_name [12:06:16]save OK [12:06:16]Clear old archive folders... [12:06:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:16]tlvbuf is 0101DE20 [12:06:16]SAM_PROTO_ClearQueue [12:06:16]wFMCommunicate request_size=4 [12:06:16]MH_SAM_APDU [12:06:16]CAPDU: 80 09 00 00 [12:06:16]Write to MH i2c: E2 08 00 53 20 80 09 00 00 00 00 00 00 E5 [12:06:16]Write i2c OK [12:06:16]MH_I2C_Read... [12:06:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 53 20 00 90 00 E7 [12:06:17]RAPDU: 90 00 [12:06:17]wFMCommunicate OK [12:06:17]SAM_PROTO_ClearQueue done [12:06:17]KKMCreateOFDPacket [12:06:17]OFDProtocolAddRootSTLVToBuf [12:06:17]FM_MakeSignedData [12:06:17]FM_MakeSignedData [12:06:17]SAM_PROTO_SignData [12:06:17]wFMCommunicate request_size=4 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 0D 01 02 [12:06:17]Write to MH i2c: E2 08 00 54 20 80 0D 01 02 00 00 00 00 ED [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 54 20 00 90 00 E8 [12:06:17]RAPDU: 90 00 [12:06:17]wFMCommunicate OK [12:06:17]wFMCommunicate request_size=255 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BB 54 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 94 FA 00 00 35 04 06 00 3C [12:06:17]Write to MH i2c: E2 02 01 55 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BB 54 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 94 FA 00 00 35 04 06 00 3C 00 00 B6 [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 55 20 00 90 00 E9 [12:06:17]RAPDU: 90 00 [12:06:17]wFMCommunicate OK [12:06:17]wFMCommunicate request_size=10 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 0D 02 02 05 BD 68 84 EC 97 [12:06:17]Write to MH i2c: E2 0D 00 56 20 80 0D 02 02 05 00 BD 68 84 EC 97 00 00 26 [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 56 20 00 90 00 EA [12:06:17]RAPDU: 90 00 [12:06:17]wFMCommunicate OK [12:06:17]wFMCommunicate request_size=4 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 0D 03 02 [12:06:17]Write to MH i2c: E2 08 00 57 20 80 0D 03 02 00 00 00 00 F2 [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 0B 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 0B 00 57 20 00 4F CD 73 26 D2 34 15 53 90 00 16 [12:06:17]RAPDU: 4F CD 73 26 D2 34 15 53 90 00 [12:06:17]wFMCommunicate OK [12:06:17]SAM_PROTO_SignData done [12:06:17]FM_MakeSignedData done [12:06:17]CreateOFDProtocolMessage [12:06:17]wFMCommunicate request_size=4 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 11 00 00 [12:06:17]Write to MH i2c: E2 08 00 58 20 80 11 00 00 00 00 00 00 F2 [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 17 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 17 00 58 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 44 [12:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:06:17]wFMCommunicate OK [12:06:17]CreateOFDProtocolMessage done [12:06:17]OFDSenderStorePacket 64148 [12:06:17]StoreOFDPacket docnum=64148 [12:06:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 30 47 07 01 F2 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BB 54 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 94 FA 00 00 35 04 06 00 3C BD 68 84 EC 97 4F CD 73 26 D2 34 15 53 [12:06:17]CheckFolder [12:06:17]dirname=/storage/ofd_packets [12:06:17]CheckFolder done [12:06:17]ProducePacketName [12:06:17]name=ofd_packets/00064148 [12:06:17]NVStorageSaveData ofd_packets/00064148 [12:06:17]File name is /storage/ofd_packets/00064148 [12:06:17]Write 301 bytes [12:06:17]NVStorageSaveData done [12:06:17]OFDSenderStorePacket done [12:06:17]KKMCreateOFDPacket done [12:06:17]NVStorageSaveData kkm_last_timestamp [12:06:17]File name is /storage/kkm_last_timestamp [12:06:17]Write 4 bytes [12:06:17]NVStorageSaveData done [12:06:17]ExternCall_PrintAddStr [12:06:17]wPrintStart [12:06:17]Write to MH i2c: 01 00 00 59 20 79 [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: 01 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: 01 07 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: 01 07 00 59 20 00 00 00 00 00 FF 0F 8E [12:06:17]RasterBufferAndPrint [12:06:17]line Счет N : (1)545650 [12:06:17]line ИНН: 02508201610067 [12:06:17]line Контрольно-Кассовый Чек [12:06:17]line ПРОДАЖА [12:06:17]line ТРК (МРК, ГНК) : 42 [12:06:17]line Товар: 2710124130 [12:06:17]line Аи-92-К-5 [12:06:17]line 8.970 * 66.90 [12:06:17]line = 600.09 [12:06:17]line НДС 12% НСП 1% [12:06:17]line > о реализуемом товаре [12:06:17]line ОКРУГЛЕНИЕ: -0.09 [12:06:17]line ИТОГО: 600.00 [12:06:17]line Внесено: 600.00 [12:06:17]line СДАЧА: 0.00 [12:06:17]line НСП 1% : 5.31 [12:06:17]line НДС 12% : 63.73 [12:06:17]line Наличными: 600.00 [12:06:17]line Безнал.: 0.00 [12:06:17]line Место: АЗС № 117 "Партнер Нефть" [12:06:17]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:06:17]line СНО: Общий режим [12:06:17]line Чек 68 05.06.2024 12:06 [12:06:17]line Смена: 375 ФФД: 1.0 [12:06:17]line ЗНМ: 0300000031 [12:06:17]line РНМ: 0000000000092737 [12:06:17]line Версия ККМ: 001 [12:06:17]line ФМ: 0000000000875074 [12:06:17]line ФД: 64148 [12:06:17]line ФПД: 66784200027287 [12:06:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T120619&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64148&fm=66784200027287&tin=02508201610067®Number=0000000000092737&sum=60000 [12:06:17]written 0, free lines is 4095 [12:06:17]OFD Sender: Processing packet 64148 [packets to send 14, broken 13] [12:06:17]ProducePacketName [12:06:17]name=ofd_packets/00064148 [12:06:17]OFD Sender: To server: pG, [12:06:17]CommunicateWithHost lk.salyk.kg:30040 [12:06:17]ConnectInit lk.salyk.kg [12:06:17]Connected sock=10 [12:06:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 30 47 07 01 F2 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BB 54 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 94 FA 00 00 35 04 06 00 3C BD 68 84 EC 97 4F CD 73 26 D2 34 15 53 [12:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 98 AB 47 00 DA EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 94 FA 00 00 F4 03 04 00 C6 00 60 66 B6 04 01 00 00 A7 D4 A8 FA C7 56 C7 7F [12:06:17]CommunicateWithHost err = 0 [12:06:17]CheckOFDResponse [12:06:17]1017 (14) - 77093643461234 [12:06:17]1041 (16) - 0000000000875074 [12:06:17]1040 (4) - 64148 [12:06:17]1012 (4) - 05.06.2024 06:08 [12:06:17]1206 (1) - 0 [12:06:17]OFD Sender: Remove packet 64148 [12:06:17]ProducePacketName [12:06:17]name=ofd_packets/00064148 [12:06:17]NVStorageDeleteData [12:06:17]Write to MH i2c: 01 00 00 84 20 A4 [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: 01 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: 01 07 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: 01 07 00 84 20 00 00 00 00 00 E4 0C 9B [12:06:17]RasterBufferAndPrint [12:06:17]line [12:06:17]line [12:06:17]line [12:06:17]line [12:06:17]line [12:06:17]written 0, free lines is 3306 [12:06:17]MH_Cut [12:06:17]Write to MH i2c: D1 01 00 8B 20 01 7D [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: D1 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: D1 01 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: D1 01 00 8B 20 00 7C [12:06:17]Write to MH i2c: 01 00 00 8C 20 AC [12:06:18]Write i2c OK [12:06:18]MH_I2C_Read... [12:06:18]OFD Sender: No OFD packet to send [12:06:18]*** Cut start [12:06:18]*** Partial cut [12:06:18]*** CUTSNS_PIN = 1 [12:06:18]*** CUTSNS_PIN = 0 [12:06:19]*** Brake cut motor [12:06:19]Read from MH i2c: 01 [12:06:19]MH_I2C_Read... [12:06:19]*** Stop cut motor [12:06:19]*** Cut end [12:06:19]Read from MH i2c: 01 07 00 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: 01 07 00 8C 20 00 00 00 00 00 FF 0F C1 [12:06:19]process_action close_receipt done [12:06:19]requested_data is exist [12:06:19]produce_requested_data [12:06:19]requested_item fm.sn is exist - process it [12:06:19]wFMCommunicate request_size=4 [12:06:19]MH_SAM_APDU [12:06:19]CAPDU: 80 11 00 00 [12:06:19]Write to MH i2c: E2 08 00 8D 20 80 11 00 00 00 00 00 00 27 [12:06:19]Write i2c OK [12:06:19]MH_I2C_Read... [12:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:19]Read from MH i2c: E2 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: E2 17 00 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: E2 17 00 8D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 79 [12:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:06:19]wFMCommunicate OK [12:06:19]requested_item fd.num is exist - process it [12:06:19]SAM_PROTO_GetFieldsCounters [12:06:19]wFMCommunicate request_size=4 [12:06:19]MH_SAM_APDU [12:06:19]CAPDU: 80 13 00 00 [12:06:19]Write to MH i2c: E2 08 00 8E 20 80 13 00 00 00 00 00 00 2A [12:06:19]Write i2c OK [12:06:19]MH_I2C_Read... [12:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:19]Read from MH i2c: E2 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: E2 62 00 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: E2 62 00 8E 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 94 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [12:06:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 94 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:19]wFMCommunicate OK [12:06:19]SAM_PROTO_GetFieldsCounters done [12:06:19]requested_item shift.num is exist - process it [12:06:19]requested_item shift.opened is exist - process it [12:06:19]req_shift_opened [12:06:19]FM_GetShiftState [12:06:19]SAM_PROTO_GetShiftState [12:06:19]wFMCommunicate request_size=4 [12:06:19]MH_SAM_APDU [12:06:19]CAPDU: 80 13 01 00 [12:06:19]Write to MH i2c: E2 08 00 8F 20 80 13 01 00 00 00 00 00 2C [12:06:19]Write i2c OK [12:06:19]MH_I2C_Read... [12:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:19]Read from MH i2c: E2 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: E2 0E 00 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: E2 0E 00 8F 20 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 6D [12:06:19]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:06:19]wFMCommunicate OK [12:06:19]SAM_PROTO_GetShiftState done [12:06:19]FM_GetShiftState done [12:06:19]req_shift_opened done [12:06:19]requested_item shift.open_date is exist - process it [12:06:19]req_shift_open_date [12:06:19]req_shift_open_date done [12:06:19]produce_requested_data done [12:06:19]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64148,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [12:06:19]process_action_free close_receipt [12:06:19]json_value_free [12:06:19]json_value_free done [12:06:19]process_json_proto returns [12:06:19]Send response to host [12:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64148,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [12:06:19]free response buf [12:06:19]execute_script done [12:06:19]execute_script returns [12:06:19]free content buf [12:06:19]Sock 9.Close socket [12:06:19]Sock 9.Thread stoped [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]accept exits with 8 [12:11:03]New connection [12:11:03]New thread 3067276644 created [12:11:03]Thread 3067133284 joined [12:11:03]Waiting for new connection... [12:11:03] Sock 8.Parse request [12:11:03]Sock 8.Check first char [12:11:03]Sock 8.First char is OK [12:11:03]request: POST /json_proto HTTP/1.0 [12:11:03]Method: POST [12:11:03]URL: /json_proto [12:11:03]Method is POST - this is cgi request [12:11:03]url: /json_proto [12:11:03]query_string will be loaded in cgi processing [12:11:03]execute_cgi json_proto POST (null) [12:11:03]execute_cgi path=json_proto method=POST [12:11:03]POST find Content-Length [12:11:03]Host: 172.17.60.69:8080 [12:11:03]Content-Length: 645 [12:11:03]Content-Type: application/json [12:11:03] [12:11:03]POST finish read [12:11:03]Found Content-Length = 645 [12:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73681", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:03]execute_script... [12:11:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73681", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:03]POST & json_proto [12:11:03]process_json_proto [12:11:03]json parsed OK: [12:11:03]protocol is kg_v1.0 [12:11:03]action value=close_receipt [12:11:03]process_action close_receipt [12:11:03]cmd_close_receipt [12:11:03]MH_GetDate [12:11:03]Write to MH i2c: F0 00 00 90 20 9F [12:11:03]Write i2c OK [12:11:03]MH_I2C_Read... [12:11:03]Read from MH i2c: F0 [12:11:03]MH_I2C_Read... [12:11:03]Read from MH i2c: F0 09 00 [12:11:03]MH_I2C_Read... [12:11:03]Read from MH i2c: F0 09 00 90 20 00 DA 55 60 66 D2 83 5F 66 B7 [12:11:03]GetLastDocTimeStamp 1717589179 [12:11:03]current date 1717589466 [12:11:03]FM_GetShiftState [12:11:03]SAM_PROTO_GetShiftState [12:11:03]wFMCommunicate request_size=4 [12:11:03]MH_SAM_APDU [12:11:03]CAPDU: 80 13 01 00 [12:11:03]Write to MH i2c: E2 08 00 91 20 80 13 01 00 00 00 00 00 2E [12:11:03]Write i2c OK [12:11:03]MH_I2C_Read... [12:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:03]Read from MH i2c: E2 [12:11:03]MH_I2C_Read... [12:11:03]Read from MH i2c: E2 0E 00 [12:11:03]MH_I2C_Read... [12:11:03]Read from MH i2c: E2 0E 00 91 20 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 6F [12:11:03]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:11:03]wFMCommunicate OK [12:11:03]SAM_PROTO_GetShiftState done [12:11:03]FM_GetShiftState done [12:11:03]opened in 1717545925 [12:11:03]opened+sec_in_day 1717632325 [12:11:03]quantity*price = 12500 [12:11:03]sum+1 = 12501 [12:11:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 69 05.06.2024 12:11 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64149 ФПД: 30775576432218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T121106&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64149&fm=30775576432218&tin=02508201610067®Number=0000000000092737&sum=12500 0 [12:11:04]StoreToDocumentArchive [12:11:04]shift 375 fd 64149 [12:11:04]save to /storage/0375/doc_00064149 [12:11:04]save last doc name /storage/0375/doc_00064149 to /storage/kkm_last_doc_name [12:11:04]save OK [12:11:04]Clear old archive folders... [12:11:04]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:11:04]tlvbuf is 00FE9F80 [12:11:04]SAM_PROTO_ClearQueue [12:11:04]wFMCommunicate request_size=4 [12:11:04]MH_SAM_APDU [12:11:04]CAPDU: 80 09 00 00 [12:11:04]Write to MH i2c: E2 08 00 9E 20 80 09 00 00 00 00 00 00 30 [12:11:04]Write i2c OK [12:11:04]MH_I2C_Read... [12:11:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:04]Read from MH i2c: E2 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 03 00 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 03 00 9E 20 00 90 00 32 [12:11:04]RAPDU: 90 00 [12:11:04]wFMCommunicate OK [12:11:04]SAM_PROTO_ClearQueue done [12:11:04]KKMCreateOFDPacket [12:11:04]OFDProtocolAddRootSTLVToBuf [12:11:04]FM_MakeSignedData [12:11:04]FM_MakeSignedData [12:11:04]SAM_PROTO_SignData [12:11:04]wFMCommunicate request_size=4 [12:11:04]MH_SAM_APDU [12:11:04]CAPDU: 80 0D 01 02 [12:11:04]Write to MH i2c: E2 08 00 9F 20 80 0D 01 02 00 00 00 00 38 [12:11:04]Write i2c OK [12:11:04]MH_I2C_Read... [12:11:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:04]Read from MH i2c: E2 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 03 00 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 03 00 9F 20 00 90 00 33 [12:11:04]RAPDU: 90 00 [12:11:04]wFMCommunicate OK [12:11:04]wFMCommunicate request_size=255 [12:11:04]MH_SAM_APDU [12:11:04]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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 DA 55 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [12:11:04]Write to MH i2c: E2 02 01 A0 20 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 DA 55 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 EB [12:11:04]Write i2c OK [12:11:04]MH_I2C_Read... [12:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:04]Read from MH i2c: E2 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 03 00 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 03 00 A0 20 00 90 00 34 [12:11:04]RAPDU: 90 00 [12:11:04]wFMCommunicate OK [12:11:04]wFMCommunicate request_size=41 [12:11:04]MH_SAM_APDU [12:11:04]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 95 FA 00 00 35 04 06 00 1B FD 7F 4D 0E 5A [12:11:04]Write to MH i2c: E2 2C 00 A1 20 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 95 FA 00 00 35 04 06 00 1B FD 7F 4D 0E 5A 00 00 E4 [12:11:04]Write i2c OK [12:11:04]MH_I2C_Read... [12:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:04]Read from MH i2c: E2 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 03 00 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 03 00 A1 20 00 90 00 35 [12:11:04]RAPDU: 90 00 [12:11:04]wFMCommunicate OK [12:11:04]wFMCommunicate request_size=4 [12:11:04]MH_SAM_APDU [12:11:04]CAPDU: 80 0D 03 02 [12:11:04]Write to MH i2c: E2 08 00 A2 20 80 0D 03 02 00 00 00 00 3D [12:11:04]Write i2c OK [12:11:04]MH_I2C_Read... [12:11:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:04]Read from MH i2c: E2 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 0B 00 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 0B 00 A2 20 00 FD FE 0A 92 72 51 51 F1 90 00 DA [12:11:04]RAPDU: FD FE 0A 92 72 51 51 F1 90 00 [12:11:04]wFMCommunicate OK [12:11:04]SAM_PROTO_SignData done [12:11:04]FM_MakeSignedData done [12:11:04]CreateOFDProtocolMessage [12:11:04]wFMCommunicate request_size=4 [12:11:04]MH_SAM_APDU [12:11:04]CAPDU: 80 11 00 00 [12:11:04]Write to MH i2c: E2 08 00 A3 20 80 11 00 00 00 00 00 00 3D [12:11:04]Write i2c OK [12:11:04]MH_I2C_Read... [12:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:04]Read from MH i2c: E2 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 17 00 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 17 00 A3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8F [12:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:11:04]wFMCommunicate OK [12:11:04]CreateOFDProtocolMessage done [12:11:04]OFDSenderStorePacket 64149 [12:11:04]StoreOFDPacket docnum=64149 [12:11:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 66 09 26 01 3B AD 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 DA 55 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 95 FA 00 00 35 04 06 00 1B FD 7F 4D 0E 5A FD FE 0A 92 72 51 51 F1 [12:11:04]CheckFolder [12:11:04]dirname=/storage/ofd_packets [12:11:04]CheckFolder done [12:11:04]ProducePacketName [12:11:04]name=ofd_packets/00064149 [12:11:04]NVStorageSaveData ofd_packets/00064149 [12:11:04]File name is /storage/ofd_packets/00064149 [12:11:04]Write 332 bytes [12:11:04]NVStorageSaveData done [12:11:04]OFDSenderStorePacket done [12:11:04]KKMCreateOFDPacket done [12:11:04]NVStorageSaveData kkm_last_timestamp [12:11:04]File name is /storage/kkm_last_timestamp [12:11:04]Write 4 bytes [12:11:04]NVStorageSaveData done [12:11:04]ExternCall_PrintAddStr [12:11:04]wPrintStart [12:11:04]Write to MH i2c: 01 00 00 A4 20 C4 [12:11:04]Write i2c OK [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: 01 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: 01 07 00 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: 01 07 00 A4 20 00 00 00 00 00 FF 0F D9 [12:11:04]RasterBufferAndPrint [12:11:04]line Счет N : (3)73681 [12:11:04]line ИНН: 02508201610067 [12:11:04]line Контрольно-Кассовый Чек [12:11:04]line ПРОДАЖА [12:11:04]line Товар: 2000036220012 [12:11:04]line Кофе Капучино XL(GABB TRADE) [12:11:04]line 1.000 * 125.00 [12:11:04]line = 125.00 [12:11:04]line НДС 12% НСП 1% [12:11:04]line > о реализуемом товаре [12:11:04]line ИТОГО: 125.00 [12:11:04]line НСП 1% : 1.11 [12:11:04]line НДС 12% : 13.27 [12:11:04]line Наличными: 125.00 [12:11:04]line Безнал.: 0.00 [12:11:04]line Место: АЗС № 117 "Партнер Нефть" [12:11:04]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:11:04]line СНО: Общий режим [12:11:04]line Чек 69 05.06.2024 12:11 [12:11:04]line Смена: 375 ФФД: 1.0 [12:11:04]line ЗНМ: 0300000031 [12:11:04]line РНМ: 0000000000092737 [12:11:04]line Версия ККМ: 001 [12:11:04]line ФМ: 0000000000875074 [12:11:04]line ФД: 64149 [12:11:04]line ФПД: 30775576432218 [12:11:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T121106&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64149&fm=30775576432218&tin=02508201610067®Number=0000000000092737&sum=12500 [12:11:05]line 0 [12:11:05]OFD Sender: Processing packet 64149 [packets to send 14, broken 13] [12:11:05]ProducePacketName [12:11:05]name=ofd_packets/00064149 [12:11:05]OFD Sender: To server: pG, [12:11:05]CommunicateWithHost lk.salyk.kg:30040 [12:11:05]ConnectInit lk.salyk.kg [12:11:05]written 0, free lines is 4095 [12:11:05]Connected sock=10 [12:11:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 66 09 26 01 3B AD 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 DA 55 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 95 FA 00 00 35 04 06 00 1B FD 7F 4D 0E 5A FD FE 0A 92 72 51 51 F1 [12:11:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 5C DB 47 00 F1 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 95 FA 00 00 F4 03 04 00 E6 01 60 66 B6 04 01 00 00 C0 3F AE 90 64 7A AD 9B [12:11:05]CommunicateWithHost err = 0 [12:11:05]CheckOFDResponse [12:11:05]1017 (14) - 77093643461234 [12:11:05]1041 (16) - 0000000000875074 [12:11:05]1040 (4) - 64149 [12:11:05]1012 (4) - 05.06.2024 06:12 [12:11:05]1206 (1) - 0 [12:11:05]OFD Sender: Remove packet 64149 [12:11:05]ProducePacketName [12:11:05]name=ofd_packets/00064149 [12:11:05]NVStorageDeleteData [12:11:05]Write to MH i2c: 01 00 00 CD 20 ED [12:11:05]Write i2c OK [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: 01 [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: 01 07 00 [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: 01 07 00 CD 20 00 00 00 00 00 E5 0C E5 [12:11:05]RasterBufferAndPrint [12:11:05]line [12:11:05]line [12:11:05]line [12:11:05]line [12:11:05]line [12:11:05]written 0, free lines is 3307 [12:11:05]MH_Cut [12:11:05]Write to MH i2c: D1 01 00 D4 20 01 C6 [12:11:05]Write i2c OK [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: D1 [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: D1 01 00 [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: D1 01 00 D4 20 00 C5 [12:11:05]Write to MH i2c: 01 00 00 D5 20 F5 [12:11:05]Write i2c OK [12:11:05]MH_I2C_Read... [12:11:05]OFD Sender: No OFD packet to send [12:11:06]*** Cut start [12:11:06]*** Partial cut [12:11:06]*** CUTSNS_PIN = 1 [12:11:06]*** CUTSNS_PIN = 0 [12:11:06]*** Brake cut motor [12:11:07]Read from MH i2c: 01 [12:11:07]MH_I2C_Read... [12:11:07]*** Stop cut motor [12:11:07]*** Cut end [12:11:07]Read from MH i2c: 01 07 00 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: 01 07 00 D5 20 00 00 00 00 00 FF 0F 0A [12:11:07]process_action close_receipt done [12:11:07]requested_data is exist [12:11:07]produce_requested_data [12:11:07]requested_item fm.sn is exist - process it [12:11:07]wFMCommunicate request_size=4 [12:11:07]MH_SAM_APDU [12:11:07]CAPDU: 80 11 00 00 [12:11:07]Write to MH i2c: E2 08 00 D6 20 80 11 00 00 00 00 00 00 70 [12:11:07]Write i2c OK [12:11:07]MH_I2C_Read... [12:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:07]Read from MH i2c: E2 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: E2 17 00 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: E2 17 00 D6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C2 [12:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:11:07]wFMCommunicate OK [12:11:07]requested_item fd.num is exist - process it [12:11:07]SAM_PROTO_GetFieldsCounters [12:11:07]wFMCommunicate request_size=4 [12:11:07]MH_SAM_APDU [12:11:07]CAPDU: 80 13 00 00 [12:11:07]Write to MH i2c: E2 08 00 D7 20 80 13 00 00 00 00 00 00 73 [12:11:07]Write i2c OK [12:11:07]MH_I2C_Read... [12:11:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:07]Read from MH i2c: E2 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: E2 62 00 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: E2 62 00 D7 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 95 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [12:11:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 95 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:07]wFMCommunicate OK [12:11:07]SAM_PROTO_GetFieldsCounters done [12:11:07]requested_item shift.num is exist - process it [12:11:07]requested_item shift.opened is exist - process it [12:11:07]req_shift_opened [12:11:07]FM_GetShiftState [12:11:07]SAM_PROTO_GetShiftState [12:11:07]wFMCommunicate request_size=4 [12:11:07]MH_SAM_APDU [12:11:07]CAPDU: 80 13 01 00 [12:11:07]Write to MH i2c: E2 08 00 D8 20 80 13 01 00 00 00 00 00 75 [12:11:07]Write i2c OK [12:11:07]MH_I2C_Read... [12:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:07]Read from MH i2c: E2 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: E2 0E 00 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: E2 0E 00 D8 20 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 B6 [12:11:07]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:11:07]wFMCommunicate OK [12:11:07]SAM_PROTO_GetShiftState done [12:11:07]FM_GetShiftState done [12:11:07]req_shift_opened done [12:11:07]requested_item shift.open_date is exist - process it [12:11:07]req_shift_open_date [12:11:07]req_shift_open_date done [12:11:07]produce_requested_data done [12:11:07]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64149,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [12:11:07]process_action_free close_receipt [12:11:07]json_value_free [12:11:07]json_value_free done [12:11:07]process_json_proto returns [12:11:07]Send response to host [12:11:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64149,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [12:11:07]free response buf [12:11:07]execute_script done [12:11:07]execute_script returns [12:11:07]free content buf [12:11:07]Sock 8.Close socket [12:11:07]Sock 8.Thread stoped [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:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:14:59]accept exits with 9 [12:14:59]New connection [12:14:59]New thread 3067133284 created [12:14:59]Thread 3067276644 joined [12:14:59]Waiting for new connection... [12:14:59] Sock 9.Parse request [12:14:59]Sock 9.Check first char [12:14:59]Sock 9.First char is OK [12:14:59]request: POST /json_proto HTTP/1.0 [12:14:59]Method: POST [12:14:59]URL: /json_proto [12:14:59]Method is POST - this is cgi request [12:14:59]url: /json_proto [12:14:59]query_string will be loaded in cgi processing [12:14:59]execute_cgi json_proto POST (null) [12:14:59]execute_cgi path=json_proto method=POST [12:14:59]POST find Content-Length [12:14:59]Host: 172.17.60.69:8080 [12:14:59]Content-Length: 695 [12:14:59]Content-Type: application/json [12:14:59] [12:14:59]POST finish read [12:14:59]Found Content-Length = 695 [12:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73682", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 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" ] } } [12:14:59]execute_script... [12:14: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)73682", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 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" ] } } [12:14:59]POST & json_proto [12:14:59]process_json_proto [12:14:59]json parsed OK: [12:14:59]protocol is kg_v1.0 [12:14:59]action value=close_receipt [12:14:59]process_action close_receipt [12:14:59]cmd_close_receipt [12:14:59]MH_GetDate [12:14:59]Write to MH i2c: F0 00 00 D9 20 E8 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: F0 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: F0 09 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: F0 09 00 D9 20 00 C6 56 60 66 D2 83 5F 66 ED [12:14:59]GetLastDocTimeStamp 1717589466 [12:14:59]current date 1717589702 [12:14:59]FM_GetShiftState [12:14:59]SAM_PROTO_GetShiftState [12:14:59]wFMCommunicate request_size=4 [12:14:59]MH_SAM_APDU [12:14:59]CAPDU: 80 13 01 00 [12:14:59]Write to MH i2c: E2 08 00 DA 20 80 13 01 00 00 00 00 00 77 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:59]Read from MH i2c: E2 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 0E 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 0E 00 DA 20 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 B8 [12:14:59]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:14:59]wFMCommunicate OK [12:14:59]SAM_PROTO_GetShiftState done [12:14:59]FM_GetShiftState done [12:14:59]opened in 1717545925 [12:14:59]opened+sec_in_day 1717632325 [12:14:59]quantity*price = 8500 [12:14:59]sum+1 = 8501 [12:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 70 05.06.2024 12:15 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64150 ФПД: 69520772536011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T121502&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64150&fm=69520772536011&tin=02508201610067®Number=0000000000092737&sum=8500 0 [12:15:00]StoreToDocumentArchive [12:15:00]shift 375 fd 64150 [12:15:00]save to /storage/0375/doc_00064150 [12:15:00]save last doc name /storage/0375/doc_00064150 to /storage/kkm_last_doc_name [12:15:00]save OK [12:15:00]Clear old archive folders... [12:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=299 [12:15:00]tlvbuf is 00FB0230 [12:15:00]SAM_PROTO_ClearQueue [12:15:00]wFMCommunicate request_size=4 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 09 00 00 [12:15:00]Write to MH i2c: E2 08 00 E7 20 80 09 00 00 00 00 00 00 79 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 E7 20 00 90 00 7B [12:15:00]RAPDU: 90 00 [12:15:00]wFMCommunicate OK [12:15:00]SAM_PROTO_ClearQueue done [12:15:00]KKMCreateOFDPacket [12:15:00]OFDProtocolAddRootSTLVToBuf [12:15:00]FM_MakeSignedData [12:15:00]FM_MakeSignedData [12:15:00]SAM_PROTO_SignData [12:15:00]wFMCommunicate request_size=4 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 0D 01 02 [12:15:00]Write to MH i2c: E2 08 00 E8 20 80 0D 01 02 00 00 00 00 81 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 E8 20 00 90 00 7C [12:15:00]RAPDU: 90 00 [12:15:00]wFMCommunicate OK [12:15:00]wFMCommunicate request_size=255 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 46 00 00 00 F4 03 04 00 C6 56 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [12:15:00]Write to MH i2c: E2 02 01 E9 20 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 46 00 00 00 F4 03 04 00 C6 56 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 2F [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 E9 20 00 90 00 7D [12:15:00]RAPDU: 90 00 [12:15:00]wFMCommunicate OK [12:15:00]wFMCommunicate request_size=58 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 96 FA 00 00 35 04 06 00 3F 3A 90 F3 96 CB [12:15:00]Write to MH i2c: E2 3D 00 EA 20 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 96 FA 00 00 35 04 06 00 3F 3A 90 F3 96 CB 00 00 62 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 EA 20 00 90 00 7E [12:15:00]RAPDU: 90 00 [12:15:00]wFMCommunicate OK [12:15:00]wFMCommunicate request_size=4 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 0D 03 02 [12:15:00]Write to MH i2c: E2 08 00 EB 20 80 0D 03 02 00 00 00 00 86 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 0B 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 0B 00 EB 20 00 CA 53 A3 74 BB D5 07 A5 90 00 F7 [12:15:00]RAPDU: CA 53 A3 74 BB D5 07 A5 90 00 [12:15:00]wFMCommunicate OK [12:15:00]SAM_PROTO_SignData done [12:15:00]FM_MakeSignedData done [12:15:00]CreateOFDProtocolMessage [12:15:00]wFMCommunicate request_size=4 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 11 00 00 [12:15:00]Write to MH i2c: E2 08 00 EC 20 80 11 00 00 00 00 00 00 86 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 17 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 17 00 EC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D8 [12:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:15:00]wFMCommunicate OK [12:15:00]CreateOFDProtocolMessage done [12:15:00]OFDSenderStorePacket 64150 [12:15:00]StoreOFDPacket docnum=64150 [12:15:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3F 01 00 00 CE 40 37 01 9E C2 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 46 00 00 00 F4 03 04 00 C6 56 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 96 FA 00 00 35 04 06 00 3F 3A 90 F3 96 CB CA 53 A3 74 BB D5 07 A5 [12:15:00]CheckFolder [12:15:00]dirname=/storage/ofd_packets [12:15:00]CheckFolder done [12:15:00]ProducePacketName [12:15:00]name=ofd_packets/00064150 [12:15:00]NVStorageSaveData ofd_packets/00064150 [12:15:00]File name is /storage/ofd_packets/00064150 [12:15:00]Write 349 bytes [12:15:00]NVStorageSaveData done [12:15:00]OFDSenderStorePacket done [12:15:00]KKMCreateOFDPacket done [12:15:00]NVStorageSaveData kkm_last_timestamp [12:15:00]File name is /storage/kkm_last_timestamp [12:15:00]Write 4 bytes [12:15:00]NVStorageSaveData done [12:15:00]ExternCall_PrintAddStr [12:15:00]wPrintStart [12:15:00]Write to MH i2c: 01 00 00 ED 20 0D [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 07 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 07 00 ED 20 00 00 00 00 00 FF 0F 22 [12:15:00]RasterBufferAndPrint [12:15:00]line Счет N : (3)73682 [12:15:00]line ИНН: 02508201610067 [12:15:00]line Контрольно-Кассовый Чек [12:15:00]line ПРОДАЖА [12:15:00]line Товар: 4700000480364 [12:15:00]line Напиток энерг Nitro экзотик 0.45 ж/б [12:15:00]line 1.000 * 85.00 [12:15:00]line = 85.00 [12:15:00]line НДС 12% НСП 1% [12:15:00]line > о реализуемом товаре [12:15:00]line ИТОГО: 85.00 [12:15:00]line НСП 1% : 0.75 [12:15:00]line НДС 12% : 9.03 [12:15:00]line Наличными: 85.00 [12:15:00]line Безнал.: 0.00 [12:15:00]line Место: АЗС № 117 "Партнер Нефть" [12:15:00]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:15:00]line СНО: Общий режим [12:15:00]line Чек 70 05.06.2024 12:15 [12:15:00]line Смена: 375 ФФД: 1.0 [12:15:00]line ЗНМ: 0300000031 [12:15:00]line РНМ: 0000000000092737 [12:15:00]line Версия ККМ: 001 [12:15:00]line ФМ: 0000000000875074 [12:15:00]line ФД: 64150 [12:15:00]line ФПД: 69520772536011 [12:15:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T121502&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64150&fm=69520772536011&tin=02508201610067®Number=0000000000092737&sum=8500 [12:15:01]line 0 [12:15:01]OFD Sender: Processing packet 64150 [packets to send 14, broken 13] [12:15:01]ProducePacketName [12:15:01]name=ofd_packets/00064150 [12:15:01]OFD Sender: To server: pG, [12:15:01]CommunicateWithHost lk.salyk.kg:30040 [12:15:01]ConnectInit lk.salyk.kg [12:15:01]written 0, free lines is 4095 [12:15:01]Connected sock=10 [12:15:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3F 01 00 00 CE 40 37 01 9E C2 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 46 00 00 00 F4 03 04 00 C6 56 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 96 FA 00 00 35 04 06 00 3F 3A 90 F3 96 CB CA 53 A3 74 BB D5 07 A5 [12:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 6F 17 47 00 E6 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 96 FA 00 00 F4 03 04 00 D2 02 60 66 B6 04 01 00 00 95 7F 81 BA AF 37 53 54 [12:15:01]CommunicateWithHost err = 0 [12:15:01]CheckOFDResponse [12:15:01]1017 (14) - 77093643461234 [12:15:01]1041 (16) - 0000000000875074 [12:15:01]1040 (4) - 64150 [12:15:01]1012 (4) - 05.06.2024 06:16 [12:15:01]1206 (1) - 0 [12:15:01]OFD Sender: Remove packet 64150 [12:15:01]ProducePacketName [12:15:01]name=ofd_packets/00064150 [12:15:01]NVStorageDeleteData [12:15:01]Write to MH i2c: 01 00 00 16 21 37 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 07 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 07 00 16 21 00 00 00 00 00 DC 0C 26 [12:15:01]RasterBufferAndPrint [12:15:01]line [12:15:01]line [12:15:01]line [12:15:01]line [12:15:01]line [12:15:01]written 0, free lines is 3298 [12:15:01]MH_Cut [12:15:01]Write to MH i2c: D1 01 00 1D 21 01 10 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: D1 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: D1 01 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: D1 01 00 1D 21 00 0F [12:15:01]Write to MH i2c: 01 00 00 1E 21 3F [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:02]OFD Sender: No OFD packet to send [12:15:02]*** Cut start [12:15:02]*** Partial cut [12:15:02]*** CUTSNS_PIN = 1 [12:15:02]*** CUTSNS_PIN = 0 [12:15:02]*** Brake cut motor [12:15:03]Read from MH i2c: 01 [12:15:03]MH_I2C_Read... [12:15:03]*** Stop cut motor [12:15:03]*** Cut end [12:15:03]Read from MH i2c: 01 07 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: 01 07 00 1E 21 00 00 00 00 00 FF 0F 54 [12:15:03]process_action close_receipt done [12:15:03]requested_data is exist [12:15:03]produce_requested_data [12:15:03]requested_item fm.sn is exist - process it [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 11 00 00 [12:15:03]Write to MH i2c: E2 08 00 1F 21 80 11 00 00 00 00 00 00 BA [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 17 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 17 00 1F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0C [12:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:15:03]wFMCommunicate OK [12:15:03]requested_item fd.num is exist - process it [12:15:03]SAM_PROTO_GetFieldsCounters [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 13 00 00 [12:15:03]Write to MH i2c: E2 08 00 20 21 80 13 00 00 00 00 00 00 BD [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 62 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 62 00 20 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 96 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [12:15:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 96 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:03]wFMCommunicate OK [12:15:03]SAM_PROTO_GetFieldsCounters done [12:15:03]requested_item shift.num is exist - process it [12:15:03]requested_item shift.opened is exist - process it [12:15:03]req_shift_opened [12:15:03]FM_GetShiftState [12:15:03]SAM_PROTO_GetShiftState [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 13 01 00 [12:15:03]Write to MH i2c: E2 08 00 21 21 80 13 01 00 00 00 00 00 BF [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 0E 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 0E 00 21 21 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 00 [12:15:03]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:15:03]wFMCommunicate OK [12:15:03]SAM_PROTO_GetShiftState done [12:15:03]FM_GetShiftState done [12:15:03]req_shift_opened done [12:15:03]requested_item shift.open_date is exist - process it [12:15:03]req_shift_open_date [12:15:03]req_shift_open_date done [12:15:03]produce_requested_data done [12:15:03]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64150,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [12:15:03]process_action_free close_receipt [12:15:03]json_value_free [12:15:03]json_value_free done [12:15:03]process_json_proto returns [12:15:03]Send response to host [12:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64150,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [12:15:03]free response buf [12:15:03]execute_script done [12:15:03]execute_script returns [12:15:03]free content buf [12:15:03]Sock 9.Close socket [12:15:03]Sock 9.Thread stoped [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:09]accept exits with 8 [12:22:09]New connection [12:22:09]New thread 3067276644 created [12:22:09]Thread 3067133284 joined [12:22:09]Waiting for new connection... [12:22:09] Sock 8.Parse request [12:22:09]Sock 8.Check first char [12:22:09]Sock 8.First char is OK [12:22:09]request: POST /json_proto HTTP/1.0 [12:22:09]Method: POST [12:22:09]URL: /json_proto [12:22:09]Method is POST - this is cgi request [12:22:09]url: /json_proto [12:22:09]query_string will be loaded in cgi processing [12:22:09]execute_cgi json_proto POST (null) [12:22:09]execute_cgi path=json_proto method=POST [12:22:09]POST find Content-Length [12:22:09]Host: 172.17.60.69:8080 [12:22:09]Content-Length: 1672 [12:22:09]Content-Type: application/json [12:22:09] [12:22:09]POST finish read [12:22:09]Found Content-Length = 1672 [12:22:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73683", "tax_sys" : 0, "items" : [ { "code": "5449000011530", "name": "\u041A\u041E\u041C\u0411\u041E \u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,33\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216097162", "name": "\u041C\u0430\u0440\u0448\u043C\u0435\u043B\u043B\u043E\u0443 HARIBO Party 70\u0433\u0440 (24)", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 587.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:09]execute_script... [12:22:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73683", "tax_sys" : 0, "items" : [ { "code": "5449000011530", "name": "\u041A\u041E\u041C\u0411\u041E \u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,33\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216097162", "name": "\u041C\u0430\u0440\u0448\u043C\u0435\u043B\u043B\u043E\u0443 HARIBO Party 70\u0433\u0440 (24)", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 587.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:09]POST & json_proto [12:22:09]process_json_proto [12:22:09]json parsed OK: [12:22:09]protocol is kg_v1.0 [12:22:09]action value=close_receipt [12:22:09]process_action close_receipt [12:22:09]cmd_close_receipt [12:22:09]MH_GetDate [12:22:09]Write to MH i2c: F0 00 00 22 21 32 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: F0 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: F0 09 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: F0 09 00 22 21 00 74 58 60 66 D2 83 5F 66 E7 [12:22:09]GetLastDocTimeStamp 1717589702 [12:22:09]current date 1717590132 [12:22:09]FM_GetShiftState [12:22:09]SAM_PROTO_GetShiftState [12:22:09]wFMCommunicate request_size=4 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 13 01 00 [12:22:09]Write to MH i2c: E2 08 00 23 21 80 13 01 00 00 00 00 00 C1 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 0E 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 0E 00 23 21 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 02 [12:22:09]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:22:09]wFMCommunicate OK [12:22:09]SAM_PROTO_GetShiftState done [12:22:09]FM_GetShiftState done [12:22:09]opened in 1717545925 [12:22:09]opened+sec_in_day 1717632325 [12:22:09]quantity*price = 7700 [12:22:09]sum+1 = 7701 [12:22:09]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8691216097162 Маршмеллоу HARIBO Party 70гр (24) 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 47803152 Сигареты Mevius Revo 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 587.00 НСП 1% : 5.19 НДС 12% : 62.33 Наличными: 587.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 71 05.06.2024 12:22 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64151 ФПД: 271113614181491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T122212&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64151&fm=271113614181491&tin=02508201610067®Number=0000000000092737&sum=58700 0 [12:22:10]StoreToDocumentArchive [12:22:10]shift 375 fd 64151 [12:22:10]save to /storage/0375/doc_00064151 [12:22:10]save last doc name /storage/0375/doc_00064151 to /storage/kkm_last_doc_name [12:22:10]save OK [12:22:10]Clear old archive folders... [12:22:10]ProcessDocumentItem done err = 0, tmpTLVsize=715 [12:22:10]tlvbuf is 01105FE0 [12:22:10]SAM_PROTO_ClearQueue [12:22:10]wFMCommunicate request_size=4 [12:22:10]MH_SAM_APDU [12:22:10]CAPDU: 80 09 00 00 [12:22:10]Write to MH i2c: E2 08 00 30 21 80 09 00 00 00 00 00 00 C3 [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:10]Read from MH i2c: E2 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: E2 03 00 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: E2 03 00 30 21 00 90 00 C5 [12:22:10]RAPDU: 90 00 [12:22:10]wFMCommunicate OK [12:22:10]SAM_PROTO_ClearQueue done [12:22:10]KKMCreateOFDPacket [12:22:10]OFDProtocolAddRootSTLVToBuf [12:22:10]FM_MakeSignedData [12:22:10]FM_MakeSignedData [12:22:10]SAM_PROTO_SignData [12:22:10]wFMCommunicate request_size=4 [12:22:10]MH_SAM_APDU [12:22:10]CAPDU: 80 0D 01 02 [12:22:10]Write to MH i2c: E2 08 00 31 21 80 0D 01 02 00 00 00 00 CB [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:10]Read from MH i2c: E2 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: E2 03 00 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: E2 03 00 31 21 00 90 00 C6 [12:22:10]RAPDU: 90 00 [12:22:10]wFMCommunicate OK [12:22:10]wFMCommunicate request_size=255 [12:22:10]MH_SAM_APDU [12:22:10]CAPDU: 80 0D 02 02 FA 03 00 CB 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 33 30 06 04 2B 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 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 66 00 8A 04 0D 00 32 [12:22:10]Write to MH i2c: E2 02 01 32 21 80 0D 02 02 FA 00 03 00 CB 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 33 30 06 04 2B 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 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 66 00 8A 04 0D 00 32 00 00 59 [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:10]Read from MH i2c: E2 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: E2 03 00 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: E2 03 00 32 21 00 90 00 C7 [12:22:10]RAPDU: 90 00 [12:22:10]wFMCommunicate OK [12:22:10]wFMCommunicate request_size=255 [12:22:10]MH_SAM_APDU [12:22:10]CAPDU: 80 0D 02 02 FA 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 [12:22:10]Write to MH i2c: E2 02 01 33 21 80 0D 02 02 FA 00 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 00 00 63 [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:11]Read from MH i2c: E2 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 03 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 03 00 33 21 00 90 00 C8 [12:22:11]RAPDU: 90 00 [12:22:11]wFMCommunicate OK [12:22:11]wFMCommunicate request_size=224 [12:22:11]MH_SAM_APDU [12:22:11]CAPDU: 80 0D 02 02 DB 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C E5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 18 00 00 00 00 07 04 06 00 4C E5 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 74 58 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 97 FA 00 00 35 04 06 00 F6 93 8E AA C4 73 [12:22:11]Write to MH i2c: E2 E3 00 34 21 80 0D 02 02 DB 00 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C E5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 18 00 00 00 00 07 04 06 00 4C E5 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 74 58 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 97 FA 00 00 35 04 06 00 F6 93 8E AA C4 73 00 00 BD [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 [12:22:11]MH_I2C_Read... [12:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:11]Read from MH i2c: E2 03 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 03 00 34 21 00 90 00 C9 [12:22:11]RAPDU: 90 00 [12:22:11]wFMCommunicate OK [12:22:11]wFMCommunicate request_size=4 [12:22:11]MH_SAM_APDU [12:22:11]CAPDU: 80 0D 03 02 [12:22:11]Write to MH i2c: E2 08 00 35 21 80 0D 03 02 00 00 00 00 D1 [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:11]Read from MH i2c: E2 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 0B 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 0B 00 35 21 00 F1 E8 49 BD 12 AA 70 E4 90 00 C1 [12:22:11]RAPDU: F1 E8 49 BD 12 AA 70 E4 90 00 [12:22:11]wFMCommunicate OK [12:22:11]SAM_PROTO_SignData done [12:22:11]FM_MakeSignedData done [12:22:11]CreateOFDProtocolMessage [12:22:11]wFMCommunicate request_size=4 [12:22:11]MH_SAM_APDU [12:22:11]CAPDU: 80 11 00 00 [12:22:11]Write to MH i2c: E2 08 00 36 21 80 11 00 00 00 00 00 00 D1 [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:11]Read from MH i2c: E2 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 17 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 17 00 36 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 23 [12:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:22:11]wFMCommunicate OK [12:22:11]CreateOFDProtocolMessage done [12:22:11]OFDSenderStorePacket 64151 [12:22:11]StoreOFDPacket docnum=64151 [12:22:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 DF 02 00 00 E4 49 D7 02 17 C0 5A 03 01 00 03 00 CB 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 33 30 06 04 2B 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C E5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 18 00 00 00 00 07 04 06 00 4C E5 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 74 58 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 97 FA 00 00 35 04 06 00 F6 93 8E AA C4 73 F1 E8 49 BD 12 AA 70 E4 [12:22:11]CheckFolder [12:22:11]dirname=/storage/ofd_packets [12:22:11]CheckFolder done [12:22:11]ProducePacketName [12:22:11]name=ofd_packets/00064151 [12:22:11]NVStorageSaveData ofd_packets/00064151 [12:22:11]File name is /storage/ofd_packets/00064151 [12:22:11]Write 765 bytes [12:22:11]NVStorageSaveData done [12:22:11]OFDSenderStorePacket done [12:22:11]KKMCreateOFDPacket done [12:22:11]NVStorageSaveData kkm_last_timestamp [12:22:11]File name is /storage/kkm_last_timestamp [12:22:11]Write 4 bytes [12:22:11]NVStorageSaveData done [12:22:11]ExternCall_PrintAddStr [12:22:11]wPrintStart [12:22:11]Write to MH i2c: 01 00 00 37 21 58 [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: 01 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: 01 07 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: 01 07 00 37 21 00 00 00 00 00 FF 0F 6D [12:22:11]RasterBufferAndPrint [12:22:11]line Счет N : (3)73683 [12:22:11]line ИНН: 02508201610067 [12:22:11]line Контрольно-Кассовый Чек [12:22:11]line ПРОДАЖА [12:22:11]line Товар: 5449000011530 [12:22:11]line КОМБО Напиток Фанта 0,33л [12:22:11]line 1.000 * 77.00 [12:22:11]line = 77.00 [12:22:11]line НДС 12% НСП 1% [12:22:11]line > о реализуемом товаре [12:22:11]line Товар: 8691216097162 [12:22:11]line Маршмеллоу HARIBO Party 70гр (24) [12:22:11]line 1.000 * 100.00 [12:22:11]line = 100.00 [12:22:11]line НДС 12% НСП 1% [12:22:11]line > о реализуемом товаре [12:22:11]line Товар: 2000036230011 [12:22:11]line Кофе Латте XL(GABB TRADE) [12:22:11]line 1.000 * 130.00 [12:22:11]line = 130.00 [12:22:11]line НДС 12% НСП 1% [12:22:11]line > о реализуемом товаре [12:22:11]line Товар: 2000036220012 [12:22:11]line Кофе Капучино XL(GABB TRADE) [12:22:11]line 1.000 * 125.00 [12:22:11]line = 125.00 [12:22:11]line НДС 12% НСП 1% [12:22:11]line > о реализуемом товаре [12:22:11]line Товар: 47803152 [12:22:11]line Сигареты Mevius Revo [12:22:11]line 1.000 * 155.00 [12:22:11]line = 155.00 [12:22:11]line НДС 12% НСП 1% [12:22:11]line > о реализуемом товаре [12:22:11]line ИТОГО: 587.00 [12:22:11]line НСП 1% : 5.19 [12:22:11]line НДС 12% : 62.33 [12:22:11]line Наличными: 587.00 [12:22:11]line Безнал.: 0.00 [12:22:11]line Место: АЗС № 117 "Партнер Нефть" [12:22:11]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:22:11]line СНО: Общий режим [12:22:11]line Чек 71 05.06.2024 12:22 [12:22:11]line Смена: 375 ФФД: 1.0 [12:22:11]line ЗНМ: 0300000031 [12:22:11]line РНМ: 0000000000092737 [12:22:11]line Версия ККМ: 001 [12:22:11]line ФМ: 0000000000875074 [12:22:11]line ФД: 64151 [12:22:11]line ФПД: 271113614181491 [12:22:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T122212&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64151&fm=271113614181491&tin=02508201610067®Number=0000000000092737&sum=58700 [12:22:11]line 0 [12:22:11]written 0, free lines is 4095 [12:22:11]OFD Sender: Processing packet 64151 [packets to send 14, broken 13] [12:22:11]ProducePacketName [12:22:11]name=ofd_packets/00064151 [12:22:11]OFD Sender: To server: pG, [12:22:11]CommunicateWithHost lk.salyk.kg:30040 [12:22:11]ConnectInit lk.salyk.kg [12:22:12]Connected sock=9 [12:22:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 DF 02 00 00 E4 49 D7 02 17 C0 5A 03 01 00 03 00 CB 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 31 35 33 30 06 04 2B 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C E5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 18 00 00 00 00 07 04 06 00 4C E5 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 74 58 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 97 FA 00 00 35 04 06 00 F6 93 8E AA C4 73 F1 E8 49 BD 12 AA 70 E4 [12:22:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 28 56 47 00 5C 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 97 FA 00 00 F4 03 04 00 81 04 60 66 B6 04 01 00 00 C0 77 B2 75 93 27 C6 7C [12:22:12]CommunicateWithHost err = 0 [12:22:12]CheckOFDResponse [12:22:12]1017 (14) - 77093643461234 [12:22:12]1041 (16) - 0000000000875074 [12:22:12]1040 (4) - 64151 [12:22:12]1012 (4) - 05.06.2024 06:24 [12:22:12]1206 (1) - 0 [12:22:12]OFD Sender: Remove packet 64151 [12:22:12]ProducePacketName [12:22:12]name=ofd_packets/00064151 [12:22:12]NVStorageDeleteData [12:22:12]Write to MH i2c: 01 00 00 79 21 9A [12:22:12]Write i2c OK [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: 01 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: 01 07 00 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: 01 07 00 79 21 00 00 00 00 00 61 0B 0D [12:22:12]RasterBufferAndPrint [12:22:12]line [12:22:12]line [12:22:12]line [12:22:12]line [12:22:12]line [12:22:12]written 0, free lines is 2921 [12:22:12]MH_Cut [12:22:12]Write to MH i2c: D1 01 00 80 21 01 73 [12:22:12]Write i2c OK [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: D1 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: D1 01 00 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: D1 01 00 80 21 00 72 [12:22:12]Write to MH i2c: 01 00 00 81 21 A2 [12:22:12]Write i2c OK [12:22:12]MH_I2C_Read... [12:22:12]OFD Sender: No OFD packet to send [12:22:13]*** Cut start [12:22:13]*** Partial cut [12:22:13]*** CUTSNS_PIN = 1 [12:22:13]*** CUTSNS_PIN = 0 [12:22:13]*** Brake cut motor [12:22:14]Read from MH i2c: 01 [12:22:14]MH_I2C_Read... [12:22:14]*** Stop cut motor [12:22:14]*** Cut end [12:22:14]Read from MH i2c: 01 07 00 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: 01 07 00 81 21 00 00 00 00 00 FF 0F B7 [12:22:14]process_action close_receipt done [12:22:14]requested_data is exist [12:22:14]produce_requested_data [12:22:14]requested_item fm.sn is exist - process it [12:22:14]wFMCommunicate request_size=4 [12:22:14]MH_SAM_APDU [12:22:14]CAPDU: 80 11 00 00 [12:22:14]Write to MH i2c: E2 08 00 82 21 80 11 00 00 00 00 00 00 1D [12:22:14]Write i2c OK [12:22:14]MH_I2C_Read... [12:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:14]Read from MH i2c: E2 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 17 00 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 17 00 82 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6F [12:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:22:14]wFMCommunicate OK [12:22:14]requested_item fd.num is exist - process it [12:22:14]SAM_PROTO_GetFieldsCounters [12:22:14]wFMCommunicate request_size=4 [12:22:14]MH_SAM_APDU [12:22:14]CAPDU: 80 13 00 00 [12:22:14]Write to MH i2c: E2 08 00 83 21 80 13 00 00 00 00 00 00 20 [12:22:14]Write i2c OK [12:22:14]MH_I2C_Read... [12:22:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:14]Read from MH i2c: E2 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 62 00 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 62 00 83 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 97 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [12:22:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 97 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:14]wFMCommunicate OK [12:22:14]SAM_PROTO_GetFieldsCounters done [12:22:14]requested_item shift.num is exist - process it [12:22:14]requested_item shift.opened is exist - process it [12:22:14]req_shift_opened [12:22:14]FM_GetShiftState [12:22:14]SAM_PROTO_GetShiftState [12:22:14]wFMCommunicate request_size=4 [12:22:14]MH_SAM_APDU [12:22:14]CAPDU: 80 13 01 00 [12:22:14]Write to MH i2c: E2 08 00 84 21 80 13 01 00 00 00 00 00 22 [12:22:14]Write i2c OK [12:22:14]MH_I2C_Read... [12:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:14]Read from MH i2c: E2 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 0E 00 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 0E 00 84 21 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 63 [12:22:14]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:22:14]wFMCommunicate OK [12:22:14]SAM_PROTO_GetShiftState done [12:22:14]FM_GetShiftState done [12:22:14]req_shift_opened done [12:22:14]requested_item shift.open_date is exist - process it [12:22:14]req_shift_open_date [12:22:14]req_shift_open_date done [12:22:14]produce_requested_data done [12:22:14]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64151,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [12:22:14]process_action_free close_receipt [12:22:14]json_value_free [12:22:14]json_value_free done [12:22:14]process_json_proto returns [12:22:14]Send response to host [12:22:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64151,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [12:22:14]free response buf [12:22:14]execute_script done [12:22:14]execute_script returns [12:22:14]free content buf [12:22:14]Sock 8.Close socket [12:22:14]Sock 8.Thread stoped [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:26]accept exits with 10 [12:25:26]New connection [12:25:26]New thread 3067133284 created [12:25:26]Thread 3067276644 joined [12:25:26]Waiting for new connection... [12:25:26] Sock 10.Parse request [12:25:26]Sock 10.Check first char [12:25:26]Sock 10.First char is OK [12:25:26]request: POST /json_proto HTTP/1.0 [12:25:26]Method: POST [12:25:26]URL: /json_proto [12:25:26]Method is POST - this is cgi request [12:25:26]url: /json_proto [12:25:26]query_string will be loaded in cgi processing [12:25:26]execute_cgi json_proto POST (null) [12:25:26]execute_cgi path=json_proto method=POST [12:25:26]POST find Content-Length [12:25:26]Host: 172.17.60.69:8080 [12:25:26]Content-Length: 804 [12:25:26]Content-Type: application/json [12:25:26] [12:25:26]POST finish read [12:25:26]Found Content-Length = 804 [12:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73684", "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" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:26]execute_script... [12:25:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73684", "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" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:26]POST & json_proto [12:25:26]process_json_proto [12:25:26]json parsed OK: [12:25:26]protocol is kg_v1.0 [12:25:26]action value=close_receipt [12:25:26]process_action close_receipt [12:25:26]cmd_close_receipt [12:25:26]MH_GetDate [12:25:26]Write to MH i2c: F0 00 00 85 21 95 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: F0 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: F0 09 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: F0 09 00 85 21 00 39 59 60 66 D2 83 5F 66 10 [12:25:26]GetLastDocTimeStamp 1717590132 [12:25:26]current date 1717590329 [12:25:26]FM_GetShiftState [12:25:26]SAM_PROTO_GetShiftState [12:25:26]wFMCommunicate request_size=4 [12:25:26]MH_SAM_APDU [12:25:26]CAPDU: 80 13 01 00 [12:25:26]Write to MH i2c: E2 08 00 86 21 80 13 01 00 00 00 00 00 24 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:26]Read from MH i2c: E2 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 0E 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 0E 00 86 21 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 65 [12:25:26]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:25:26]wFMCommunicate OK [12:25:26]SAM_PROTO_GetShiftState done [12:25:26]FM_GetShiftState done [12:25:26]opened in 1717545925 [12:25:26]opened+sec_in_day 1717632325 [12:25:26]quantity*price = 11500 [12:25:26]sum+1 = 11501 [12:25:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 0.00 Безнал.: 115.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 72 05.06.2024 12:25 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64152 ФПД: 98996085688353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T122529&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64152&fm=98996085688353&tin=02508201610067®Number=0000000000092737&sum=11500 0 [12:25:27]StoreToDocumentArchive [12:25:27]shift 375 fd 64152 [12:25:27]save to /storage/0375/doc_00064152 [12:25:27]save last doc name /storage/0375/doc_00064152 to /storage/kkm_last_doc_name [12:25:27]save OK [12:25:27]Clear old archive folders... [12:25:27]ProcessDocumentItem done err = 0, tmpTLVsize=280 [12:25:27]tlvbuf is B6F293E0 [12:25:27]SAM_PROTO_ClearQueue [12:25:27]wFMCommunicate request_size=4 [12:25:27]MH_SAM_APDU [12:25:27]CAPDU: 80 09 00 00 [12:25:27]Write to MH i2c: E2 08 00 93 21 80 09 00 00 00 00 00 00 26 [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 93 21 00 90 00 28 [12:25:27]RAPDU: 90 00 [12:25:27]wFMCommunicate OK [12:25:27]SAM_PROTO_ClearQueue done [12:25:27]KKMCreateOFDPacket [12:25:27]OFDProtocolAddRootSTLVToBuf [12:25:27]FM_MakeSignedData [12:25:27]FM_MakeSignedData [12:25:27]SAM_PROTO_SignData [12:25:27]wFMCommunicate request_size=4 [12:25:27]MH_SAM_APDU [12:25:27]CAPDU: 80 0D 01 02 [12:25:27]Write to MH i2c: E2 08 00 94 21 80 0D 01 02 00 00 00 00 2E [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 94 21 00 90 00 29 [12:25:27]RAPDU: 90 00 [12:25:27]wFMCommunicate OK [12:25:27]wFMCommunicate request_size=255 [12:25:27]MH_SAM_APDU [12:25:27]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 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 39 59 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [12:25:27]Write to MH i2c: E2 02 01 95 21 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 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 39 59 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 89 [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 95 21 00 90 00 2A [12:25:27]RAPDU: 90 00 [12:25:27]wFMCommunicate OK [12:25:27]wFMCommunicate request_size=39 [12:25:27]MH_SAM_APDU [12:25:27]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 98 FA 00 00 35 04 06 00 5A 09 52 85 88 21 [12:25:27]Write to MH i2c: E2 2A 00 96 21 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 98 FA 00 00 35 04 06 00 5A 09 52 85 88 21 00 00 60 [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 96 21 00 90 00 2B [12:25:27]RAPDU: 90 00 [12:25:27]wFMCommunicate OK [12:25:27]wFMCommunicate request_size=4 [12:25:27]MH_SAM_APDU [12:25:27]CAPDU: 80 0D 03 02 [12:25:27]Write to MH i2c: E2 08 00 97 21 80 0D 03 02 00 00 00 00 33 [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 0B 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 0B 00 97 21 00 F5 77 81 9F 5A 15 FA EB 90 00 14 [12:25:27]RAPDU: F5 77 81 9F 5A 15 FA EB 90 00 [12:25:27]wFMCommunicate OK [12:25:27]SAM_PROTO_SignData done [12:25:27]FM_MakeSignedData done [12:25:27]CreateOFDProtocolMessage [12:25:27]wFMCommunicate request_size=4 [12:25:27]MH_SAM_APDU [12:25:27]CAPDU: 80 11 00 00 [12:25:27]Write to MH i2c: E2 08 00 98 21 80 11 00 00 00 00 00 00 33 [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 17 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 17 00 98 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 85 [12:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:25:27]wFMCommunicate OK [12:25:27]CreateOFDProtocolMessage done [12:25:27]OFDSenderStorePacket 64152 [12:25:27]StoreOFDPacket docnum=64152 [12:25:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 27 D9 24 01 C7 CA 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 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 39 59 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 98 FA 00 00 35 04 06 00 5A 09 52 85 88 21 F5 77 81 9F 5A 15 FA EB [12:25:27]CheckFolder [12:25:27]dirname=/storage/ofd_packets [12:25:27]CheckFolder done [12:25:27]ProducePacketName [12:25:27]name=ofd_packets/00064152 [12:25:27]NVStorageSaveData ofd_packets/00064152 [12:25:27]File name is /storage/ofd_packets/00064152 [12:25:27]Write 330 bytes [12:25:27]NVStorageSaveData done [12:25:27]OFDSenderStorePacket done [12:25:27]KKMCreateOFDPacket done [12:25:27]NVStorageSaveData kkm_last_timestamp [12:25:27]File name is /storage/kkm_last_timestamp [12:25:27]Write 4 bytes [12:25:27]NVStorageSaveData done [12:25:27]ExternCall_PrintAddStr [12:25:27]wPrintStart [12:25:27]Write to MH i2c: 01 00 00 99 21 BA [12:25:27]OFD Sender: Processing packet 64152 [packets to send 14, broken 13] [12:25:27]ProducePacketName [12:25:27]name=ofd_packets/00064152 [12:25:27]OFD Sender: To server: pG, [12:25:27]CommunicateWithHost lk.salyk.kg:30040 [12:25:27]ConnectInit lk.salyk.kg [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: 01 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: 01 07 00 [12:25:27]MH_I2C_Read... [12:25:28]Read from MH i2c: 01 07 00 99 21 00 00 00 00 00 FF 0F CF [12:25:28]RasterBufferAndPrint [12:25:28]line Счет N : (3)73684 [12:25:28]line ИНН: 02508201610067 [12:25:28]line Контрольно-Кассовый Чек [12:25:28]line ПРОДАЖА [12:25:28]line Товар: 2000036210013 [12:25:28]line Кофе Капучино (GABB TRADE) [12:25:28]line 1.000 * 115.00 [12:25:28]line = 115.00 [12:25:28]line НДС 12% НСП 1% [12:25:28]line > о реализуемом товаре [12:25:28]line ИТОГО: 115.00 [12:25:28]line НСП 1% : 1.02 [12:25:28]line НДС 12% : 12.21 [12:25:28]line Наличными: 0.00 [12:25:28]line Безнал.: 115.00 [12:25:28]line Место: АЗС № 117 "Партнер Нефть" [12:25:28]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:25:28]line СНО: Общий режим [12:25:28]line Чек 72 05.06.2024 12:25 [12:25:28]line Смена: 375 ФФД: 1.0 [12:25:28]line ЗНМ: 0300000031 [12:25:28]line РНМ: 0000000000092737 [12:25:28]line Версия ККМ: 001 [12:25:28]line Платежная система: O! деньги [12:25:28]line ФМ: 0000000000875074 [12:25:28]line ФД: 64152 [12:25:28]line ФПД: 98996085688353 [12:25:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T122529&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64152&fm=98996085688353&tin=02508201610067®Number=0000000000092737&sum=11500 [12:25:28]Connected sock=9 [12:25:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 27 D9 24 01 C7 CA 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 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 39 59 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 98 FA 00 00 35 04 06 00 5A 09 52 85 88 21 F5 77 81 9F 5A 15 FA EB [12:25:28]line 0 [12:25:28]written 0, free lines is 4095 [12:25:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 3D A8 47 00 42 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 98 FA 00 00 F4 03 04 00 45 05 60 66 B6 04 01 00 00 69 3D E6 7A 9E B3 5E F6 [12:25:28]CommunicateWithHost err = 0 [12:25:28]CheckOFDResponse [12:25:28]1017 (14) - 77093643461234 [12:25:28]1041 (16) - 0000000000875074 [12:25:28]1040 (4) - 64152 [12:25:28]1012 (4) - 05.06.2024 06:27 [12:25:28]1206 (1) - 0 [12:25:28]OFD Sender: Remove packet 64152 [12:25:28]ProducePacketName [12:25:28]name=ofd_packets/00064152 [12:25:28]NVStorageDeleteData [12:25:28]Write to MH i2c: 01 00 00 C3 21 E4 [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: 01 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: 01 07 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: 01 07 00 C3 21 00 00 00 00 00 E3 0C DA [12:25:28]RasterBufferAndPrint [12:25:28]line [12:25:28]line [12:25:28]line [12:25:28]line [12:25:28]line [12:25:28]written 0, free lines is 3308 [12:25:28]MH_Cut [12:25:28]Write to MH i2c: D1 01 00 CA 21 01 BD [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: D1 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: D1 01 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: D1 01 00 CA 21 00 BC [12:25:28]Write to MH i2c: 01 00 00 CB 21 EC [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:29]OFD Sender: No OFD packet to send [12:25:29]*** Cut start [12:25:29]*** Partial cut [12:25:29]*** CUTSNS_PIN = 1 [12:25:29]*** CUTSNS_PIN = 0 [12:25:29]*** Brake cut motor [12:25:30]Read from MH i2c: 01 [12:25:30]MH_I2C_Read... [12:25:30]*** Stop cut motor [12:25:30]*** Cut end [12:25:30]Read from MH i2c: 01 07 00 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: 01 07 00 CB 21 00 00 00 00 00 FF 0F 01 [12:25:30]process_action close_receipt done [12:25:30]requested_data is exist [12:25:30]produce_requested_data [12:25:30]requested_item fm.sn is exist - process it [12:25:30]wFMCommunicate request_size=4 [12:25:30]MH_SAM_APDU [12:25:30]CAPDU: 80 11 00 00 [12:25:30]Write to MH i2c: E2 08 00 CC 21 80 11 00 00 00 00 00 00 67 [12:25:30]Write i2c OK [12:25:30]MH_I2C_Read... [12:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:30]Read from MH i2c: E2 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: E2 17 00 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: E2 17 00 CC 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B9 [12:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:25:30]wFMCommunicate OK [12:25:30]requested_item fd.num is exist - process it [12:25:30]SAM_PROTO_GetFieldsCounters [12:25:30]wFMCommunicate request_size=4 [12:25:30]MH_SAM_APDU [12:25:30]CAPDU: 80 13 00 00 [12:25:30]Write to MH i2c: E2 08 00 CD 21 80 13 00 00 00 00 00 00 6A [12:25:30]Write i2c OK [12:25:30]MH_I2C_Read... [12:25:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:30]Read from MH i2c: E2 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: E2 62 00 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: E2 62 00 CD 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 98 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [12:25:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 98 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:30]wFMCommunicate OK [12:25:30]SAM_PROTO_GetFieldsCounters done [12:25:30]requested_item shift.num is exist - process it [12:25:30]requested_item shift.opened is exist - process it [12:25:30]req_shift_opened [12:25:30]FM_GetShiftState [12:25:30]SAM_PROTO_GetShiftState [12:25:30]wFMCommunicate request_size=4 [12:25:30]MH_SAM_APDU [12:25:30]CAPDU: 80 13 01 00 [12:25:30]Write to MH i2c: E2 08 00 CE 21 80 13 01 00 00 00 00 00 6C [12:25:30]Write i2c OK [12:25:30]MH_I2C_Read... [12:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:30]Read from MH i2c: E2 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: E2 0E 00 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: E2 0E 00 CE 21 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 AD [12:25:30]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:25:30]wFMCommunicate OK [12:25:30]SAM_PROTO_GetShiftState done [12:25:30]FM_GetShiftState done [12:25:30]req_shift_opened done [12:25:30]requested_item shift.open_date is exist - process it [12:25:30]req_shift_open_date [12:25:30]req_shift_open_date done [12:25:30]produce_requested_data done [12:25:30]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64152,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [12:25:30]process_action_free close_receipt [12:25:30]json_value_free [12:25:30]json_value_free done [12:25:30]process_json_proto returns [12:25:30]Send response to host [12:25:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64152,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [12:25:30]free response buf [12:25:30]execute_script done [12:25:30]execute_script returns [12:25:30]free content buf [12:25:30]Sock 10.Close socket [12:25:30]Sock 10.Thread stoped [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:18]accept exits with 8 [12:26:18]New connection [12:26:18]New thread 3067276644 created [12:26:18]Thread 3067133284 joined [12:26:18]Waiting for new connection... [12:26:18] Sock 8.Parse request [12:26:18]Sock 8.Check first char [12:26:18]Sock 8.First char is OK [12:26:18]request: POST /json_proto HTTP/1.0 [12:26:18]Method: POST [12:26:18]URL: /json_proto [12:26:18]Method is POST - this is cgi request [12:26:18]url: /json_proto [12:26:18]query_string will be loaded in cgi processing [12:26:18]execute_cgi json_proto POST (null) [12:26:18]execute_cgi path=json_proto method=POST [12:26:18]POST find Content-Length [12:26:18]Host: 172.17.60.69:8080 [12:26:18]Content-Length: 645 [12:26:18]Content-Type: application/json [12:26:18] [12:26:18]POST finish read [12:26:18]Found Content-Length = 645 [12:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73685", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 3.000, "sum" : 375.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:18]execute_script... [12:26:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73685", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 3.000, "sum" : 375.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:18]POST & json_proto [12:26:18]process_json_proto [12:26:18]json parsed OK: [12:26:18]protocol is kg_v1.0 [12:26:18]action value=close_receipt [12:26:18]process_action close_receipt [12:26:18]cmd_close_receipt [12:26:18]MH_GetDate [12:26:18]Write to MH i2c: F0 00 00 CF 21 DF [12:26:18]Write i2c OK [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: F0 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: F0 09 00 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: F0 09 00 CF 21 00 6D 59 60 66 D2 83 5F 66 8E [12:26:18]GetLastDocTimeStamp 1717590329 [12:26:18]current date 1717590381 [12:26:18]FM_GetShiftState [12:26:18]SAM_PROTO_GetShiftState [12:26:18]wFMCommunicate request_size=4 [12:26:18]MH_SAM_APDU [12:26:18]CAPDU: 80 13 01 00 [12:26:18]Write to MH i2c: E2 08 00 D0 21 80 13 01 00 00 00 00 00 6E [12:26:18]Write i2c OK [12:26:18]MH_I2C_Read... [12:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:18]Read from MH i2c: E2 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: E2 0E 00 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: E2 0E 00 D0 21 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 AF [12:26:18]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:26:18]wFMCommunicate OK [12:26:18]SAM_PROTO_GetShiftState done [12:26:18]FM_GetShiftState done [12:26:18]opened in 1717545925 [12:26:18]opened+sec_in_day 1717632325 [12:26:18]quantity*price = 37500 [12:26:18]sum+1 = 37501 [12:26:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 375.00 НСП 1% : 3.32 НДС 12% : 39.82 Наличными: 375.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 73 05.06.2024 12:26 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64153 ФПД: 27844349117509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T122621&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64153&fm=27844349117509&tin=02508201610067®Number=0000000000092737&sum=37500 0 [12:26:19]StoreToDocumentArchive [12:26:19]shift 375 fd 64153 [12:26:19]save to /storage/0375/doc_00064153 [12:26:19]save last doc name /storage/0375/doc_00064153 to /storage/kkm_last_doc_name [12:26:19]save OK [12:26:19]Clear old archive folders... [12:26:19]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:26:19]tlvbuf is 00FF1720 [12:26:19]SAM_PROTO_ClearQueue [12:26:19]wFMCommunicate request_size=4 [12:26:19]MH_SAM_APDU [12:26:19]CAPDU: 80 09 00 00 [12:26:19]Write to MH i2c: E2 08 00 DD 21 80 09 00 00 00 00 00 00 70 [12:26:19]Write i2c OK [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: E2 [12:26:19]MH_I2C_Read... [12:26:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:19]Read from MH i2c: E2 03 00 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: E2 03 00 DD 21 00 90 00 72 [12:26:19]RAPDU: 90 00 [12:26:19]wFMCommunicate OK [12:26:19]SAM_PROTO_ClearQueue done [12:26:19]KKMCreateOFDPacket [12:26:19]OFDProtocolAddRootSTLVToBuf [12:26:19]FM_MakeSignedData [12:26:19]FM_MakeSignedData [12:26:19]SAM_PROTO_SignData [12:26:19]wFMCommunicate request_size=4 [12:26:19]MH_SAM_APDU [12:26:19]CAPDU: 80 0D 01 02 [12:26:19]Write to MH i2c: E2 08 00 DE 21 80 0D 01 02 00 00 00 00 78 [12:26:19]Write i2c OK [12:26:19]MH_I2C_Read... [12:26:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:19]Read from MH i2c: E2 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: E2 03 00 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: E2 03 00 DE 21 00 90 00 73 [12:26:19]RAPDU: 90 00 [12:26:19]wFMCommunicate OK [12:26:19]wFMCommunicate request_size=255 [12:26:19]MH_SAM_APDU [12:26:19]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 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 6D 59 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [12:26:19]Write to MH i2c: E2 02 01 DF 21 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 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 6D 59 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 03 [12:26:19]Write i2c OK [12:26:19]MH_I2C_Read... [12:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:19]Read from MH i2c: E2 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: E2 03 00 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: E2 03 00 DF 21 00 90 00 74 [12:26:19]RAPDU: 90 00 [12:26:19]wFMCommunicate OK [12:26:19]wFMCommunicate request_size=41 [12:26:19]MH_SAM_APDU [12:26:19]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 99 FA 00 00 35 04 06 00 19 53 04 89 C4 45 [12:26:19]Write to MH i2c: E2 2C 00 E0 21 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 99 FA 00 00 35 04 06 00 19 53 04 89 C4 45 00 00 DE [12:26:19]Write i2c OK [12:26:19]MH_I2C_Read... [12:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:19]Read from MH i2c: E2 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: E2 03 00 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: E2 03 00 E0 21 00 90 00 75 [12:26:19]RAPDU: 90 00 [12:26:19]wFMCommunicate OK [12:26:19]wFMCommunicate request_size=4 [12:26:19]MH_SAM_APDU [12:26:19]CAPDU: 80 0D 03 02 [12:26:19]Write to MH i2c: E2 08 00 E1 21 80 0D 03 02 00 00 00 00 7D [12:26:19]Write i2c OK [12:26:19]MH_I2C_Read... [12:26:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:19]Read from MH i2c: E2 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: E2 0B 00 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: E2 0B 00 E1 21 00 12 B6 93 0D E4 A8 76 07 90 00 EF [12:26:19]RAPDU: 12 B6 93 0D E4 A8 76 07 90 00 [12:26:19]wFMCommunicate OK [12:26:19]SAM_PROTO_SignData done [12:26:19]FM_MakeSignedData done [12:26:19]CreateOFDProtocolMessage [12:26:19]wFMCommunicate request_size=4 [12:26:19]MH_SAM_APDU [12:26:19]CAPDU: 80 11 00 00 [12:26:19]Write to MH i2c: E2 08 00 E2 21 80 11 00 00 00 00 00 00 7D [12:26:19]Write i2c OK [12:26:19]MH_I2C_Read... [12:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:19]Read from MH i2c: E2 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: E2 17 00 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: E2 17 00 E2 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CF [12:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:26:19]wFMCommunicate OK [12:26:19]CreateOFDProtocolMessage done [12:26:19]OFDSenderStorePacket 64153 [12:26:19]StoreOFDPacket docnum=64153 [12:26:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 5E D3 26 01 80 D7 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 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 6D 59 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 99 FA 00 00 35 04 06 00 19 53 04 89 C4 45 12 B6 93 0D E4 A8 76 07 [12:26:19]CheckFolder [12:26:19]dirname=/storage/ofd_packets [12:26:19]CheckFolder done [12:26:19]ProducePacketName [12:26:19]name=ofd_packets/00064153 [12:26:19]NVStorageSaveData ofd_packets/00064153 [12:26:19]File name is /storage/ofd_packets/00064153 [12:26:19]Write 332 bytes [12:26:19]NVStorageSaveData done [12:26:19]OFDSenderStorePacket done [12:26:19]KKMCreateOFDPacket done [12:26:19]NVStorageSaveData kkm_last_timestamp [12:26:19]File name is /storage/kkm_last_timestamp [12:26:19]Write 4 bytes [12:26:19]NVStorageSaveData done [12:26:19]ExternCall_PrintAddStr [12:26:19]wPrintStart [12:26:19]Write to MH i2c: 01 00 00 E3 21 04 [12:26:19]Write i2c OK [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: 01 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: 01 07 00 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: 01 07 00 E3 21 00 00 00 00 00 FF 0F 19 [12:26:19]RasterBufferAndPrint [12:26:19]line Счет N : (3)73685 [12:26:19]line ИНН: 02508201610067 [12:26:19]line Контрольно-Кассовый Чек [12:26:19]line ПРОДАЖА [12:26:19]line Товар: 2000036220012 [12:26:19]line Кофе Капучино XL(GABB TRADE) [12:26:19]line 3.000 * 125.00 [12:26:19]line = 375.00 [12:26:19]line НДС 12% НСП 1% [12:26:19]line > о реализуемом товаре [12:26:19]line ИТОГО: 375.00 [12:26:19]line НСП 1% : 3.32 [12:26:19]line НДС 12% : 39.82 [12:26:19]line Наличными: 375.00 [12:26:19]line Безнал.: 0.00 [12:26:19]line Место: АЗС № 117 "Партнер Нефть" [12:26:19]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:26:19]line СНО: Общий режим [12:26:19]line Чек 73 05.06.2024 12:26 [12:26:19]line Смена: 375 ФФД: 1.0 [12:26:19]line ЗНМ: 0300000031 [12:26:19]line РНМ: 0000000000092737 [12:26:19]line Версия ККМ: 001 [12:26:19]line ФМ: 0000000000875074 [12:26:19]line ФД: 64153 [12:26:19]line ФПД: 27844349117509 [12:26:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T122621&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64153&fm=27844349117509&tin=02508201610067®Number=0000000000092737&sum=37500 [12:26:20]line 0 [12:26:20]OFD Sender: Processing packet 64153 [packets to send 14, broken 13] [12:26:20]ProducePacketName [12:26:20]name=ofd_packets/00064153 [12:26:20]OFD Sender: To server: pG, [12:26:20]CommunicateWithHost lk.salyk.kg:30040 [12:26:20]ConnectInit lk.salyk.kg [12:26:20]written 0, free lines is 4095 [12:26:20]Connected sock=10 [12:26:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 5E D3 26 01 80 D7 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 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 6D 59 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 99 FA 00 00 35 04 06 00 19 53 04 89 C4 45 12 B6 93 0D E4 A8 76 07 [12:26:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 F9 2E 47 00 7E B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 99 FA 00 00 F4 03 04 00 79 05 60 66 B6 04 01 00 00 08 CE CF E8 73 B7 60 A4 [12:26:20]CommunicateWithHost err = 0 [12:26:20]CheckOFDResponse [12:26:20]1017 (14) - 77093643461234 [12:26:20]1041 (16) - 0000000000875074 [12:26:20]1040 (4) - 64153 [12:26:20]1012 (4) - 05.06.2024 06:28 [12:26:20]1206 (1) - 0 [12:26:20]OFD Sender: Remove packet 64153 [12:26:20]ProducePacketName [12:26:20]name=ofd_packets/00064153 [12:26:20]NVStorageDeleteData [12:26:20]Write to MH i2c: 01 00 00 0C 22 2E [12:26:20]Write i2c OK [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: 01 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: 01 07 00 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: 01 07 00 0C 22 00 00 00 00 00 F1 0C 32 [12:26:20]RasterBufferAndPrint [12:26:20]line [12:26:20]line [12:26:20]line [12:26:20]line [12:26:20]line [12:26:20]written 0, free lines is 3323 [12:26:20]MH_Cut [12:26:20]Write to MH i2c: D1 01 00 13 22 01 07 [12:26:20]Write i2c OK [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: D1 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: D1 01 00 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: D1 01 00 13 22 00 06 [12:26:20]Write to MH i2c: 01 00 00 14 22 36 [12:26:20]Write i2c OK [12:26:20]MH_I2C_Read... [12:26:21]OFD Sender: No OFD packet to send [12:26:21]*** Cut start [12:26:21]*** Partial cut [12:26:21]*** CUTSNS_PIN = 1 [12:26:21]*** CUTSNS_PIN = 0 [12:26:21]*** Brake cut motor [12:26:22]Read from MH i2c: 01 [12:26:22]MH_I2C_Read... [12:26:22]*** Stop cut motor [12:26:22]*** Cut end [12:26:22]Read from MH i2c: 01 07 00 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: 01 07 00 14 22 00 00 00 00 00 FF 0F 4B [12:26:22]process_action close_receipt done [12:26:22]requested_data is exist [12:26:22]produce_requested_data [12:26:22]requested_item fm.sn is exist - process it [12:26:22]wFMCommunicate request_size=4 [12:26:22]MH_SAM_APDU [12:26:22]CAPDU: 80 11 00 00 [12:26:22]Write to MH i2c: E2 08 00 15 22 80 11 00 00 00 00 00 00 B1 [12:26:22]Write i2c OK [12:26:22]MH_I2C_Read... [12:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:22]Read from MH i2c: E2 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 17 00 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 17 00 15 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 03 [12:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:26:22]wFMCommunicate OK [12:26:22]requested_item fd.num is exist - process it [12:26:22]SAM_PROTO_GetFieldsCounters [12:26:22]wFMCommunicate request_size=4 [12:26:22]MH_SAM_APDU [12:26:22]CAPDU: 80 13 00 00 [12:26:22]Write to MH i2c: E2 08 00 16 22 80 13 00 00 00 00 00 00 B4 [12:26:22]Write i2c OK [12:26:22]MH_I2C_Read... [12:26:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:22]Read from MH i2c: E2 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 62 00 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 62 00 16 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 99 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [12:26:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 99 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:22]wFMCommunicate OK [12:26:22]SAM_PROTO_GetFieldsCounters done [12:26:22]requested_item shift.num is exist - process it [12:26:22]requested_item shift.opened is exist - process it [12:26:22]req_shift_opened [12:26:22]FM_GetShiftState [12:26:22]SAM_PROTO_GetShiftState [12:26:22]wFMCommunicate request_size=4 [12:26:22]MH_SAM_APDU [12:26:22]CAPDU: 80 13 01 00 [12:26:22]Write to MH i2c: E2 08 00 17 22 80 13 01 00 00 00 00 00 B6 [12:26:22]Write i2c OK [12:26:22]MH_I2C_Read... [12:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:22]Read from MH i2c: E2 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 0E 00 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 0E 00 17 22 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 F7 [12:26:22]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:26:22]wFMCommunicate OK [12:26:22]SAM_PROTO_GetShiftState done [12:26:22]FM_GetShiftState done [12:26:22]req_shift_opened done [12:26:22]requested_item shift.open_date is exist - process it [12:26:22]req_shift_open_date [12:26:22]req_shift_open_date done [12:26:22]produce_requested_data done [12:26:22]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64153,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [12:26:22]process_action_free close_receipt [12:26:22]json_value_free [12:26:22]json_value_free done [12:26:22]process_json_proto returns [12:26:22]Send response to host [12:26:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64153,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [12:26:22]free response buf [12:26:22]execute_script done [12:26:22]execute_script returns [12:26:22]free content buf [12:26:22]Sock 8.Close socket [12:26:22]Sock 8.Thread stoped [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:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:39]accept exits with 9 [12:30:39]New connection [12:30:39]New thread 3067133284 created [12:30:39]Thread 3067276644 joined [12:30:39]Waiting for new connection... [12:30:39] Sock 9.Parse request [12:30:39]Sock 9.Check first char [12:30:39]Sock 9.First char is OK [12:30:39]request: POST /json_proto HTTP/1.0 [12:30:39]Method: POST [12:30:39]URL: /json_proto [12:30:39]Method is POST - this is cgi request [12:30:39]url: /json_proto [12:30:39]query_string will be loaded in cgi processing [12:30:39]execute_cgi json_proto POST (null) [12:30:39]execute_cgi path=json_proto method=POST [12:30:39]POST find Content-Length [12:30:39]Host: 172.17.60.69:8080 [12:30:39]Content-Length: 713 [12:30:39]Content-Type: application/json [12:30:39] [12:30:39]POST finish read [12:30:39]Found Content-Length = 713 [12:30:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73686", "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" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:39]execute_script... [12:30:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73686", "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" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:39]POST & json_proto [12:30:39]process_json_proto [12:30:39]json parsed OK: [12:30:39]protocol is kg_v1.0 [12:30:39]action value=close_receipt [12:30:39]process_action close_receipt [12:30:39]cmd_close_receipt [12:30:39]MH_GetDate [12:30:39]Write to MH i2c: F0 00 00 18 22 29 [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: F0 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: F0 09 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: F0 09 00 18 22 00 72 5A 60 66 D2 83 5F 66 DE [12:30:39]GetLastDocTimeStamp 1717590381 [12:30:39]current date 1717590642 [12:30:39]FM_GetShiftState [12:30:39]SAM_PROTO_GetShiftState [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 13 01 00 [12:30:39]Write to MH i2c: E2 08 00 19 22 80 13 01 00 00 00 00 00 B8 [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 0E 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 0E 00 19 22 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 F9 [12:30:39]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:30:39]wFMCommunicate OK [12:30:39]SAM_PROTO_GetShiftState done [12:30:39]FM_GetShiftState done [12:30:39]opened in 1717545925 [12:30:39]opened+sec_in_day 1717632325 [12:30:39]quantity*price = 8000 [12:30:39]sum+1 = 8001 [12:30:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 74 05.06.2024 12:30 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64154 ФПД: 60663414962203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T123042&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64154&fm=60663414962203&tin=02508201610067®Number=0000000000092737&sum=8000 0 [12:30:40]StoreToDocumentArchive [12:30:40]shift 375 fd 64154 [12:30:40]save to /storage/0375/doc_00064154 [12:30:40]save last doc name /storage/0375/doc_00064154 to /storage/kkm_last_doc_name [12:30:40]save OK [12:30:40]Clear old archive folders... [12:30:40]ProcessDocumentItem done err = 0, tmpTLVsize=301 [12:30:40]tlvbuf is 0107B530 [12:30:40]SAM_PROTO_ClearQueue [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 09 00 00 [12:30:40]Write to MH i2c: E2 08 00 26 22 80 09 00 00 00 00 00 00 BA [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 03 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 03 00 26 22 00 90 00 BC [12:30:40]RAPDU: 90 00 [12:30:40]wFMCommunicate OK [12:30:40]SAM_PROTO_ClearQueue done [12:30:40]KKMCreateOFDPacket [12:30:40]OFDProtocolAddRootSTLVToBuf [12:30:40]FM_MakeSignedData [12:30:40]FM_MakeSignedData [12:30:40]SAM_PROTO_SignData [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 0D 01 02 [12:30:40]Write to MH i2c: E2 08 00 27 22 80 0D 01 02 00 00 00 00 C2 [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 03 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 03 00 27 22 00 90 00 BD [12:30:40]RAPDU: 90 00 [12:30:40]wFMCommunicate OK [12:30:40]wFMCommunicate request_size=255 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 0D 02 02 FA 03 00 2D 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 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 4A 00 00 00 F4 03 04 00 72 5A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 [12:30:40]Write to MH i2c: E2 02 01 28 22 80 0D 02 02 FA 00 03 00 2D 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 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 4A 00 00 00 F4 03 04 00 72 5A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 00 D8 [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 03 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 03 00 28 22 00 90 00 BE [12:30:40]RAPDU: 90 00 [12:30:40]wFMCommunicate OK [12:30:40]wFMCommunicate request_size=60 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 0D 02 02 37 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9A FA 00 00 35 04 06 00 37 2C 4D 4C B8 1B [12:30:40]Write to MH i2c: E2 3F 00 29 22 80 0D 02 02 37 00 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9A FA 00 00 35 04 06 00 37 2C 4D 4C B8 1B 00 00 4D [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 03 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 03 00 29 22 00 90 00 BF [12:30:40]RAPDU: 90 00 [12:30:40]wFMCommunicate OK [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 0D 03 02 [12:30:40]Write to MH i2c: E2 08 00 2A 22 80 0D 03 02 00 00 00 00 C7 [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 0B 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 0B 00 2A 22 00 EB 4F C1 37 49 A7 B5 F0 90 00 8F [12:30:40]RAPDU: EB 4F C1 37 49 A7 B5 F0 90 00 [12:30:40]wFMCommunicate OK [12:30:40]SAM_PROTO_SignData done [12:30:40]FM_MakeSignedData done [12:30:40]CreateOFDProtocolMessage [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 11 00 00 [12:30:40]Write to MH i2c: E2 08 00 2B 22 80 11 00 00 00 00 00 00 C7 [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 17 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 17 00 2B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 19 [12:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:30:40]wFMCommunicate OK [12:30:40]CreateOFDProtocolMessage done [12:30:40]OFDSenderStorePacket 64154 [12:30:40]StoreOFDPacket docnum=64154 [12:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 41 01 00 00 2D 65 39 01 2B AB 5A 03 01 00 03 00 2D 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 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 4A 00 00 00 F4 03 04 00 72 5A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9A FA 00 00 35 04 06 00 37 2C 4D 4C B8 1B EB 4F C1 37 49 A7 B5 F0 [12:30:40]CheckFolder [12:30:40]dirname=/storage/ofd_packets [12:30:40]CheckFolder done [12:30:40]ProducePacketName [12:30:40]name=ofd_packets/00064154 [12:30:40]NVStorageSaveData ofd_packets/00064154 [12:30:40]File name is /storage/ofd_packets/00064154 [12:30:40]Write 351 bytes [12:30:40]NVStorageSaveData done [12:30:40]OFDSenderStorePacket done [12:30:40]KKMCreateOFDPacket done [12:30:40]NVStorageSaveData kkm_last_timestamp [12:30:40]File name is /storage/kkm_last_timestamp [12:30:40]Write 4 bytes [12:30:40]NVStorageSaveData done [12:30:40]ExternCall_PrintAddStr [12:30:40]wPrintStart [12:30:40]Write to MH i2c: 01 00 00 2C 22 4E [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: 01 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: 01 07 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: 01 07 00 2C 22 00 00 00 00 00 FF 0F 63 [12:30:40]RasterBufferAndPrint [12:30:40]line Счет N : (3)73686 [12:30:40]line ИНН: 02508201610067 [12:30:40]line Контрольно-Кассовый Чек [12:30:40]line ПРОДАЖА [12:30:40]line Товар: 4860019001810 [12:30:40]line Вода Боржоми минеральная ж/б 0,33л [12:30:40]line 1.000 * 80.00 [12:30:40]line = 80.00 [12:30:40]line НДС 12% НСП 1% [12:30:40]line > о реализуемом товаре [12:30:40]line ИТОГО: 80.00 [12:30:40]line НСП 1% : 0.71 [12:30:40]line НДС 12% : 8.50 [12:30:40]line Наличными: 80.00 [12:30:40]line Безнал.: 0.00 [12:30:40]line Место: АЗС № 117 "Партнер Нефть" [12:30:40]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:30:40]line СНО: Общий режим [12:30:40]line Чек 74 05.06.2024 12:30 [12:30:40]line Смена: 375 ФФД: 1.0 [12:30:40]line ЗНМ: 0300000031 [12:30:40]line РНМ: 0000000000092737 [12:30:40]line Версия ККМ: 001 [12:30:40]line ФМ: 0000000000875074 [12:30:40]line ФД: 64154 [12:30:40]line ФПД: 60663414962203 [12:30:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T123042&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64154&fm=60663414962203&tin=02508201610067®Number=0000000000092737&sum=8000 [12:30:41]line 0 [12:30:41]OFD Sender: Processing packet 64154 [packets to send 14, broken 13] [12:30:41]ProducePacketName [12:30:41]name=ofd_packets/00064154 [12:30:41]OFD Sender: To server: pG, [12:30:41]CommunicateWithHost lk.salyk.kg:30040 [12:30:41]ConnectInit lk.salyk.kg [12:30:41]written 0, free lines is 4095 [12:30:41]Connected sock=10 [12:30:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 41 01 00 00 2D 65 39 01 2B AB 5A 03 01 00 03 00 2D 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 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 4A 00 00 00 F4 03 04 00 72 5A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9A FA 00 00 35 04 06 00 37 2C 4D 4C B8 1B EB 4F C1 37 49 A7 B5 F0 [12:30:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 E2 72 47 00 9C AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9A FA 00 00 F4 03 04 00 7E 06 60 66 B6 04 01 00 00 B6 CD DA EB 38 4C 91 B1 [12:30:41]CommunicateWithHost err = 0 [12:30:41]CheckOFDResponse [12:30:41]1017 (14) - 77093643461234 [12:30:41]1041 (16) - 0000000000875074 [12:30:41]1040 (4) - 64154 [12:30:41]1012 (4) - 05.06.2024 06:32 [12:30:41]1206 (1) - 0 [12:30:41]OFD Sender: Remove packet 64154 [12:30:41]ProducePacketName [12:30:41]name=ofd_packets/00064154 [12:30:41]NVStorageDeleteData [12:30:41]Write to MH i2c: 01 00 00 55 22 77 [12:30:41]Write i2c OK [12:30:41]MH_I2C_Read... [12:30:41]Read from MH i2c: 01 [12:30:41]MH_I2C_Read... [12:30:41]Read from MH i2c: 01 07 00 [12:30:41]MH_I2C_Read... [12:30:41]Read from MH i2c: 01 07 00 55 22 00 00 00 00 00 D3 0C 5D [12:30:41]RasterBufferAndPrint [12:30:41]line [12:30:41]line [12:30:41]line [12:30:41]line [12:30:41]line [12:30:41]written 0, free lines is 3290 [12:30:41]MH_Cut [12:30:41]Write to MH i2c: D1 01 00 5C 22 01 50 [12:30:41]Write i2c OK [12:30:41]MH_I2C_Read... [12:30:41]Read from MH i2c: D1 [12:30:41]MH_I2C_Read... [12:30:41]Read from MH i2c: D1 01 00 [12:30:41]MH_I2C_Read... [12:30:41]Read from MH i2c: D1 01 00 5C 22 00 4F [12:30:41]Write to MH i2c: 01 00 00 5D 22 7F [12:30:41]Write i2c OK [12:30:41]MH_I2C_Read... [12:30:41]OFD Sender: No OFD packet to send [12:30:42]*** Cut start [12:30:42]*** Partial cut [12:30:42]*** CUTSNS_PIN = 1 [12:30:42]*** CUTSNS_PIN = 0 [12:30:42]*** Brake cut motor [12:30:43]Read from MH i2c: 01 [12:30:43]MH_I2C_Read... [12:30:43]*** Stop cut motor [12:30:43]*** Cut end [12:30:43]Read from MH i2c: 01 07 00 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: 01 07 00 5D 22 00 00 00 00 00 FF 0F 94 [12:30:43]process_action close_receipt done [12:30:43]requested_data is exist [12:30:43]produce_requested_data [12:30:43]requested_item fm.sn is exist - process it [12:30:43]wFMCommunicate request_size=4 [12:30:43]MH_SAM_APDU [12:30:43]CAPDU: 80 11 00 00 [12:30:43]Write to MH i2c: E2 08 00 5E 22 80 11 00 00 00 00 00 00 FA [12:30:43]Write i2c OK [12:30:43]MH_I2C_Read... [12:30:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:43]Read from MH i2c: E2 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: E2 17 00 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: E2 17 00 5E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4C [12:30:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:30:43]wFMCommunicate OK [12:30:43]requested_item fd.num is exist - process it [12:30:43]SAM_PROTO_GetFieldsCounters [12:30:43]wFMCommunicate request_size=4 [12:30:43]MH_SAM_APDU [12:30:43]CAPDU: 80 13 00 00 [12:30:43]Write to MH i2c: E2 08 00 5F 22 80 13 00 00 00 00 00 00 FD [12:30:43]Write i2c OK [12:30:43]MH_I2C_Read... [12:30:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:43]Read from MH i2c: E2 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: E2 62 00 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: E2 62 00 5F 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9A FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [12:30:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9A FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:43]wFMCommunicate OK [12:30:43]SAM_PROTO_GetFieldsCounters done [12:30:43]requested_item shift.num is exist - process it [12:30:43]requested_item shift.opened is exist - process it [12:30:43]req_shift_opened [12:30:43]FM_GetShiftState [12:30:43]SAM_PROTO_GetShiftState [12:30:43]wFMCommunicate request_size=4 [12:30:43]MH_SAM_APDU [12:30:43]CAPDU: 80 13 01 00 [12:30:43]Write to MH i2c: E2 08 00 60 22 80 13 01 00 00 00 00 00 FF [12:30:43]Write i2c OK [12:30:43]MH_I2C_Read... [12:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:43]Read from MH i2c: E2 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: E2 0E 00 [12:30:43]MH_I2C_Read... [12:30:43]Read from MH i2c: E2 0E 00 60 22 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 40 [12:30:43]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:30:43]wFMCommunicate OK [12:30:43]SAM_PROTO_GetShiftState done [12:30:43]FM_GetShiftState done [12:30:43]req_shift_opened done [12:30:43]requested_item shift.open_date is exist - process it [12:30:43]req_shift_open_date [12:30:43]req_shift_open_date done [12:30:43]produce_requested_data done [12:30:43]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64154,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [12:30:43]process_action_free close_receipt [12:30:43]json_value_free [12:30:43]json_value_free done [12:30:43]process_json_proto returns [12:30:43]Send response to host [12:30:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64154,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [12:30:43]free response buf [12:30:43]execute_script done [12:30:43]execute_script returns [12:30:43]free content buf [12:30:43]Sock 9.Close socket [12:30:43]Sock 9.Thread stoped [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]accept exits with 8 [12:37:17]New connection [12:37:17]New thread 3067276644 created [12:37:17]Thread 3067133284 joined [12:37:17]Waiting for new connection... [12:37:17] Sock 8.Parse request [12:37:17]Sock 8.Check first char [12:37:17]Sock 8.First char is OK [12:37:17]request: POST /json_proto HTTP/1.0 [12:37:17]Method: POST [12:37:17]URL: /json_proto [12:37:17]Method is POST - this is cgi request [12:37:17]url: /json_proto [12:37:17]query_string will be loaded in cgi processing [12:37:17]execute_cgi json_proto POST (null) [12:37:17]execute_cgi path=json_proto method=POST [12:37:17]POST find Content-Length [12:37:17]Host: 172.17.60.69:8080 [12:37:17]Content-Length: 1011 [12:37:17]Content-Type: application/json [12:37:17] [12:37:17]POST finish read [12:37:17]Found Content-Length = 1011 [12:37:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73687", "tax_sys" : 0, "items" : [ { "code": "4700000481972", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442-\u043C\u0430\u0440\u0430\u043A\u0443\u0439\u044F 0", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:17]execute_script... [12:37: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)73687", "tax_sys" : 0, "items" : [ { "code": "4700000481972", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442-\u043C\u0430\u0440\u0430\u043A\u0443\u0439\u044F 0", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:17]POST & json_proto [12:37:17]process_json_proto [12:37:17]json parsed OK: [12:37:17]protocol is kg_v1.0 [12:37:17]action value=close_receipt [12:37:17]process_action close_receipt [12:37:17]cmd_close_receipt [12:37:17]MH_GetDate [12:37:17]Write to MH i2c: F0 00 00 61 22 72 [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: F0 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: F0 09 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: F0 09 00 61 22 00 00 5C 60 66 D2 83 5F 66 B7 [12:37:17]GetLastDocTimeStamp 1717590642 [12:37:17]current date 1717591040 [12:37:17]FM_GetShiftState [12:37:17]SAM_PROTO_GetShiftState [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 13 01 00 [12:37:17]Write to MH i2c: E2 08 00 62 22 80 13 01 00 00 00 00 00 01 [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]OFD Sender: No OFD packet to send [12:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 0E 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 0E 00 62 22 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 42 [12:37:17]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:37:17]wFMCommunicate OK [12:37:17]SAM_PROTO_GetShiftState done [12:37:17]FM_GetShiftState done [12:37:17]opened in 1717545925 [12:37:17]opened+sec_in_day 1717632325 [12:37:17]quantity*price = 9500 [12:37:17]sum+1 = 9501 [12:37:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 75 05.06.2024 12:37 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64155 ФПД: 189397227818128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T123720&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64155&fm=189397227818128&tin=02508201610067®Number=0000000000092737&sum=19000 0 [12:37:18]StoreToDocumentArchive [12:37:18]shift 375 fd 64155 [12:37:18]save to /storage/0375/doc_00064155 [12:37:18]save last doc name /storage/0375/doc_00064155 to /storage/kkm_last_doc_name [12:37:18]save OK [12:37:18]Clear old archive folders... [12:37:18]ProcessDocumentItem done err = 0, tmpTLVsize=434 [12:37:18]tlvbuf is 0101D850 [12:37:18]SAM_PROTO_ClearQueue [12:37:18]wFMCommunicate request_size=4 [12:37:18]MH_SAM_APDU [12:37:18]CAPDU: 80 09 00 00 [12:37:18]Write to MH i2c: E2 08 00 6F 22 80 09 00 00 00 00 00 00 03 [12:37:18]Write i2c OK [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: E2 [12:37:18]MH_I2C_Read... [12:37:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:18]Read from MH i2c: E2 03 00 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: E2 03 00 6F 22 00 90 00 05 [12:37:18]RAPDU: 90 00 [12:37:18]wFMCommunicate OK [12:37:18]SAM_PROTO_ClearQueue done [12:37:18]KKMCreateOFDPacket [12:37:18]OFDProtocolAddRootSTLVToBuf [12:37:18]FM_MakeSignedData [12:37:18]FM_MakeSignedData [12:37:18]SAM_PROTO_SignData [12:37:18]wFMCommunicate request_size=4 [12:37:18]MH_SAM_APDU [12:37:18]CAPDU: 80 0D 01 02 [12:37:18]Write to MH i2c: E2 08 00 70 22 80 0D 01 02 00 00 00 00 0B [12:37:18]Write i2c OK [12:37:18]MH_I2C_Read... [12:37:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:18]Read from MH i2c: E2 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: E2 03 00 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: E2 03 00 70 22 00 90 00 06 [12:37:18]RAPDU: 90 00 [12:37:18]wFMCommunicate OK [12:37:18]wFMCommunicate request_size=255 [12:37:18]MH_SAM_APDU [12:37:18]CAPDU: 80 0D 02 02 FA 03 00 B2 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 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 [12:37:18]Write to MH i2c: E2 02 01 71 22 80 0D 02 02 FA 00 03 00 B2 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 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 00 00 54 [12:37:18]Write i2c OK [12:37:18]MH_I2C_Read... [12:37:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:18]Read from MH i2c: E2 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: E2 03 00 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: E2 03 00 71 22 00 90 00 07 [12:37:18]RAPDU: 90 00 [12:37:18]wFMCommunicate OK [12:37:18]wFMCommunicate request_size=193 [12:37:18]MH_SAM_APDU [12:37:18]CAPDU: 80 0D 02 02 BC 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 4B 00 00 00 F4 03 04 00 00 5C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9B FA 00 00 35 04 06 00 AC 41 7A 7C 4C 90 [12:37:18]Write to MH i2c: E2 C4 00 72 22 80 0D 02 02 BC 00 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 4B 00 00 00 F4 03 04 00 00 5C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9B FA 00 00 35 04 06 00 AC 41 7A 7C 4C 90 00 00 93 [12:37:18]Write i2c OK [12:37:18]MH_I2C_Read... [12:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:19]Read from MH i2c: E2 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 03 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 03 00 72 22 00 90 00 08 [12:37:19]RAPDU: 90 00 [12:37:19]wFMCommunicate OK [12:37:19]wFMCommunicate request_size=4 [12:37:19]MH_SAM_APDU [12:37:19]CAPDU: 80 0D 03 02 [12:37:19]Write to MH i2c: E2 08 00 73 22 80 0D 03 02 00 00 00 00 10 [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:19]Read from MH i2c: E2 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 0B 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 0B 00 73 22 00 40 B1 6F C2 80 E5 5F A0 90 00 97 [12:37:19]RAPDU: 40 B1 6F C2 80 E5 5F A0 90 00 [12:37:19]wFMCommunicate OK [12:37:19]SAM_PROTO_SignData done [12:37:19]FM_MakeSignedData done [12:37:19]CreateOFDProtocolMessage [12:37:19]wFMCommunicate request_size=4 [12:37:19]MH_SAM_APDU [12:37:19]CAPDU: 80 11 00 00 [12:37:19]Write to MH i2c: E2 08 00 74 22 80 11 00 00 00 00 00 00 10 [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:19]Read from MH i2c: E2 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 17 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 17 00 74 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 62 [12:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:37:19]wFMCommunicate OK [12:37:19]CreateOFDProtocolMessage done [12:37:19]OFDSenderStorePacket 64155 [12:37:19]StoreOFDPacket docnum=64155 [12:37:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 C6 01 00 00 2D 78 BE 01 CF A9 5A 03 01 00 03 00 B2 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 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 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 4B 00 00 00 F4 03 04 00 00 5C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9B FA 00 00 35 04 06 00 AC 41 7A 7C 4C 90 40 B1 6F C2 80 E5 5F A0 [12:37:19]CheckFolder [12:37:19]dirname=/storage/ofd_packets [12:37:19]CheckFolder done [12:37:19]ProducePacketName [12:37:19]name=ofd_packets/00064155 [12:37:19]NVStorageSaveData ofd_packets/00064155 [12:37:19]File name is /storage/ofd_packets/00064155 [12:37:19]Write 484 bytes [12:37:19]NVStorageSaveData done [12:37:19]OFDSenderStorePacket done [12:37:19]KKMCreateOFDPacket done [12:37:19]NVStorageSaveData kkm_last_timestamp [12:37:19]File name is /storage/kkm_last_timestamp [12:37:19]Write 4 bytes [12:37:19]NVStorageSaveData done [12:37:19]ExternCall_PrintAddStr [12:37:19]wPrintStart [12:37:19]Write to MH i2c: 01 00 00 75 22 97 [12:37:19]OFD Sender: Processing packet 64155 [packets to send 14, broken 13] [12:37:19]ProducePacketName [12:37:19]name=ofd_packets/00064155 [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]OFD Sender: To server: pG, [12:37:19]CommunicateWithHost lk.salyk.kg:30040 [12:37:19]ConnectInit lk.salyk.kg [12:37:19]Read from MH i2c: 01 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: 01 07 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: 01 07 00 75 22 00 00 00 00 00 FF 0F AC [12:37:19]RasterBufferAndPrint [12:37:19]line Счет N : (3)73687 [12:37:19]line ИНН: 02508201610067 [12:37:19]line Контрольно-Кассовый Чек [12:37:19]line ПРОДАЖА [12:37:19]line Товар: 4700000481972 [12:37:19]line Напиток энерг Nitro грейпфрут-маракуйя 0 [12:37:19]line 1.000 * 95.00 [12:37:19]line = 95.00 [12:37:19]line НДС 12% НСП 1% [12:37:19]line > о реализуемом товаре [12:37:19]line Товар: 4700000480050 [12:37:19]line Напиток Nitro Energy эн green ж/б 0,45л [12:37:19]line 1.000 * 95.00 [12:37:19]line = 95.00 [12:37:19]line НДС 12% НСП 1% [12:37:19]line > о реализуемом товаре [12:37:19]line ИТОГО: 190.00 [12:37:19]line НСП 1% : 1.68 [12:37:19]line НДС 12% : 20.18 [12:37:19]line Наличными: 190.00 [12:37:19]line Безнал.: 0.00 [12:37:19]line Место: АЗС № 117 "Партнер Нефть" [12:37:19]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:37:19]line СНО: Общий режим [12:37:19]line Чек 75 05.06.2024 12:37 [12:37:19]line Смена: 375 ФФД: 1.0 [12:37:19]line ЗНМ: 0300000031 [12:37:19]line РНМ: 0000000000092737 [12:37:19]line Версия ККМ: 001 [12:37:19]line ФМ: 0000000000875074 [12:37:19]line ФД: 64155 [12:37:19]line ФПД: 189397227818128 [12:37:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T123720&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64155&fm=189397227818128&tin=02508201610067®Number=0000000000092737&sum=19000 [12:37:19]line 0 [12:37:19]written 0, free lines is 4095 [12:37:19]Connected sock=10 [12:37:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 C6 01 00 00 2D 78 BE 01 CF A9 5A 03 01 00 03 00 B2 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 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 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 4B 00 00 00 F4 03 04 00 00 5C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9B FA 00 00 35 04 06 00 AC 41 7A 7C 4C 90 40 B1 6F C2 80 E5 5F A0 [12:37:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 73 D6 47 00 06 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9B FA 00 00 F4 03 04 00 0C 08 60 66 B6 04 01 00 00 74 17 1C A0 30 EB 95 DE [12:37:19]CommunicateWithHost err = 0 [12:37:19]CheckOFDResponse [12:37:19]1017 (14) - 77093643461234 [12:37:19]1041 (16) - 0000000000875074 [12:37:19]1040 (4) - 64155 [12:37:19]1012 (4) - 05.06.2024 06:39 [12:37:19]1206 (1) - 0 [12:37:19]OFD Sender: Remove packet 64155 [12:37:19]ProducePacketName [12:37:19]name=ofd_packets/00064155 [12:37:19]NVStorageDeleteData [12:37:19]Write to MH i2c: 01 00 00 A5 22 C7 [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: 01 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: 01 07 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: 01 07 00 A5 22 00 00 00 00 00 71 0C 4B [12:37:19]RasterBufferAndPrint [12:37:19]line [12:37:19]line [12:37:19]line [12:37:19]line [12:37:19]line [12:37:19]written 0, free lines is 3195 [12:37:20]MH_Cut [12:37:20]Write to MH i2c: D1 01 00 AC 22 01 A0 [12:37:20]Write i2c OK [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: D1 [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: D1 01 00 [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: D1 01 00 AC 22 00 9F [12:37:20]Write to MH i2c: 01 00 00 AD 22 CF [12:37:20]Write i2c OK [12:37:20]MH_I2C_Read... [12:37:20]OFD Sender: No OFD packet to send [12:37:20]*** Cut start [12:37:20]*** Partial cut [12:37:20]*** CUTSNS_PIN = 1 [12:37:20]*** CUTSNS_PIN = 0 [12:37:21]*** Brake cut motor [12:37:21]Read from MH i2c: 01 [12:37:21]MH_I2C_Read... [12:37:21]*** Stop cut motor [12:37:21]*** Cut end [12:37:21]Read from MH i2c: 01 07 00 [12:37:21]MH_I2C_Read... [12:37:21]Read from MH i2c: 01 07 00 AD 22 00 00 00 00 00 FF 0F E4 [12:37:21]process_action close_receipt done [12:37:21]requested_data is exist [12:37:21]produce_requested_data [12:37:21]requested_item fm.sn is exist - process it [12:37:21]wFMCommunicate request_size=4 [12:37:21]MH_SAM_APDU [12:37:21]CAPDU: 80 11 00 00 [12:37:21]Write to MH i2c: E2 08 00 AE 22 80 11 00 00 00 00 00 00 4A [12:37:21]Write i2c OK [12:37:21]MH_I2C_Read... [12:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:21]Read from MH i2c: E2 [12:37:21]MH_I2C_Read... [12:37:21]Read from MH i2c: E2 17 00 [12:37:21]MH_I2C_Read... [12:37:21]Read from MH i2c: E2 17 00 AE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9C [12:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:37:21]wFMCommunicate OK [12:37:21]requested_item fd.num is exist - process it [12:37:21]SAM_PROTO_GetFieldsCounters [12:37:21]wFMCommunicate request_size=4 [12:37:21]MH_SAM_APDU [12:37:21]CAPDU: 80 13 00 00 [12:37:21]Write to MH i2c: E2 08 00 AF 22 80 13 00 00 00 00 00 00 4D [12:37:21]Write i2c OK [12:37:21]MH_I2C_Read... [12:37:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:21]Read from MH i2c: E2 [12:37:21]MH_I2C_Read... [12:37:21]Read from MH i2c: E2 62 00 [12:37:21]MH_I2C_Read... [12:37:21]Read from MH i2c: E2 62 00 AF 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9B FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [12:37:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9B FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:21]wFMCommunicate OK [12:37:21]SAM_PROTO_GetFieldsCounters done [12:37:21]requested_item shift.num is exist - process it [12:37:21]requested_item shift.opened is exist - process it [12:37:21]req_shift_opened [12:37:21]FM_GetShiftState [12:37:21]SAM_PROTO_GetShiftState [12:37:21]wFMCommunicate request_size=4 [12:37:21]MH_SAM_APDU [12:37:21]CAPDU: 80 13 01 00 [12:37:21]Write to MH i2c: E2 08 00 B0 22 80 13 01 00 00 00 00 00 4F [12:37:21]Write i2c OK [12:37:21]MH_I2C_Read... [12:37:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:21]Read from MH i2c: E2 [12:37:21]MH_I2C_Read... [12:37:21]Read from MH i2c: E2 0E 00 [12:37:21]MH_I2C_Read... [12:37:21]Read from MH i2c: E2 0E 00 B0 22 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 90 [12:37:21]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:37:21]wFMCommunicate OK [12:37:21]SAM_PROTO_GetShiftState done [12:37:21]FM_GetShiftState done [12:37:21]req_shift_opened done [12:37:21]requested_item shift.open_date is exist - process it [12:37:21]req_shift_open_date [12:37:21]req_shift_open_date done [12:37:21]produce_requested_data done [12:37:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64155,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [12:37:21]process_action_free close_receipt [12:37:21]json_value_free [12:37:21]json_value_free done [12:37:21]process_json_proto returns [12:37:21]Send response to host [12:37:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64155,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [12:37:21]free response buf [12:37:21]execute_script done [12:37:21]execute_script returns [12:37:21]free content buf [12:37:21]Sock 8.Close socket [12:37:21]Sock 8.Thread stoped [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:21]accept exits with 9 [12:38:21]New connection [12:38:21]New thread 3067133284 created [12:38:21]Thread 3067276644 joined [12:38:21]Waiting for new connection... [12:38:21] Sock 9.Parse request [12:38:21]Sock 9.Check first char [12:38:21]Sock 9.First char is OK [12:38:21]request: POST /json_proto HTTP/1.0 [12:38:21]Method: POST [12:38:21]URL: /json_proto [12:38:21]Method is POST - this is cgi request [12:38:21]url: /json_proto [12:38:21]query_string will be loaded in cgi processing [12:38:21]execute_cgi json_proto POST (null) [12:38:21]execute_cgi path=json_proto method=POST [12:38:21]POST find Content-Length [12:38:21]Host: 172.17.60.69:8080 [12:38:21]Content-Length: 679 [12:38:21]Content-Type: application/json [12:38:21] [12:38:21]POST finish read [12:38:21]Found Content-Length = 679 [12:38:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.860, "sum" : 1010.39, "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" ] } } [12:38:21]execute_script... [12:38: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)545688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.860, "sum" : 1010.39, "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" ] } } [12:38:21]POST & json_proto [12:38:21]process_json_proto [12:38:21]json parsed OK: [12:38:21]protocol is kg_v1.0 [12:38:21]action value=close_receipt [12:38:21]process_action close_receipt [12:38:21]cmd_close_receipt [12:38:21]MH_GetDate [12:38:21]Write to MH i2c: F0 00 00 B1 22 C2 [12:38:21]Write i2c OK [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: F0 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: F0 09 00 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: F0 09 00 B1 22 00 41 5C 60 66 D2 83 5F 66 48 [12:38:21]GetLastDocTimeStamp 1717591040 [12:38:21]current date 1717591105 [12:38:21]FM_GetShiftState [12:38:21]SAM_PROTO_GetShiftState [12:38:21]wFMCommunicate request_size=4 [12:38:21]MH_SAM_APDU [12:38:21]CAPDU: 80 13 01 00 [12:38:21]Write to MH i2c: E2 08 00 B2 22 80 13 01 00 00 00 00 00 51 [12:38:21]Write i2c OK [12:38:21]MH_I2C_Read... [12:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:21]Read from MH i2c: E2 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: E2 0E 00 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: E2 0E 00 B2 22 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 92 [12:38:21]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:38:21]wFMCommunicate OK [12:38:21]SAM_PROTO_GetShiftState done [12:38:21]FM_GetShiftState done [12:38:21]opened in 1717545925 [12:38:21]opened+sec_in_day 1717632325 [12:38:21]quantity*price = 101039 [12:38:21]sum+1 = 101040 [12:38:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1010.00 Внесено: 1010.00 СДАЧА: 0.00 НСП 1% : 8.94 НДС 12% : 107.30 Наличными: 1010.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 76 05.06.2024 12:38 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64156 ФПД: 92380727033135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T123825&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64156&fm=92380727033135&tin=02508201610067®Number=0000000000092737&sum=101000 [12:38:23]StoreToDocumentArchive [12:38:23]shift 375 fd 64156 [12:38:23]save to /storage/0375/doc_00064156 [12:38:23]save last doc name /storage/0375/doc_00064156 to /storage/kkm_last_doc_name [12:38:23]save OK [12:38:23]Clear old archive folders... [12:38:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:38:23]tlvbuf is 0101DB50 [12:38:23]SAM_PROTO_ClearQueue [12:38:23]wFMCommunicate request_size=4 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 09 00 00 [12:38:23]Write to MH i2c: E2 08 00 BF 22 80 09 00 00 00 00 00 00 53 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 03 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 03 00 BF 22 00 90 00 55 [12:38:23]RAPDU: 90 00 [12:38:23]wFMCommunicate OK [12:38:23]SAM_PROTO_ClearQueue done [12:38:23]KKMCreateOFDPacket [12:38:23]OFDProtocolAddRootSTLVToBuf [12:38:23]FM_MakeSignedData [12:38:23]FM_MakeSignedData [12:38:23]SAM_PROTO_SignData [12:38:23]wFMCommunicate request_size=4 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 0D 01 02 [12:38:23]Write to MH i2c: E2 08 00 C0 22 80 0D 01 02 00 00 00 00 5B [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 03 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 03 00 C0 22 00 90 00 56 [12:38:23]RAPDU: 90 00 [12:38:23]wFMCommunicate OK [12:38:23]wFMCommunicate request_size=255 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 36 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AF 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 EA 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 4C 00 00 00 F4 03 04 00 41 5C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9C FA 00 00 35 04 06 00 54 05 10 6B [12:38:23]Write to MH i2c: E2 02 01 C1 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 36 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AF 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 EA 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 4C 00 00 00 F4 03 04 00 41 5C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9C FA 00 00 35 04 06 00 54 05 10 6B 00 00 2F [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 03 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 03 00 C1 22 00 90 00 57 [12:38:23]RAPDU: 90 00 [12:38:23]wFMCommunicate OK [12:38:23]wFMCommunicate request_size=7 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 0D 02 02 02 3D 2F [12:38:23]Write to MH i2c: E2 0A 00 C2 22 80 0D 02 02 02 00 3D 2F 00 00 CE [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 03 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 03 00 C2 22 00 90 00 58 [12:38:23]RAPDU: 90 00 [12:38:23]wFMCommunicate OK [12:38:23]wFMCommunicate request_size=4 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 0D 03 02 [12:38:23]Write to MH i2c: E2 08 00 C3 22 80 0D 03 02 00 00 00 00 60 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 0B 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 0B 00 C3 22 00 4E 36 2C 7F AC 44 D2 17 90 00 69 [12:38:23]RAPDU: 4E 36 2C 7F AC 44 D2 17 90 00 [12:38:23]wFMCommunicate OK [12:38:23]SAM_PROTO_SignData done [12:38:23]FM_MakeSignedData done [12:38:23]CreateOFDProtocolMessage [12:38:23]wFMCommunicate request_size=4 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 11 00 00 [12:38:23]Write to MH i2c: E2 08 00 C4 22 80 11 00 00 00 00 00 00 60 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 17 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 17 00 C4 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B2 [12:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:38:23]wFMCommunicate OK [12:38:23]CreateOFDProtocolMessage done [12:38:23]OFDSenderStorePacket 64156 [12:38:23]StoreOFDPacket docnum=64156 [12:38:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 79 97 04 01 D8 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 36 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AF 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 EA 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 4C 00 00 00 F4 03 04 00 41 5C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9C FA 00 00 35 04 06 00 54 05 10 6B 3D 2F 4E 36 2C 7F AC 44 D2 17 [12:38:23]CheckFolder [12:38:23]dirname=/storage/ofd_packets [12:38:23]CheckFolder done [12:38:23]ProducePacketName [12:38:23]name=ofd_packets/00064156 [12:38:23]NVStorageSaveData ofd_packets/00064156 [12:38:23]File name is /storage/ofd_packets/00064156 [12:38:23]Write 298 bytes [12:38:23]NVStorageSaveData done [12:38:23]OFDSenderStorePacket done [12:38:23]KKMCreateOFDPacket done [12:38:23]NVStorageSaveData kkm_last_timestamp [12:38:23]File name is /storage/kkm_last_timestamp [12:38:23]Write 4 bytes [12:38:23]NVStorageSaveData done [12:38:23]ExternCall_PrintAddStr [12:38:23]wPrintStart [12:38:23]Write to MH i2c: 01 00 00 C5 22 E7 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: 01 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: 01 07 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: 01 07 00 C5 22 00 00 00 00 00 FF 0F FC [12:38:23]RasterBufferAndPrint [12:38:23]line Счет N : (1)545688 [12:38:23]line ИНН: 02508201610067 [12:38:23]line Контрольно-Кассовый Чек [12:38:23]line ПРОДАЖА [12:38:23]line ТРК (МРК, ГНК) : 31 [12:38:23]line Товар: 2710194210 [12:38:23]line ДТ-К-5 [12:38:23]line 13.860 * 72.90 [12:38:23]line = 1010.39 [12:38:23]line НДС 12% НСП 1% [12:38:23]line > о реализуемом товаре [12:38:23]line ОКРУГЛЕНИЕ: -0.39 [12:38:23]line ИТОГО: 1010.00 [12:38:23]line Внесено: 1010.00 [12:38:23]line СДАЧА: 0.00 [12:38:23]line НСП 1% : 8.94 [12:38:23]line НДС 12% : 107.30 [12:38:23]line Наличными: 1010.00 [12:38:23]line Безнал.: 0.00 [12:38:23]line Место: АЗС № 117 "Партнер Нефть" [12:38:23]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:38:23]line СНО: Общий режим [12:38:23]line Чек 76 05.06.2024 12:38 [12:38:23]line Смена: 375 ФФД: 1.0 [12:38:23]line ЗНМ: 0300000031 [12:38:23]line РНМ: 0000000000092737 [12:38:23]line Версия ККМ: 001 [12:38:23]line ФМ: 0000000000875074 [12:38:23]line ФД: 64156 [12:38:23]line ФПД: 92380727033135 [12:38:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T123825&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64156&fm=92380727033135&tin=02508201610067®Number=0000000000092737&sum=101000 [12:38:23]OFD Sender: Processing packet 64156 [packets to send 14, broken 13] [12:38:23]ProducePacketName [12:38:23]name=ofd_packets/00064156 [12:38:23]OFD Sender: To server: pG, [12:38:23]CommunicateWithHost lk.salyk.kg:30040 [12:38:23]ConnectInit lk.salyk.kg [12:38:23]written 0, free lines is 4095 [12:38:24]Connected sock=10 [12:38:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 79 97 04 01 D8 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 36 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AF 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 EA 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 4C 00 00 00 F4 03 04 00 41 5C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9C FA 00 00 35 04 06 00 54 05 10 6B 3D 2F 4E 36 2C 7F AC 44 D2 17 [12:38:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 F4 02 47 00 BA 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9C FA 00 00 F4 03 04 00 4D 08 60 66 B6 04 01 00 00 95 DD FD 0F 6D FC FD 1C [12:38:24]CommunicateWithHost err = 0 [12:38:24]CheckOFDResponse [12:38:24]1017 (14) - 77093643461234 [12:38:24]1041 (16) - 0000000000875074 [12:38:24]1040 (4) - 64156 [12:38:24]1012 (4) - 05.06.2024 06:40 [12:38:24]1206 (1) - 0 [12:38:24]OFD Sender: Remove packet 64156 [12:38:24]ProducePacketName [12:38:24]name=ofd_packets/00064156 [12:38:24]NVStorageDeleteData [12:38:24]Write to MH i2c: 01 00 00 F0 22 12 [12:38:24]Write i2c OK [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: 01 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: 01 07 00 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: 01 07 00 F0 22 00 00 00 00 00 E4 0C 09 [12:38:24]RasterBufferAndPrint [12:38:24]line [12:38:24]line [12:38:24]line [12:38:24]line [12:38:24]line [12:38:24]written 0, free lines is 3306 [12:38:24]MH_Cut [12:38:24]Write to MH i2c: D1 01 00 F7 22 01 EB [12:38:24]Write i2c OK [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: D1 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: D1 01 00 [12:38:24]MH_I2C_Read... [12:38:24]Read from MH i2c: D1 01 00 F7 22 00 EA [12:38:24]Write to MH i2c: 01 00 00 F8 22 1A [12:38:24]Write i2c OK [12:38:24]MH_I2C_Read... [12:38:24]OFD Sender: No OFD packet to send [12:38:25]*** Cut start [12:38:25]*** Partial cut [12:38:25]*** CUTSNS_PIN = 1 [12:38:25]*** CUTSNS_PIN = 0 [12:38:25]*** Brake cut motor [12:38:25]Read from MH i2c: 01 [12:38:25]MH_I2C_Read... [12:38:25]*** Stop cut motor [12:38:25]*** Cut end [12:38:25]Read from MH i2c: 01 07 00 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: 01 07 00 F8 22 00 00 00 00 00 FF 0F 2F [12:38:25]process_action close_receipt done [12:38:25]requested_data is exist [12:38:25]produce_requested_data [12:38:25]requested_item fm.sn is exist - process it [12:38:25]wFMCommunicate request_size=4 [12:38:25]MH_SAM_APDU [12:38:25]CAPDU: 80 11 00 00 [12:38:25]Write to MH i2c: E2 08 00 F9 22 80 11 00 00 00 00 00 00 95 [12:38:25]Write i2c OK [12:38:25]MH_I2C_Read... [12:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:25]Read from MH i2c: E2 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 17 00 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 17 00 F9 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E7 [12:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:38:25]wFMCommunicate OK [12:38:25]requested_item fd.num is exist - process it [12:38:25]SAM_PROTO_GetFieldsCounters [12:38:25]wFMCommunicate request_size=4 [12:38:25]MH_SAM_APDU [12:38:25]CAPDU: 80 13 00 00 [12:38:25]Write to MH i2c: E2 08 00 FA 22 80 13 00 00 00 00 00 00 98 [12:38:25]Write i2c OK [12:38:25]MH_I2C_Read... [12:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:26]Read from MH i2c: E2 [12:38:26]MH_I2C_Read... [12:38:26]Read from MH i2c: E2 62 00 [12:38:26]MH_I2C_Read... [12:38:26]Read from MH i2c: E2 62 00 FA 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9C FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [12:38:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9C FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:26]wFMCommunicate OK [12:38:26]SAM_PROTO_GetFieldsCounters done [12:38:26]requested_item shift.num is exist - process it [12:38:26]requested_item shift.opened is exist - process it [12:38:26]req_shift_opened [12:38:26]FM_GetShiftState [12:38:26]SAM_PROTO_GetShiftState [12:38:26]wFMCommunicate request_size=4 [12:38:26]MH_SAM_APDU [12:38:26]CAPDU: 80 13 01 00 [12:38:26]Write to MH i2c: E2 08 00 FB 22 80 13 01 00 00 00 00 00 9A [12:38:26]Write i2c OK [12:38:26]MH_I2C_Read... [12:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:26]Read from MH i2c: E2 [12:38:26]MH_I2C_Read... [12:38:26]Read from MH i2c: E2 0E 00 [12:38:26]MH_I2C_Read... [12:38:26]Read from MH i2c: E2 0E 00 FB 22 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 DB [12:38:26]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:38:26]wFMCommunicate OK [12:38:26]SAM_PROTO_GetShiftState done [12:38:26]FM_GetShiftState done [12:38:26]req_shift_opened done [12:38:26]requested_item shift.open_date is exist - process it [12:38:26]req_shift_open_date [12:38:26]req_shift_open_date done [12:38:26]produce_requested_data done [12:38:26]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64156,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [12:38:26]process_action_free close_receipt [12:38:26]json_value_free [12:38:26]json_value_free done [12:38:26]process_json_proto returns [12:38:26]Send response to host [12:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64156,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [12:38:26]free response buf [12:38:26]execute_script done [12:38:26]execute_script returns [12:38:26]free content buf [12:38:26]Sock 9.Close socket [12:38:26]Sock 9.Thread stoped [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:28]accept exits with 8 [12:39:28]New connection [12:39:28]New thread 3067276644 created [12:39:28]Thread 3067133284 joined [12:39:28]Waiting for new connection... [12:39:28] Sock 8.Parse request [12:39:28]Sock 8.Check first char [12:39:28]Sock 8.First char is OK [12:39:28]request: POST /json_proto HTTP/1.0 [12:39:28]Method: POST [12:39:28]URL: /json_proto [12:39:28]Method is POST - this is cgi request [12:39:28]url: /json_proto [12:39:28]query_string will be loaded in cgi processing [12:39:28]execute_cgi json_proto POST (null) [12:39:28]execute_cgi path=json_proto method=POST [12:39:28]POST find Content-Length [12:39:28]Host: 172.17.60.69:8080 [12:39:28]Content-Length: 677 [12:39:28]Content-Type: application/json [12:39:28] [12:39:28]POST finish read [12:39:28]Found Content-Length = 677 [12:39:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:28]execute_script... [12:39:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:28]POST & json_proto [12:39:28]process_json_proto [12:39:28]json parsed OK: [12:39:28]protocol is kg_v1.0 [12:39:28]action value=close_receipt [12:39:28]process_action close_receipt [12:39:28]cmd_close_receipt [12:39:28]MH_GetDate [12:39:28]Write to MH i2c: F0 00 00 FC 22 0D [12:39:28]Write i2c OK [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: F0 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: F0 09 00 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: F0 09 00 FC 22 00 84 5C 60 66 D2 83 5F 66 D6 [12:39:28]GetLastDocTimeStamp 1717591105 [12:39:28]current date 1717591172 [12:39:28]FM_GetShiftState [12:39:28]SAM_PROTO_GetShiftState [12:39:28]wFMCommunicate request_size=4 [12:39:28]MH_SAM_APDU [12:39:28]CAPDU: 80 13 01 00 [12:39:28]Write to MH i2c: E2 08 00 FD 22 80 13 01 00 00 00 00 00 9C [12:39:28]Write i2c OK [12:39:28]MH_I2C_Read... [12:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:28]Read from MH i2c: E2 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: E2 0E 00 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: E2 0E 00 FD 22 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 DD [12:39:28]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:39:28]wFMCommunicate OK [12:39:28]SAM_PROTO_GetShiftState done [12:39:28]FM_GetShiftState done [12:39:28]opened in 1717545925 [12:39:28]opened+sec_in_day 1717632325 [12:39:28]quantity*price = 22010 [12:39:28]sum+1 = 22011 [12:39:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 77 05.06.2024 12:39 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64157 ФПД: 247145840189011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T123932&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64157&fm=247145840189011&tin=02508201610067®Number=0000000000092737&sum=22000 [12:39:29]StoreToDocumentArchive [12:39:29]shift 375 fd 64157 [12:39:29]save to /storage/0375/doc_00064157 [12:39:29]save last doc name /storage/0375/doc_00064157 to /storage/kkm_last_doc_name [12:39:29]save OK [12:39:29]Clear old archive folders... [12:39:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:29]tlvbuf is 00FABB70 [12:39:29]SAM_PROTO_ClearQueue [12:39:29]wFMCommunicate request_size=4 [12:39:29]MH_SAM_APDU [12:39:29]CAPDU: 80 09 00 00 [12:39:29]Write to MH i2c: E2 08 00 0A 23 80 09 00 00 00 00 00 00 9F [12:39:29]Write i2c OK [12:39:29]MH_I2C_Read... [12:39:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:29]Read from MH i2c: E2 [12:39:29]MH_I2C_Read... [12:39:29]Read from MH i2c: E2 03 00 [12:39:29]MH_I2C_Read... [12:39:29]Read from MH i2c: E2 03 00 0A 23 00 90 00 A1 [12:39:29]RAPDU: 90 00 [12:39:29]wFMCommunicate OK [12:39:29]SAM_PROTO_ClearQueue done [12:39:29]KKMCreateOFDPacket [12:39:29]OFDProtocolAddRootSTLVToBuf [12:39:29]FM_MakeSignedData [12:39:29]FM_MakeSignedData [12:39:29]SAM_PROTO_SignData [12:39:29]wFMCommunicate request_size=4 [12:39:29]MH_SAM_APDU [12:39:29]CAPDU: 80 0D 01 02 [12:39:29]Write to MH i2c: E2 08 00 0B 23 80 0D 01 02 00 00 00 00 A7 [12:39:29]Write i2c OK [12:39:29]MH_I2C_Read... [12:39:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:29]Read from MH i2c: E2 [12:39:29]MH_I2C_Read... [12:39:29]Read from MH i2c: E2 03 00 [12:39:29]MH_I2C_Read... [12:39:29]Read from MH i2c: E2 03 00 0B 23 00 90 00 A2 [12:39:29]RAPDU: 90 00 [12:39:29]wFMCommunicate OK [12:39:29]wFMCommunicate request_size=255 [12:39:29]MH_SAM_APDU [12:39:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 84 5C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9D FA 00 00 35 04 06 00 E0 [12:39:29]Write to MH i2c: E2 02 01 0C 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 84 5C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9D FA 00 00 35 04 06 00 E0 00 00 7D [12:39:29]Write i2c OK [12:39:29]MH_I2C_Read... [12:39:29]OFD Sender: No OFD packet to send [12:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:30]Read from MH i2c: E2 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: E2 03 00 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: E2 03 00 0C 23 00 90 00 A3 [12:39:30]RAPDU: 90 00 [12:39:30]wFMCommunicate OK [12:39:30]wFMCommunicate request_size=10 [12:39:30]MH_SAM_APDU [12:39:30]CAPDU: 80 0D 02 02 05 C7 20 03 1E 53 [12:39:30]Write to MH i2c: E2 0D 00 0D 23 80 0D 02 02 05 00 C7 20 03 1E 53 00 00 0F [12:39:30]Write i2c OK [12:39:30]MH_I2C_Read... [12:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:30]Read from MH i2c: E2 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: E2 03 00 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: E2 03 00 0D 23 00 90 00 A4 [12:39:30]RAPDU: 90 00 [12:39:30]wFMCommunicate OK [12:39:30]wFMCommunicate request_size=4 [12:39:30]MH_SAM_APDU [12:39:30]CAPDU: 80 0D 03 02 [12:39:30]Write to MH i2c: E2 08 00 0E 23 80 0D 03 02 00 00 00 00 AC [12:39:30]Write i2c OK [12:39:30]MH_I2C_Read... [12:39:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:30]Read from MH i2c: E2 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: E2 0B 00 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: E2 0B 00 0E 23 00 99 85 E1 53 74 C6 17 71 90 00 C1 [12:39:30]RAPDU: 99 85 E1 53 74 C6 17 71 90 00 [12:39:30]wFMCommunicate OK [12:39:30]SAM_PROTO_SignData done [12:39:30]FM_MakeSignedData done [12:39:30]CreateOFDProtocolMessage [12:39:30]wFMCommunicate request_size=4 [12:39:30]MH_SAM_APDU [12:39:30]CAPDU: 80 11 00 00 [12:39:30]Write to MH i2c: E2 08 00 0F 23 80 11 00 00 00 00 00 00 AC [12:39:30]Write i2c OK [12:39:30]MH_I2C_Read... [12:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:30]Read from MH i2c: E2 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: E2 17 00 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: E2 17 00 0F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FE [12:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:39:30]wFMCommunicate OK [12:39:30]CreateOFDProtocolMessage done [12:39:30]OFDSenderStorePacket 64157 [12:39:30]StoreOFDPacket docnum=64157 [12:39:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 2E CC 07 01 C1 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 84 5C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9D FA 00 00 35 04 06 00 E0 C7 20 03 1E 53 99 85 E1 53 74 C6 17 71 [12:39:30]CheckFolder [12:39:30]dirname=/storage/ofd_packets [12:39:30]CheckFolder done [12:39:30]ProducePacketName [12:39:30]name=ofd_packets/00064157 [12:39:30]NVStorageSaveData ofd_packets/00064157 [12:39:30]File name is /storage/ofd_packets/00064157 [12:39:30]Write 301 bytes [12:39:30]NVStorageSaveData done [12:39:30]OFDSenderStorePacket done [12:39:30]KKMCreateOFDPacket done [12:39:30]NVStorageSaveData kkm_last_timestamp [12:39:30]File name is /storage/kkm_last_timestamp [12:39:30]Write 4 bytes [12:39:30]NVStorageSaveData done [12:39:30]ExternCall_PrintAddStr [12:39:30]wPrintStart [12:39:30]Write to MH i2c: 01 00 00 10 23 33 [12:39:30]Write i2c OK [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: 01 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: 01 07 00 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: 01 07 00 10 23 00 00 00 00 00 FF 0F 48 [12:39:30]RasterBufferAndPrint [12:39:30]line Счет N : (1)545690 [12:39:30]line ИНН: 02508201610067 [12:39:30]line Контрольно-Кассовый Чек [12:39:30]line ПРОДАЖА [12:39:30]line ТРК (МРК, ГНК) : 12 [12:39:30]line Товар: 2710124130 [12:39:30]line Аи-92-К-5 [12:39:30]line 3.290 * 66.90 [12:39:30]line = 220.10 [12:39:30]line НДС 12% НСП 1% [12:39:30]line > о реализуемом товаре [12:39:30]line ОКРУГЛЕНИЕ: -0.10 [12:39:30]line ИТОГО: 220.00 [12:39:30]line Внесено: 220.00 [12:39:30]line СДАЧА: 0.00 [12:39:30]line НСП 1% : 1.95 [12:39:30]line НДС 12% : 23.37 [12:39:30]line Наличными: 220.00 [12:39:30]line Безнал.: 0.00 [12:39:30]line Место: АЗС № 117 "Партнер Нефть" [12:39:30]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:39:30]line СНО: Общий режим [12:39:30]line Чек 77 05.06.2024 12:39 [12:39:30]line Смена: 375 ФФД: 1.0 [12:39:30]line ЗНМ: 0300000031 [12:39:30]line РНМ: 0000000000092737 [12:39:30]line Версия ККМ: 001 [12:39:30]line ФМ: 0000000000875074 [12:39:30]line ФД: 64157 [12:39:30]line ФПД: 247145840189011 [12:39:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T123932&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64157&fm=247145840189011&tin=02508201610067®Number=0000000000092737&sum=22000 [12:39:30]OFD Sender: Processing packet 64157 [packets to send 14, broken 13] [12:39:30]ProducePacketName [12:39:30]name=ofd_packets/00064157 [12:39:30]OFD Sender: To server: pG, [12:39:30]CommunicateWithHost lk.salyk.kg:30040 [12:39:30]ConnectInit lk.salyk.kg [12:39:30]written 0, free lines is 4095 [12:39:30]Connected sock=9 [12:39:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 2E CC 07 01 C1 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 84 5C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9D FA 00 00 35 04 06 00 E0 C7 20 03 1E 53 99 85 E1 53 74 C6 17 71 [12:39:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 2F 15 47 00 30 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9D FA 00 00 F4 03 04 00 8F 08 60 66 B6 04 01 00 00 7C D0 9C E4 6D 7D 69 96 [12:39:30]CommunicateWithHost err = 0 [12:39:30]CheckOFDResponse [12:39:30]1017 (14) - 77093643461234 [12:39:30]1041 (16) - 0000000000875074 [12:39:30]1040 (4) - 64157 [12:39:30]1012 (4) - 05.06.2024 06:41 [12:39:30]1206 (1) - 0 [12:39:30]OFD Sender: Remove packet 64157 [12:39:30]ProducePacketName [12:39:30]name=ofd_packets/00064157 [12:39:30]NVStorageDeleteData [12:39:31]Write to MH i2c: 01 00 00 3B 23 5E [12:39:31]Write i2c OK [12:39:31]MH_I2C_Read... [12:39:31]Read from MH i2c: 01 [12:39:31]MH_I2C_Read... [12:39:31]Read from MH i2c: 01 07 00 [12:39:31]MH_I2C_Read... [12:39:31]Read from MH i2c: 01 07 00 3B 23 00 00 00 00 00 E0 0C 51 [12:39:31]RasterBufferAndPrint [12:39:31]line [12:39:31]line [12:39:31]line [12:39:31]line [12:39:31]line [12:39:31]written 0, free lines is 3304 [12:39:31]MH_Cut [12:39:31]Write to MH i2c: D1 01 00 42 23 01 37 [12:39:31]Write i2c OK [12:39:31]MH_I2C_Read... [12:39:31]Read from MH i2c: D1 [12:39:31]MH_I2C_Read... [12:39:31]Read from MH i2c: D1 01 00 [12:39:31]MH_I2C_Read... [12:39:31]Read from MH i2c: D1 01 00 42 23 00 36 [12:39:31]Write to MH i2c: 01 00 00 43 23 66 [12:39:31]Write i2c OK [12:39:31]MH_I2C_Read... [12:39:31]OFD Sender: No OFD packet to send [12:39:31]*** Cut start [12:39:31]*** Partial cut [12:39:31]*** CUTSNS_PIN = 1 [12:39:31]*** CUTSNS_PIN = 0 [12:39:32]*** Brake cut motor [12:39:32]Read from MH i2c: 01 [12:39:32]MH_I2C_Read... [12:39:32]*** Stop cut motor [12:39:32]*** Cut end [12:39:32]Read from MH i2c: 01 07 00 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: 01 07 00 43 23 00 00 00 00 00 FF 0F 7B [12:39:32]process_action close_receipt done [12:39:32]requested_data is exist [12:39:32]produce_requested_data [12:39:32]requested_item fm.sn is exist - process it [12:39:32]wFMCommunicate request_size=4 [12:39:32]MH_SAM_APDU [12:39:32]CAPDU: 80 11 00 00 [12:39:32]Write to MH i2c: E2 08 00 44 23 80 11 00 00 00 00 00 00 E1 [12:39:32]Write i2c OK [12:39:32]MH_I2C_Read... [12:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:32]Read from MH i2c: E2 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 17 00 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 17 00 44 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 33 [12:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:39:32]wFMCommunicate OK [12:39:32]requested_item fd.num is exist - process it [12:39:32]SAM_PROTO_GetFieldsCounters [12:39:32]wFMCommunicate request_size=4 [12:39:32]MH_SAM_APDU [12:39:32]CAPDU: 80 13 00 00 [12:39:32]Write to MH i2c: E2 08 00 45 23 80 13 00 00 00 00 00 00 E4 [12:39:32]Write i2c OK [12:39:32]MH_I2C_Read... [12:39:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:32]Read from MH i2c: E2 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 62 00 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 62 00 45 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9D FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [12:39:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9D FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:32]wFMCommunicate OK [12:39:32]SAM_PROTO_GetFieldsCounters done [12:39:32]requested_item shift.num is exist - process it [12:39:32]requested_item shift.opened is exist - process it [12:39:32]req_shift_opened [12:39:32]FM_GetShiftState [12:39:32]SAM_PROTO_GetShiftState [12:39:32]wFMCommunicate request_size=4 [12:39:32]MH_SAM_APDU [12:39:32]CAPDU: 80 13 01 00 [12:39:32]Write to MH i2c: E2 08 00 46 23 80 13 01 00 00 00 00 00 E6 [12:39:32]Write i2c OK [12:39:32]MH_I2C_Read... [12:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:32]Read from MH i2c: E2 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 0E 00 [12:39:32]MH_I2C_Read... [12:39:32]Read from MH i2c: E2 0E 00 46 23 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 27 [12:39:32]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:39:32]wFMCommunicate OK [12:39:32]SAM_PROTO_GetShiftState done [12:39:32]FM_GetShiftState done [12:39:32]req_shift_opened done [12:39:32]requested_item shift.open_date is exist - process it [12:39:32]req_shift_open_date [12:39:32]req_shift_open_date done [12:39:32]produce_requested_data done [12:39:32]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64157,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [12:39:32]process_action_free close_receipt [12:39:32]json_value_free [12:39:32]json_value_free done [12:39:32]process_json_proto returns [12:39:32]Send response to host [12:39:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64157,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [12:39:32]free response buf [12:39:32]execute_script done [12:39:32]execute_script returns [12:39:32]free content buf [12:39:32]Sock 8.Close socket [12:39:32]Sock 8.Thread stoped [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43: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]accept exits with 10 [12:44:06]New connection [12:44:06]New thread 3067133284 created [12:44:06]Thread 3067276644 joined [12:44:06]Waiting for new connection... [12:44:06] Sock 10.Parse request [12:44:06]Sock 10.Check first char [12:44:06]Sock 10.First char is OK [12:44:06]request: POST /json_proto HTTP/1.0 [12:44:06]Method: POST [12:44:06]URL: /json_proto [12:44:06]Method is POST - this is cgi request [12:44:06]url: /json_proto [12:44:06]query_string will be loaded in cgi processing [12:44:06]execute_cgi json_proto POST (null) [12:44:06]execute_cgi path=json_proto method=POST [12:44:06]POST find Content-Length [12:44:06]Host: 172.17.60.69:8080 [12:44:06]Content-Length: 619 [12:44:06]Content-Type: application/json [12:44:06] [12:44:06]POST finish read [12:44:06]Found Content-Length = 619 [12:44:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73688", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.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" ] } } [12:44:06]execute_script... [12:44: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)73688", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.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" ] } } [12:44:06]POST & json_proto [12:44:06]process_json_proto [12:44:06]json parsed OK: [12:44:06]protocol is kg_v1.0 [12:44:06]action value=close_receipt [12:44:06]process_action close_receipt [12:44:06]cmd_close_receipt [12:44:06]MH_GetDate [12:44:06]Write to MH i2c: F0 00 00 47 23 59 [12:44:06]Write i2c OK [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: F0 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: F0 09 00 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: F0 09 00 47 23 00 9A 5D 60 66 D2 83 5F 66 39 [12:44:06]GetLastDocTimeStamp 1717591172 [12:44:06]current date 1717591450 [12:44:06]FM_GetShiftState [12:44:06]SAM_PROTO_GetShiftState [12:44:06]wFMCommunicate request_size=4 [12:44:06]MH_SAM_APDU [12:44:06]CAPDU: 80 13 01 00 [12:44:06]Write to MH i2c: E2 08 00 48 23 80 13 01 00 00 00 00 00 E8 [12:44:06]Write i2c OK [12:44:06]MH_I2C_Read... [12:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:06]Read from MH i2c: E2 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 0E 00 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 0E 00 48 23 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 29 [12:44:06]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:44:06]wFMCommunicate OK [12:44:06]SAM_PROTO_GetShiftState done [12:44:06]FM_GetShiftState done [12:44:06]opened in 1717545925 [12:44:06]opened+sec_in_day 1717632325 [12:44:06]quantity*price = 13500 [12:44:06]sum+1 = 13501 [12:44:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 78 05.06.2024 12:44 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64158 ФПД: 274254390435650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T124410&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64158&fm=274254390435650&tin=02508201610067®Number=0000000000092737&sum=13500 0 [12:44:07]StoreToDocumentArchive [12:44:07]shift 375 fd 64158 [12:44:07]save to /storage/0375/doc_00064158 [12:44:07]save last doc name /storage/0375/doc_00064158 to /storage/kkm_last_doc_name [12:44:07]save OK [12:44:07]Clear old archive folders... [12:44:07]ProcessDocumentItem done err = 0, tmpTLVsize=272 [12:44:07]tlvbuf is 0101DF90 [12:44:07]SAM_PROTO_ClearQueue [12:44:07]wFMCommunicate request_size=4 [12:44:07]MH_SAM_APDU [12:44:07]CAPDU: 80 09 00 00 [12:44:07]Write to MH i2c: E2 08 00 55 23 80 09 00 00 00 00 00 00 EA [12:44:07]Write i2c OK [12:44:07]MH_I2C_Read... [12:44:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:07]Read from MH i2c: E2 [12:44:07]MH_I2C_Read... [12:44:07]Read from MH i2c: E2 03 00 [12:44:07]MH_I2C_Read... [12:44:07]Read from MH i2c: E2 03 00 55 23 00 90 00 EC [12:44:07]RAPDU: 90 00 [12:44:07]wFMCommunicate OK [12:44:07]SAM_PROTO_ClearQueue done [12:44:07]KKMCreateOFDPacket [12:44:07]OFDProtocolAddRootSTLVToBuf [12:44:07]FM_MakeSignedData [12:44:07]FM_MakeSignedData [12:44:07]SAM_PROTO_SignData [12:44:07]wFMCommunicate request_size=4 [12:44:07]MH_SAM_APDU [12:44:07]CAPDU: 80 0D 01 02 [12:44:07]Write to MH i2c: E2 08 00 56 23 80 0D 01 02 00 00 00 00 F2 [12:44:07]Write i2c OK [12:44:07]MH_I2C_Read... [12:44:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:07]Read from MH i2c: E2 [12:44:07]MH_I2C_Read... [12:44:07]Read from MH i2c: E2 03 00 [12:44:07]MH_I2C_Read... [12:44:07]Read from MH i2c: E2 03 00 56 23 00 90 00 ED [12:44:07]RAPDU: 90 00 [12:44:07]wFMCommunicate OK [12:44:07]wFMCommunicate request_size=255 [12:44:07]MH_SAM_APDU [12:44:07]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9A 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 4E 00 00 00 F4 03 04 00 9A 5D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [12:44:07]Write to MH i2c: E2 02 01 57 23 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9A 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 4E 00 00 00 F4 03 04 00 9A 5D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 33 [12:44:07]Write i2c OK [12:44:07]MH_I2C_Read... [12:44:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:08]Read from MH i2c: E2 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: E2 03 00 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: E2 03 00 57 23 00 90 00 EE [12:44:08]RAPDU: 90 00 [12:44:08]wFMCommunicate OK [12:44:08]wFMCommunicate request_size=31 [12:44:08]MH_SAM_APDU [12:44:08]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 37 34 10 04 04 00 9E FA 00 00 35 04 06 00 F9 6E D3 85 1F 42 [12:44:08]Write to MH i2c: E2 22 00 58 23 80 0D 02 02 1A 00 30 30 38 37 35 30 37 34 10 04 04 00 9E FA 00 00 35 04 06 00 F9 6E D3 85 1F 42 00 00 D7 [12:44:08]Write i2c OK [12:44:08]MH_I2C_Read... [12:44:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:08]Read from MH i2c: E2 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: E2 03 00 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: E2 03 00 58 23 00 90 00 EF [12:44:08]RAPDU: 90 00 [12:44:08]wFMCommunicate OK [12:44:08]wFMCommunicate request_size=4 [12:44:08]MH_SAM_APDU [12:44:08]CAPDU: 80 0D 03 02 [12:44:08]Write to MH i2c: E2 08 00 59 23 80 0D 03 02 00 00 00 00 F7 [12:44:08]Write i2c OK [12:44:08]MH_I2C_Read... [12:44:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:08]Read from MH i2c: E2 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: E2 0B 00 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: E2 0B 00 59 23 00 E5 87 E9 6C 30 F5 4D 9F 90 00 CA [12:44:08]RAPDU: E5 87 E9 6C 30 F5 4D 9F 90 00 [12:44:08]wFMCommunicate OK [12:44:08]SAM_PROTO_SignData done [12:44:08]FM_MakeSignedData done [12:44:08]CreateOFDProtocolMessage [12:44:08]wFMCommunicate request_size=4 [12:44:08]MH_SAM_APDU [12:44:08]CAPDU: 80 11 00 00 [12:44:08]Write to MH i2c: E2 08 00 5A 23 80 11 00 00 00 00 00 00 F7 [12:44:08]Write i2c OK [12:44:08]MH_I2C_Read... [12:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:08]Read from MH i2c: E2 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: E2 17 00 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: E2 17 00 5A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 49 [12:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:44:08]wFMCommunicate OK [12:44:08]CreateOFDProtocolMessage done [12:44:08]OFDSenderStorePacket 64158 [12:44:08]StoreOFDPacket docnum=64158 [12:44:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 24 01 00 00 87 FF 1C 01 09 6F 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9A 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 4E 00 00 00 F4 03 04 00 9A 5D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9E FA 00 00 35 04 06 00 F9 6E D3 85 1F 42 E5 87 E9 6C 30 F5 4D 9F [12:44:08]CheckFolder [12:44:08]dirname=/storage/ofd_packets [12:44:08]CheckFolder done [12:44:08]ProducePacketName [12:44:08]name=ofd_packets/00064158 [12:44:08]NVStorageSaveData ofd_packets/00064158 [12:44:08]File name is /storage/ofd_packets/00064158 [12:44:08]Write 322 bytes [12:44:08]NVStorageSaveData done [12:44:08]OFDSenderStorePacket done [12:44:08]KKMCreateOFDPacket done [12:44:08]NVStorageSaveData kkm_last_timestamp [12:44:08]File name is /storage/kkm_last_timestamp [12:44:08]Write 4 bytes [12:44:08]NVStorageSaveData done [12:44:08]ExternCall_PrintAddStr [12:44:08]wPrintStart [12:44:08]Write to MH i2c: 01 00 00 5B 23 7E [12:44:08]Write i2c OK [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: 01 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: 01 07 00 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: 01 07 00 5B 23 00 00 00 00 00 FF 0F 93 [12:44:08]RasterBufferAndPrint [12:44:08]line Счет N : (3)73688 [12:44:08]line ИНН: 02508201610067 [12:44:08]line Контрольно-Кассовый Чек [12:44:08]line ПРОДАЖА [12:44:08]line Товар: 48745000 [12:44:08]line Сигареты Winston Purple Mix [12:44:08]line 1.000 * 135.00 [12:44:08]line = 135.00 [12:44:08]line НДС 12% НСП 1% [12:44:08]line > о реализуемом товаре [12:44:08]line ИТОГО: 135.00 [12:44:08]line НСП 1% : 1.19 [12:44:08]line НДС 12% : 14.34 [12:44:08]line Наличными: 135.00 [12:44:08]line Безнал.: 0.00 [12:44:08]line Место: АЗС № 117 "Партнер Нефть" [12:44:08]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:44:08]line СНО: Общий режим [12:44:08]line Чек 78 05.06.2024 12:44 [12:44:08]line Смена: 375 ФФД: 1.0 [12:44:08]line ЗНМ: 0300000031 [12:44:08]line РНМ: 0000000000092737 [12:44:08]line Версия ККМ: 001 [12:44:08]line ФМ: 0000000000875074 [12:44:08]line ФД: 64158 [12:44:08]line ФПД: 274254390435650 [12:44:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T124410&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64158&fm=274254390435650&tin=02508201610067®Number=0000000000092737&sum=13500 [12:44:08]line 0 [12:44:08]OFD Sender: Processing packet 64158 [packets to send 14, broken 13] [12:44:08]ProducePacketName [12:44:08]name=ofd_packets/00064158 [12:44:08]OFD Sender: To server: pG, [12:44:08]CommunicateWithHost lk.salyk.kg:30040 [12:44:08]ConnectInit lk.salyk.kg [12:44:08]written 0, free lines is 4095 [12:44:08]Connected sock=9 [12:44:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 24 01 00 00 87 FF 1C 01 09 6F 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9A 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 4E 00 00 00 F4 03 04 00 9A 5D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9E FA 00 00 35 04 06 00 F9 6E D3 85 1F 42 E5 87 E9 6C 30 F5 4D 9F [12:44:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 4D 4D 47 00 EC E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9E FA 00 00 F4 03 04 00 A5 09 60 66 B6 04 01 00 00 7C 5E 37 7C FD C3 62 0A [12:44:08]CommunicateWithHost err = 0 [12:44:08]CheckOFDResponse [12:44:08]1017 (14) - 77093643461234 [12:44:08]1041 (16) - 0000000000875074 [12:44:08]1040 (4) - 64158 [12:44:08]1012 (4) - 05.06.2024 06:45 [12:44:08]1206 (1) - 0 [12:44:08]OFD Sender: Remove packet 64158 [12:44:08]ProducePacketName [12:44:08]name=ofd_packets/00064158 [12:44:08]NVStorageDeleteData [12:44:09]Write to MH i2c: 01 00 00 83 23 A6 [12:44:09]Write i2c OK [12:44:09]MH_I2C_Read... [12:44:09]Read from MH i2c: 01 [12:44:09]MH_I2C_Read... [12:44:09]Read from MH i2c: 01 07 00 [12:44:09]MH_I2C_Read... [12:44:09]Read from MH i2c: 01 07 00 83 23 00 00 00 00 00 F5 0C AE [12:44:09]RasterBufferAndPrint [12:44:09]line [12:44:09]line [12:44:09]line [12:44:09]line [12:44:09]line [12:44:09]written 0, free lines is 3328 [12:44:09]MH_Cut [12:44:09]Write to MH i2c: D1 01 00 8A 23 01 7F [12:44:09]Write i2c OK [12:44:09]MH_I2C_Read... [12:44:09]Read from MH i2c: D1 [12:44:09]MH_I2C_Read... [12:44:09]Read from MH i2c: D1 01 00 [12:44:09]MH_I2C_Read... [12:44:09]Read from MH i2c: D1 01 00 8A 23 00 7E [12:44:09]Write to MH i2c: 01 00 00 8B 23 AE [12:44:09]Write i2c OK [12:44:09]MH_I2C_Read... [12:44:09]OFD Sender: No OFD packet to send [12:44:09]*** Cut start [12:44:09]*** Partial cut [12:44:09]*** CUTSNS_PIN = 1 [12:44:09]*** CUTSNS_PIN = 0 [12:44:10]*** Brake cut motor [12:44:10]Read from MH i2c: 01 [12:44:10]MH_I2C_Read... [12:44:10]*** Stop cut motor [12:44:10]*** Cut end [12:44:10]Read from MH i2c: 01 07 00 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: 01 07 00 8B 23 00 00 00 00 00 FF 0F C3 [12:44:10]process_action close_receipt done [12:44:10]requested_data is exist [12:44:10]produce_requested_data [12:44:10]requested_item fm.sn is exist - process it [12:44:10]wFMCommunicate request_size=4 [12:44:10]MH_SAM_APDU [12:44:10]CAPDU: 80 11 00 00 [12:44:10]Write to MH i2c: E2 08 00 8C 23 80 11 00 00 00 00 00 00 29 [12:44:10]Write i2c OK [12:44:10]MH_I2C_Read... [12:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:10]Read from MH i2c: E2 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 17 00 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 17 00 8C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7B [12:44:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:44:10]wFMCommunicate OK [12:44:10]requested_item fd.num is exist - process it [12:44:10]SAM_PROTO_GetFieldsCounters [12:44:10]wFMCommunicate request_size=4 [12:44:10]MH_SAM_APDU [12:44:10]CAPDU: 80 13 00 00 [12:44:10]Write to MH i2c: E2 08 00 8D 23 80 13 00 00 00 00 00 00 2C [12:44:10]Write i2c OK [12:44:10]MH_I2C_Read... [12:44:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:10]Read from MH i2c: E2 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 62 00 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 62 00 8D 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9E FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [12:44:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9E FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:10]wFMCommunicate OK [12:44:10]SAM_PROTO_GetFieldsCounters done [12:44:10]requested_item shift.num is exist - process it [12:44:10]requested_item shift.opened is exist - process it [12:44:10]req_shift_opened [12:44:10]FM_GetShiftState [12:44:10]SAM_PROTO_GetShiftState [12:44:10]wFMCommunicate request_size=4 [12:44:10]MH_SAM_APDU [12:44:10]CAPDU: 80 13 01 00 [12:44:10]Write to MH i2c: E2 08 00 8E 23 80 13 01 00 00 00 00 00 2E [12:44:10]Write i2c OK [12:44:10]MH_I2C_Read... [12:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:10]Read from MH i2c: E2 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 0E 00 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 0E 00 8E 23 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 6F [12:44:10]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:44:10]wFMCommunicate OK [12:44:10]SAM_PROTO_GetShiftState done [12:44:10]FM_GetShiftState done [12:44:10]req_shift_opened done [12:44:10]requested_item shift.open_date is exist - process it [12:44:10]req_shift_open_date [12:44:10]req_shift_open_date done [12:44:10]produce_requested_data done [12:44:10]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64158,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [12:44:10]process_action_free close_receipt [12:44:10]json_value_free [12:44:10]json_value_free done [12:44:10]process_json_proto returns [12:44:10]Send response to host [12:44:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64158,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [12:44:10]free response buf [12:44:10]execute_script done [12:44:10]execute_script returns [12:44:10]free content buf [12:44:10]Sock 10.Close socket [12:44:10]Sock 10.Thread stoped [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:57]accept exits with 8 [12:46:57]New connection [12:46:57]New thread 3067276644 created [12:46:57]Thread 3067133284 joined [12:46:57]Waiting for new connection... [12:46:57] Sock 8.Parse request [12:46:57]Sock 8.Check first char [12:46:57]Sock 8.First char is OK [12:46:57]request: POST /json_proto HTTP/1.0 [12:46:57]Method: POST [12:46:57]URL: /json_proto [12:46:57]Method is POST - this is cgi request [12:46:57]url: /json_proto [12:46:57]query_string will be loaded in cgi processing [12:46:57]execute_cgi json_proto POST (null) [12:46:57]execute_cgi path=json_proto method=POST [12:46:57]POST find Content-Length [12:46:57]Host: 172.17.60.69:8080 [12:46:57]Content-Length: 615 [12:46:57]Content-Type: application/json [12:46:57] [12:46:57]POST finish read [12:46:57]Found Content-Length = 615 [12:46:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73689", "tax_sys" : 0, "items" : [ { "code": "4640030091522", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Blue", "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" ] } } [12:46:57]execute_script... [12:46: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)73689", "tax_sys" : 0, "items" : [ { "code": "4640030091522", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Blue", "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" ] } } [12:46:57]POST & json_proto [12:46:57]process_json_proto [12:46:57]json parsed OK: [12:46:57]protocol is kg_v1.0 [12:46:57]action value=close_receipt [12:46:57]process_action close_receipt [12:46:57]cmd_close_receipt [12:46:57]MH_GetDate [12:46:57]Write to MH i2c: F0 00 00 8F 23 A1 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: F0 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: F0 09 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: F0 09 00 8F 23 00 44 5E 60 66 D2 83 5F 66 2C [12:46:57]GetLastDocTimeStamp 1717591450 [12:46:57]current date 1717591620 [12:46:57]FM_GetShiftState [12:46:57]SAM_PROTO_GetShiftState [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 13 01 00 [12:46:57]Write to MH i2c: E2 08 00 90 23 80 13 01 00 00 00 00 00 30 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 0E 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 0E 00 90 23 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 71 [12:46:57]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:46:57]wFMCommunicate OK [12:46:57]SAM_PROTO_GetShiftState done [12:46:57]FM_GetShiftState done [12:46:57]opened in 1717545925 [12:46:57]opened+sec_in_day 1717632325 [12:46:57]quantity*price = 13800 [12:46:57]sum+1 = 13801 [12:46:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 79 05.06.2024 12:47 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64159 ФПД: 99514989472921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T124700&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64159&fm=99514989472921&tin=02508201610067®Number=0000000000092737&sum=13800 0 [12:46:58]StoreToDocumentArchive [12:46:58]shift 375 fd 64159 [12:46:58]save to /storage/0375/doc_00064159 [12:46:58]save last doc name /storage/0375/doc_00064159 to /storage/kkm_last_doc_name [12:46:58]save OK [12:46:58]Clear old archive folders... [12:46:58]ProcessDocumentItem done err = 0, tmpTLVsize=268 [12:46:58]tlvbuf is 0101D950 [12:46:58]SAM_PROTO_ClearQueue [12:46:58]wFMCommunicate request_size=4 [12:46:58]MH_SAM_APDU [12:46:58]CAPDU: 80 09 00 00 [12:46:58]Write to MH i2c: E2 08 00 9D 23 80 09 00 00 00 00 00 00 32 [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:58]Read from MH i2c: E2 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 03 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 03 00 9D 23 00 90 00 34 [12:46:58]RAPDU: 90 00 [12:46:58]wFMCommunicate OK [12:46:58]SAM_PROTO_ClearQueue done [12:46:58]KKMCreateOFDPacket [12:46:58]OFDProtocolAddRootSTLVToBuf [12:46:58]FM_MakeSignedData [12:46:58]FM_MakeSignedData [12:46:58]SAM_PROTO_SignData [12:46:58]wFMCommunicate request_size=4 [12:46:58]MH_SAM_APDU [12:46:58]CAPDU: 80 0D 01 02 [12:46:58]Write to MH i2c: E2 08 00 9E 23 80 0D 01 02 00 00 00 00 3A [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:58]Read from MH i2c: E2 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 03 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 03 00 9E 23 00 90 00 35 [12:46:58]RAPDU: 90 00 [12:46:58]wFMCommunicate OK [12:46:58]wFMCommunicate request_size=255 [12:46:58]MH_SAM_APDU [12:46:58]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 32 32 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 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 4F 00 00 00 F4 03 04 00 44 5E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [12:46:58]Write to MH i2c: E2 02 01 9F 23 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 32 32 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 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 4F 00 00 00 F4 03 04 00 44 5E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 18 [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:58]Read from MH i2c: E2 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 03 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 03 00 9F 23 00 90 00 36 [12:46:58]RAPDU: 90 00 [12:46:58]wFMCommunicate OK [12:46:58]wFMCommunicate request_size=27 [12:46:58]MH_SAM_APDU [12:46:58]CAPDU: 80 0D 02 02 16 35 30 37 34 10 04 04 00 9F FA 00 00 35 04 06 00 5A 82 23 98 EC 99 [12:46:58]Write to MH i2c: E2 1E 00 A0 23 80 0D 02 02 16 00 35 30 37 34 10 04 04 00 9F FA 00 00 35 04 06 00 5A 82 23 98 EC 99 00 00 45 [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 [12:46:58]MH_I2C_Read... [12:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:58]Read from MH i2c: E2 03 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 03 00 A0 23 00 90 00 37 [12:46:58]RAPDU: 90 00 [12:46:58]wFMCommunicate OK [12:46:58]wFMCommunicate request_size=4 [12:46:58]MH_SAM_APDU [12:46:58]CAPDU: 80 0D 03 02 [12:46:58]Write to MH i2c: E2 08 00 A1 23 80 0D 03 02 00 00 00 00 3F [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:58]Read from MH i2c: E2 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 0B 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 0B 00 A1 23 00 2D 51 17 EE C7 41 41 3A 90 00 46 [12:46:58]RAPDU: 2D 51 17 EE C7 41 41 3A 90 00 [12:46:58]wFMCommunicate OK [12:46:58]SAM_PROTO_SignData done [12:46:58]FM_MakeSignedData done [12:46:58]CreateOFDProtocolMessage [12:46:58]wFMCommunicate request_size=4 [12:46:58]MH_SAM_APDU [12:46:58]CAPDU: 80 11 00 00 [12:46:58]Write to MH i2c: E2 08 00 A2 23 80 11 00 00 00 00 00 00 3F [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:58]Read from MH i2c: E2 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 17 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 17 00 A2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 91 [12:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:46:58]wFMCommunicate OK [12:46:58]CreateOFDProtocolMessage done [12:46:58]OFDSenderStorePacket 64159 [12:46:58]StoreOFDPacket docnum=64159 [12:46:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 20 01 00 00 5A 2F 18 01 D4 76 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 32 32 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 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 4F 00 00 00 F4 03 04 00 44 5E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9F FA 00 00 35 04 06 00 5A 82 23 98 EC 99 2D 51 17 EE C7 41 41 3A [12:46:58]CheckFolder [12:46:58]dirname=/storage/ofd_packets [12:46:58]CheckFolder done [12:46:58]ProducePacketName [12:46:58]name=ofd_packets/00064159 [12:46:58]NVStorageSaveData ofd_packets/00064159 [12:46:58]File name is /storage/ofd_packets/00064159 [12:46:58]Write 318 bytes [12:46:58]NVStorageSaveData done [12:46:58]OFDSenderStorePacket done [12:46:58]KKMCreateOFDPacket done [12:46:58]NVStorageSaveData kkm_last_timestamp [12:46:58]File name is /storage/kkm_last_timestamp [12:46:58]Write 4 bytes [12:46:58]NVStorageSaveData done [12:46:58]ExternCall_PrintAddStr [12:46:58]wPrintStart [12:46:58]Write to MH i2c: 01 00 00 A3 23 C6 [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: 01 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: 01 07 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: 01 07 00 A3 23 00 00 00 00 00 FF 0F DB [12:46:58]RasterBufferAndPrint [12:46:58]line Счет N : (3)73689 [12:46:58]line ИНН: 02508201610067 [12:46:58]line Контрольно-Кассовый Чек [12:46:58]line ПРОДАЖА [12:46:58]line Товар: 4640030091522 [12:46:58]line Сигареты Esse Blue [12:46:58]line 1.000 * 138.00 [12:46:58]line = 138.00 [12:46:58]line НДС 12% НСП 1% [12:46:58]line > о реализуемом товаре [12:46:58]line ИТОГО: 138.00 [12:46:58]line НСП 1% : 1.22 [12:46:58]line НДС 12% : 14.65 [12:46:58]line Наличными: 138.00 [12:46:58]line Безнал.: 0.00 [12:46:58]line Место: АЗС № 117 "Партнер Нефть" [12:46:58]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:46:58]line СНО: Общий режим [12:46:58]line Чек 79 05.06.2024 12:47 [12:46:58]line Смена: 375 ФФД: 1.0 [12:46:58]line ЗНМ: 0300000031 [12:46:58]line РНМ: 0000000000092737 [12:46:58]line Версия ККМ: 001 [12:46:58]line ФМ: 0000000000875074 [12:46:58]line ФД: 64159 [12:46:58]line ФПД: 99514989472921 [12:46:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T124700&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64159&fm=99514989472921&tin=02508201610067®Number=0000000000092737&sum=13800 [12:46:58]line 0 [12:46:58]written 0, free lines is 4095 [12:46:58]OFD Sender: Processing packet 64159 [packets to send 14, broken 13] [12:46:58]ProducePacketName [12:46:58]name=ofd_packets/00064159 [12:46:58]OFD Sender: To server: pG, [12:46:58]CommunicateWithHost lk.salyk.kg:30040 [12:46:58]ConnectInit lk.salyk.kg [12:46:58]Connected sock=10 [12:46:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 20 01 00 00 5A 2F 18 01 D4 76 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 32 32 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 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 4F 00 00 00 F4 03 04 00 44 5E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9F FA 00 00 35 04 06 00 5A 82 23 98 EC 99 2D 51 17 EE C7 41 41 3A [12:46:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 8C 1C 47 00 30 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9F FA 00 00 F4 03 04 00 50 0A 60 66 B6 04 01 00 00 D6 78 3E 35 83 9D 5D DC [12:46:59]CommunicateWithHost err = 0 [12:46:59]CheckOFDResponse [12:46:59]1017 (14) - 77093643461234 [12:46:59]1041 (16) - 0000000000875074 [12:46:59]1040 (4) - 64159 [12:46:59]1012 (4) - 05.06.2024 06:48 [12:46:59]1206 (1) - 0 [12:46:59]OFD Sender: Remove packet 64159 [12:46:59]ProducePacketName [12:46:59]name=ofd_packets/00064159 [12:46:59]NVStorageDeleteData [12:46:59]Write to MH i2c: 01 00 00 CB 23 EE [12:46:59]Write i2c OK [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: 01 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: 01 07 00 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: 01 07 00 CB 23 00 00 00 00 00 01 0D 03 [12:46:59]RasterBufferAndPrint [12:46:59]line [12:46:59]line [12:46:59]line [12:46:59]line [12:46:59]line [12:46:59]written 0, free lines is 3336 [12:46:59]MH_Cut [12:46:59]Write to MH i2c: D1 01 00 D2 23 01 C7 [12:46:59]Write i2c OK [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: D1 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: D1 01 00 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: D1 01 00 D2 23 00 C6 [12:46:59]Write to MH i2c: 01 00 00 D3 23 F6 [12:46:59]Write i2c OK [12:46:59]MH_I2C_Read... [12:46:59]OFD Sender: No OFD packet to send [12:46:59]*** Cut start [12:46:59]*** Partial cut [12:46:59]*** CUTSNS_PIN = 1 [12:47:00]*** CUTSNS_PIN = 0 [12:47:00]*** Brake cut motor [12:47:00]Read from MH i2c: 01 [12:47:00]MH_I2C_Read... [12:47:00]*** Stop cut motor [12:47:00]*** Cut end [12:47:00]Read from MH i2c: 01 07 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: 01 07 00 D3 23 00 00 00 00 00 FF 0F 0B [12:47:00]process_action close_receipt done [12:47:00]requested_data is exist [12:47:00]produce_requested_data [12:47:00]requested_item fm.sn is exist - process it [12:47:00]wFMCommunicate request_size=4 [12:47:00]MH_SAM_APDU [12:47:00]CAPDU: 80 11 00 00 [12:47:00]Write to MH i2c: E2 08 00 D4 23 80 11 00 00 00 00 00 00 71 [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:00]Read from MH i2c: E2 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 17 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 17 00 D4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C3 [12:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:47:00]wFMCommunicate OK [12:47:00]requested_item fd.num is exist - process it [12:47:00]SAM_PROTO_GetFieldsCounters [12:47:00]wFMCommunicate request_size=4 [12:47:00]MH_SAM_APDU [12:47:00]CAPDU: 80 13 00 00 [12:47:00]Write to MH i2c: E2 08 00 D5 23 80 13 00 00 00 00 00 00 74 [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:00]Read from MH i2c: E2 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 62 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 62 00 D5 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9F FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [12:47:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9F FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:00]wFMCommunicate OK [12:47:00]SAM_PROTO_GetFieldsCounters done [12:47:00]requested_item shift.num is exist - process it [12:47:00]requested_item shift.opened is exist - process it [12:47:00]req_shift_opened [12:47:00]FM_GetShiftState [12:47:00]SAM_PROTO_GetShiftState [12:47:00]wFMCommunicate request_size=4 [12:47:00]MH_SAM_APDU [12:47:00]CAPDU: 80 13 01 00 [12:47:00]Write to MH i2c: E2 08 00 D6 23 80 13 01 00 00 00 00 00 76 [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:00]Read from MH i2c: E2 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 0E 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 0E 00 D6 23 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 B7 [12:47:00]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [12:47:00]wFMCommunicate OK [12:47:00]SAM_PROTO_GetShiftState done [12:47:00]FM_GetShiftState done [12:47:00]req_shift_opened done [12:47:00]requested_item shift.open_date is exist - process it [12:47:00]req_shift_open_date [12:47:00]req_shift_open_date done [12:47:00]produce_requested_data done [12:47:00]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64159,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [12:47:00]process_action_free close_receipt [12:47:00]json_value_free [12:47:00]json_value_free done [12:47:00]process_json_proto returns [12:47:00]Send response to host [12:47:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64159,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [12:47:00]free response buf [12:47:00]execute_script done [12:47:00]execute_script returns [12:47:00]free content buf [12:47:00]Sock 8.Close socket [12:47:00]Sock 8.Thread stoped [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:24]accept exits with 9 [13:21:24]New connection [13:21:24]New thread 3067133284 created [13:21:24] Sock 9.Parse request [13:21:24]Thread 3067276644 joined [13:21:24]Sock 9.Check first char [13:21:24]Waiting for new connection... [13:21:24]Sock 9.First char is OK [13:21:24]request: POST /json_proto HTTP/1.0 [13:21:24]Method: POST [13:21:24]URL: /json_proto [13:21:24]Method is POST - this is cgi request [13:21:24]url: /json_proto [13:21:24]query_string will be loaded in cgi processing [13:21:24]execute_cgi json_proto POST (null) [13:21:24]execute_cgi path=json_proto method=POST [13:21:24]POST find Content-Length [13:21:24]Host: 172.17.60.69:8080 [13:21:24]Content-Length: 620 [13:21:24]Content-Type: application/json [13:21:24] [13:21:24]POST finish read [13:21:24]Found Content-Length = 620 [13:21:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73690", "tax_sys" : 0, "items" : [ { "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:24]execute_script... [13:21:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73690", "tax_sys" : 0, "items" : [ { "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:24]POST & json_proto [13:21:24]process_json_proto [13:21:24]json parsed OK: [13:21:24]protocol is kg_v1.0 [13:21:24]action value=close_receipt [13:21:24]process_action close_receipt [13:21:24]cmd_close_receipt [13:21:24]MH_GetDate [13:21:24]Write to MH i2c: F0 00 00 D7 23 E9 [13:21:24]Write i2c OK [13:21:24]MH_I2C_Read... [13:21:24]Read from MH i2c: F0 [13:21:24]MH_I2C_Read... [13:21:24]Read from MH i2c: F0 09 00 [13:21:24]MH_I2C_Read... [13:21:24]Read from MH i2c: F0 09 00 D7 23 00 57 66 60 66 D2 83 5F 66 8F [13:21:24]GetLastDocTimeStamp 1717591620 [13:21:24]current date 1717593687 [13:21:24]FM_GetShiftState [13:21:24]SAM_PROTO_GetShiftState [13:21:24]wFMCommunicate request_size=4 [13:21:24]MH_SAM_APDU [13:21:24]CAPDU: 80 13 01 00 [13:21:24]Write to MH i2c: E2 08 00 D8 23 80 13 01 00 00 00 00 00 78 [13:21:24]Write i2c OK [13:21:24]MH_I2C_Read... [13:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:24]Read from MH i2c: E2 [13:21:24]MH_I2C_Read... [13:21:24]Read from MH i2c: E2 0E 00 [13:21:24]MH_I2C_Read... [13:21:24]Read from MH i2c: E2 0E 00 D8 23 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 B9 [13:21:24]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [13:21:24]wFMCommunicate OK [13:21:24]SAM_PROTO_GetShiftState done [13:21:24]FM_GetShiftState done [13:21:24]opened in 1717545925 [13:21:24]opened+sec_in_day 1717632325 [13:21:24]quantity*price = 14000 [13:21:24]sum+1 = 14001 [13:21:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 80 05.06.2024 13:21 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64160 ФПД: 179656073876579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T132127&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64160&fm=179656073876579&tin=02508201610067®Number=0000000000092737&sum=14000 0 [13:21:25]StoreToDocumentArchive [13:21:25]shift 375 fd 64160 [13:21:25]save to /storage/0375/doc_00064160 [13:21:25]save last doc name /storage/0375/doc_00064160 to /storage/kkm_last_doc_name [13:21:25]save OK [13:21:25]Clear old archive folders... [13:21:25]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:21:25]tlvbuf is 00FADC30 [13:21:25]SAM_PROTO_ClearQueue [13:21:25]wFMCommunicate request_size=4 [13:21:25]MH_SAM_APDU [13:21:25]CAPDU: 80 09 00 00 [13:21:25]Write to MH i2c: E2 08 00 E5 23 80 09 00 00 00 00 00 00 7A [13:21:25]Write i2c OK [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 [13:21:25]MH_I2C_Read... [13:21:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:25]Read from MH i2c: E2 03 00 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 03 00 E5 23 00 90 00 7C [13:21:25]RAPDU: 90 00 [13:21:25]wFMCommunicate OK [13:21:25]SAM_PROTO_ClearQueue done [13:21:25]KKMCreateOFDPacket [13:21:25]OFDProtocolAddRootSTLVToBuf [13:21:25]FM_MakeSignedData [13:21:25]FM_MakeSignedData [13:21:25]SAM_PROTO_SignData [13:21:25]wFMCommunicate request_size=4 [13:21:25]MH_SAM_APDU [13:21:25]CAPDU: 80 0D 01 02 [13:21:25]Write to MH i2c: E2 08 00 E6 23 80 0D 01 02 00 00 00 00 82 [13:21:25]Write i2c OK [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 [13:21:25]MH_I2C_Read... [13:21:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:25]Read from MH i2c: E2 03 00 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 03 00 E6 23 00 90 00 7D [13:21:25]RAPDU: 90 00 [13:21:25]wFMCommunicate OK [13:21:25]wFMCommunicate request_size=255 [13:21:25]MH_SAM_APDU [13:21:25]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 50 00 00 00 F4 03 04 00 57 66 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [13:21:25]Write to MH i2c: E2 02 01 E7 23 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 50 00 00 00 F4 03 04 00 57 66 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 B1 [13:21:25]Write i2c OK [13:21:25]MH_I2C_Read... [13:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:25]Read from MH i2c: E2 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 03 00 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 03 00 E7 23 00 90 00 7E [13:21:25]RAPDU: 90 00 [13:21:25]wFMCommunicate OK [13:21:25]wFMCommunicate request_size=32 [13:21:25]MH_SAM_APDU [13:21:25]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 A0 FA 00 00 35 04 06 00 A3 65 70 77 14 63 [13:21:25]Write to MH i2c: E2 23 00 E8 23 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 A0 FA 00 00 35 04 06 00 A3 65 70 77 14 63 00 00 E1 [13:21:25]Write i2c OK [13:21:25]MH_I2C_Read... [13:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:25]Read from MH i2c: E2 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 03 00 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 03 00 E8 23 00 90 00 7F [13:21:25]RAPDU: 90 00 [13:21:25]wFMCommunicate OK [13:21:25]wFMCommunicate request_size=4 [13:21:25]MH_SAM_APDU [13:21:25]CAPDU: 80 0D 03 02 [13:21:25]Write to MH i2c: E2 08 00 E9 23 80 0D 03 02 00 00 00 00 87 [13:21:25]Write i2c OK [13:21:25]MH_I2C_Read... [13:21:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:25]Read from MH i2c: E2 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 0B 00 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 0B 00 E9 23 00 0B F3 CE F0 E2 47 C3 FA 90 00 2A [13:21:25]RAPDU: 0B F3 CE F0 E2 47 C3 FA 90 00 [13:21:25]wFMCommunicate OK [13:21:25]SAM_PROTO_SignData done [13:21:25]FM_MakeSignedData done [13:21:25]CreateOFDProtocolMessage [13:21:25]wFMCommunicate request_size=4 [13:21:25]MH_SAM_APDU [13:21:25]CAPDU: 80 11 00 00 [13:21:25]Write to MH i2c: E2 08 00 EA 23 80 11 00 00 00 00 00 00 87 [13:21:25]Write i2c OK [13:21:25]MH_I2C_Read... [13:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:25]Read from MH i2c: E2 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 17 00 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 17 00 EA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D9 [13:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:21:25]wFMCommunicate OK [13:21:25]CreateOFDProtocolMessage done [13:21:25]OFDSenderStorePacket 64160 [13:21:25]StoreOFDPacket docnum=64160 [13:21:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 EE C8 1D 01 64 B1 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 50 00 00 00 F4 03 04 00 57 66 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A0 FA 00 00 35 04 06 00 A3 65 70 77 14 63 0B F3 CE F0 E2 47 C3 FA [13:21:25]CheckFolder [13:21:25]dirname=/storage/ofd_packets [13:21:25]CheckFolder done [13:21:25]ProducePacketName [13:21:25]name=ofd_packets/00064160 [13:21:25]NVStorageSaveData ofd_packets/00064160 [13:21:25]File name is /storage/ofd_packets/00064160 [13:21:25]Write 323 bytes [13:21:25]NVStorageSaveData done [13:21:25]OFDSenderStorePacket done [13:21:25]KKMCreateOFDPacket done [13:21:25]NVStorageSaveData kkm_last_timestamp [13:21:25]File name is /storage/kkm_last_timestamp [13:21:25]Write 4 bytes [13:21:25]NVStorageSaveData done [13:21:25]ExternCall_PrintAddStr [13:21:25]wPrintStart [13:21:25]Write to MH i2c: 01 00 00 EB 23 0E [13:21:25]Write i2c OK [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: 01 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: 01 07 00 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: 01 07 00 EB 23 00 00 00 00 00 FF 0F 23 [13:21:25]RasterBufferAndPrint [13:21:25]line Счет N : (3)73690 [13:21:25]line ИНН: 02508201610067 [13:21:25]line Контрольно-Кассовый Чек [13:21:25]line ПРОДАЖА [13:21:25]line Товар: 48747059 [13:21:25]line Сигареты Winston Legend Blue [13:21:25]line 1.000 * 140.00 [13:21:25]line = 140.00 [13:21:25]line НДС 12% НСП 1% [13:21:25]line > о реализуемом товаре [13:21:25]line ИТОГО: 140.00 [13:21:25]line НСП 1% : 1.24 [13:21:25]line НДС 12% : 14.87 [13:21:25]line Наличными: 140.00 [13:21:25]line Безнал.: 0.00 [13:21:25]line Место: АЗС № 117 "Партнер Нефть" [13:21:25]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:21:25]line СНО: Общий режим [13:21:25]line Чек 80 05.06.2024 13:21 [13:21:25]line Смена: 375 ФФД: 1.0 [13:21:25]line ЗНМ: 0300000031 [13:21:25]line РНМ: 0000000000092737 [13:21:25]line Версия ККМ: 001 [13:21:25]line ФМ: 0000000000875074 [13:21:25]line ФД: 64160 [13:21:25]line ФПД: 179656073876579 [13:21:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T132127&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64160&fm=179656073876579&tin=02508201610067®Number=0000000000092737&sum=14000 [13:21:26]line 0 [13:21:26]OFD Sender: Processing packet 64160 [packets to send 14, broken 13] [13:21:26]ProducePacketName [13:21:26]name=ofd_packets/00064160 [13:21:26]OFD Sender: To server: pG, [13:21:26]CommunicateWithHost lk.salyk.kg:30040 [13:21:26]ConnectInit lk.salyk.kg [13:21:26]written 0, free lines is 4095 [13:21:26]Connected sock=10 [13:21:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 EE C8 1D 01 64 B1 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 50 00 00 00 F4 03 04 00 57 66 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A0 FA 00 00 35 04 06 00 A3 65 70 77 14 63 0B F3 CE F0 E2 47 C3 FA [13:21:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 15 0B 47 00 0C C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A0 FA 00 00 F4 03 04 00 63 12 60 66 B6 04 01 00 00 E9 13 8C 17 03 58 C3 2D [13:21:26]CommunicateWithHost err = 0 [13:21:26]CheckOFDResponse [13:21:26]1017 (14) - 77093643461234 [13:21:26]1041 (16) - 0000000000875074 [13:21:26]1040 (4) - 64160 [13:21:26]1012 (4) - 05.06.2024 07:23 [13:21:26]1206 (1) - 0 [13:21:26]OFD Sender: Remove packet 64160 [13:21:26]ProducePacketName [13:21:26]name=ofd_packets/00064160 [13:21:26]NVStorageDeleteData [13:21:26]Write to MH i2c: 01 00 00 14 24 38 [13:21:26]Write i2c OK [13:21:26]MH_I2C_Read... [13:21:26]Read from MH i2c: 01 [13:21:26]MH_I2C_Read... [13:21:26]Read from MH i2c: 01 07 00 [13:21:26]MH_I2C_Read... [13:21:26]Read from MH i2c: 01 07 00 14 24 00 00 00 00 00 D2 0C 1D [13:21:26]RasterBufferAndPrint [13:21:26]line [13:21:26]line [13:21:26]line [13:21:26]line [13:21:26]line [13:21:26]written 0, free lines is 3287 [13:21:26]MH_Cut [13:21:26]Write to MH i2c: D1 01 00 1B 24 01 11 [13:21:26]Write i2c OK [13:21:26]MH_I2C_Read... [13:21:26]Read from MH i2c: D1 [13:21:26]MH_I2C_Read... [13:21:26]Read from MH i2c: D1 01 00 [13:21:26]MH_I2C_Read... [13:21:26]Read from MH i2c: D1 01 00 1B 24 00 10 [13:21:26]Write to MH i2c: 01 00 00 1C 24 40 [13:21:26]Write i2c OK [13:21:26]MH_I2C_Read... [13:21:27]OFD Sender: No OFD packet to send [13:21:27]*** Cut start [13:21:27]*** Partial cut [13:21:27]*** CUTSNS_PIN = 1 [13:21:27]*** CUTSNS_PIN = 0 [13:21:27]*** Brake cut motor [13:21:28]Read from MH i2c: 01 [13:21:28]MH_I2C_Read... [13:21:28]*** Stop cut motor [13:21:28]*** Cut end [13:21:28]Read from MH i2c: 01 07 00 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: 01 07 00 1C 24 00 00 00 00 00 FF 0F 55 [13:21:28]process_action close_receipt done [13:21:28]requested_data is exist [13:21:28]produce_requested_data [13:21:28]requested_item fm.sn is exist - process it [13:21:28]wFMCommunicate request_size=4 [13:21:28]MH_SAM_APDU [13:21:28]CAPDU: 80 11 00 00 [13:21:28]Write to MH i2c: E2 08 00 1D 24 80 11 00 00 00 00 00 00 BB [13:21:28]Write i2c OK [13:21:28]MH_I2C_Read... [13:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:28]Read from MH i2c: E2 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 17 00 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 17 00 1D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0D [13:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:21:28]wFMCommunicate OK [13:21:28]requested_item fd.num is exist - process it [13:21:28]SAM_PROTO_GetFieldsCounters [13:21:28]wFMCommunicate request_size=4 [13:21:28]MH_SAM_APDU [13:21:28]CAPDU: 80 13 00 00 [13:21:28]Write to MH i2c: E2 08 00 1E 24 80 13 00 00 00 00 00 00 BE [13:21:28]Write i2c OK [13:21:28]MH_I2C_Read... [13:21:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:28]Read from MH i2c: E2 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 62 00 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 62 00 1E 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A0 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [13:21:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A0 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:28]wFMCommunicate OK [13:21:28]SAM_PROTO_GetFieldsCounters done [13:21:28]requested_item shift.num is exist - process it [13:21:28]requested_item shift.opened is exist - process it [13:21:28]req_shift_opened [13:21:28]FM_GetShiftState [13:21:28]SAM_PROTO_GetShiftState [13:21:28]wFMCommunicate request_size=4 [13:21:28]MH_SAM_APDU [13:21:28]CAPDU: 80 13 01 00 [13:21:28]Write to MH i2c: E2 08 00 1F 24 80 13 01 00 00 00 00 00 C0 [13:21:28]Write i2c OK [13:21:28]MH_I2C_Read... [13:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:28]Read from MH i2c: E2 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 0E 00 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 0E 00 1F 24 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 01 [13:21:28]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [13:21:28]wFMCommunicate OK [13:21:28]SAM_PROTO_GetShiftState done [13:21:28]FM_GetShiftState done [13:21:28]req_shift_opened done [13:21:28]requested_item shift.open_date is exist - process it [13:21:28]req_shift_open_date [13:21:28]req_shift_open_date done [13:21:28]produce_requested_data done [13:21:28]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64160,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [13:21:28]process_action_free close_receipt [13:21:28]json_value_free [13:21:28]json_value_free done [13:21:28]process_json_proto returns [13:21:28]Send response to host [13:21:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64160,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [13:21:28]free response buf [13:21:28]execute_script done [13:21:28]execute_script returns [13:21:28]free content buf [13:21:28]Sock 9.Close socket [13:21:28]Sock 9.Thread stoped [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:48]accept exits with 8 [13:24:48]New connection [13:24:48]New thread 3067276644 created [13:24:48]Thread 3067133284 joined [13:24:48]Waiting for new connection... [13:24:48] Sock 8.Parse request [13:24:48]Sock 8.Check first char [13:24:48]Sock 8.First char is OK [13:24:48]request: POST /json_proto HTTP/1.0 [13:24:48]Method: POST [13:24:48]URL: /json_proto [13:24:48]Method is POST - this is cgi request [13:24:48]url: /json_proto [13:24:48]query_string will be loaded in cgi processing [13:24:48]execute_cgi json_proto POST (null) [13:24:48]execute_cgi path=json_proto method=POST [13:24:48]POST find Content-Length [13:24:48]Host: 172.17.60.69:8080 [13:24:48]Content-Length: 816 [13:24:48]Content-Type: application/json [13:24:48] [13:24:48]POST finish read [13:24:48]Found Content-Length = 816 [13:24:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73691", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 110.00, "quantity" : 3.000, "sum" : 330.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" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:48]execute_script... [13:24:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73691", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 110.00, "quantity" : 3.000, "sum" : 330.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" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:48]POST & json_proto [13:24:48]process_json_proto [13:24:48]json parsed OK: [13:24:48]protocol is kg_v1.0 [13:24:48]action value=close_receipt [13:24:48]process_action close_receipt [13:24:48]cmd_close_receipt [13:24:48]MH_GetDate [13:24:48]Write to MH i2c: F0 00 00 20 24 33 [13:24:48]Write i2c OK [13:24:48]MH_I2C_Read... [13:24:48]Read from MH i2c: F0 [13:24:48]MH_I2C_Read... [13:24:48]Read from MH i2c: F0 09 00 [13:24:48]MH_I2C_Read... [13:24:48]Read from MH i2c: F0 09 00 20 24 00 23 67 60 66 D2 83 5F 66 A6 [13:24:48]GetLastDocTimeStamp 1717593687 [13:24:48]current date 1717593891 [13:24:48]FM_GetShiftState [13:24:48]SAM_PROTO_GetShiftState [13:24:48]wFMCommunicate request_size=4 [13:24:48]MH_SAM_APDU [13:24:48]CAPDU: 80 13 01 00 [13:24:48]Write to MH i2c: E2 08 00 21 24 80 13 01 00 00 00 00 00 C2 [13:24:48]Write i2c OK [13:24:48]MH_I2C_Read... [13:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:48]Read from MH i2c: E2 [13:24:48]MH_I2C_Read... [13:24:48]Read from MH i2c: E2 0E 00 [13:24:48]MH_I2C_Read... [13:24:48]Read from MH i2c: E2 0E 00 21 24 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 03 [13:24:48]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [13:24:48]wFMCommunicate OK [13:24:48]SAM_PROTO_GetShiftState done [13:24:48]FM_GetShiftState done [13:24:48]opened in 1717545925 [13:24:48]opened+sec_in_day 1717632325 [13:24:48]quantity*price = 33000 [13:24:48]sum+1 = 33001 [13:24:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 330.00 НСП 1% : 2.92 НДС 12% : 35.04 Наличными: 0.00 Безнал.: 330.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 81 05.06.2024 13:24 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64161 ФПД: 198781855348698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T132451&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64161&fm=198781855348698&tin=02508201610067®Number=0000000000092737&sum=33000 0 [13:24:49]StoreToDocumentArchive [13:24:49]shift 375 fd 64161 [13:24:49]save to /storage/0375/doc_00064161 [13:24:49]save last doc name /storage/0375/doc_00064161 to /storage/kkm_last_doc_name [13:24:49]save OK [13:24:49]Clear old archive folders... [13:24:49]ProcessDocumentItem done err = 0, tmpTLVsize=284 [13:24:49]tlvbuf is 00FAD830 [13:24:49]SAM_PROTO_ClearQueue [13:24:49]wFMCommunicate request_size=4 [13:24:49]MH_SAM_APDU [13:24:49]CAPDU: 80 09 00 00 [13:24:49]Write to MH i2c: E2 08 00 2E 24 80 09 00 00 00 00 00 00 C4 [13:24:49]Write i2c OK [13:24:49]MH_I2C_Read... [13:24:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:49]Read from MH i2c: E2 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: E2 03 00 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: E2 03 00 2E 24 00 90 00 C6 [13:24:49]RAPDU: 90 00 [13:24:49]wFMCommunicate OK [13:24:49]SAM_PROTO_ClearQueue done [13:24:49]KKMCreateOFDPacket [13:24:49]OFDProtocolAddRootSTLVToBuf [13:24:49]FM_MakeSignedData [13:24:49]FM_MakeSignedData [13:24:49]SAM_PROTO_SignData [13:24:49]wFMCommunicate request_size=4 [13:24:49]MH_SAM_APDU [13:24:49]CAPDU: 80 0D 01 02 [13:24:49]Write to MH i2c: E2 08 00 2F 24 80 0D 01 02 00 00 00 00 CC [13:24:49]Write i2c OK [13:24:49]MH_I2C_Read... [13:24:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:49]Read from MH i2c: E2 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: E2 03 00 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: E2 03 00 2F 24 00 90 00 C7 [13:24:49]RAPDU: 90 00 [13:24:49]wFMCommunicate OK [13:24:49]wFMCommunicate request_size=255 [13:24:49]MH_SAM_APDU [13:24:49]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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 23 67 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 [13:24:49]Write to MH i2c: E2 02 01 30 24 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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 23 67 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 00 00 33 [13:24:49]Write i2c OK [13:24:49]MH_I2C_Read... [13:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:49]Read from MH i2c: E2 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: E2 03 00 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: E2 03 00 30 24 00 90 00 C8 [13:24:49]RAPDU: 90 00 [13:24:49]wFMCommunicate OK [13:24:49]wFMCommunicate request_size=43 [13:24:49]MH_SAM_APDU [13:24:49]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A1 FA 00 00 35 04 06 00 B4 CA 81 E0 37 DA [13:24:49]Write to MH i2c: E2 2E 00 31 24 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A1 FA 00 00 35 04 06 00 B4 CA 81 E0 37 DA 00 00 41 [13:24:49]Write i2c OK [13:24:49]MH_I2C_Read... [13:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:49]Read from MH i2c: E2 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: E2 03 00 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: E2 03 00 31 24 00 90 00 C9 [13:24:49]RAPDU: 90 00 [13:24:49]wFMCommunicate OK [13:24:49]wFMCommunicate request_size=4 [13:24:49]MH_SAM_APDU [13:24:49]CAPDU: 80 0D 03 02 [13:24:49]Write to MH i2c: E2 08 00 32 24 80 0D 03 02 00 00 00 00 D1 [13:24:49]Write i2c OK [13:24:49]MH_I2C_Read... [13:24:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:49]Read from MH i2c: E2 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: E2 0B 00 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: E2 0B 00 32 24 00 19 75 DB 0D 22 55 23 2E 90 00 10 [13:24:49]RAPDU: 19 75 DB 0D 22 55 23 2E 90 00 [13:24:49]wFMCommunicate OK [13:24:49]SAM_PROTO_SignData done [13:24:49]FM_MakeSignedData done [13:24:49]CreateOFDProtocolMessage [13:24:49]wFMCommunicate request_size=4 [13:24:49]MH_SAM_APDU [13:24:49]CAPDU: 80 11 00 00 [13:24:49]Write to MH i2c: E2 08 00 33 24 80 11 00 00 00 00 00 00 D1 [13:24:49]Write i2c OK [13:24:49]MH_I2C_Read... [13:24:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:49]Read from MH i2c: E2 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: E2 17 00 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: E2 17 00 33 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 23 [13:24:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:24:49]wFMCommunicate OK [13:24:49]CreateOFDProtocolMessage done [13:24:49]OFDSenderStorePacket 64161 [13:24:49]StoreOFDPacket docnum=64161 [13:24:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 59 05 28 01 42 65 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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 23 67 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A1 FA 00 00 35 04 06 00 B4 CA 81 E0 37 DA 19 75 DB 0D 22 55 23 2E [13:24:49]CheckFolder [13:24:49]dirname=/storage/ofd_packets [13:24:49]CheckFolder done [13:24:49]ProducePacketName [13:24:49]name=ofd_packets/00064161 [13:24:49]NVStorageSaveData ofd_packets/00064161 [13:24:49]File name is /storage/ofd_packets/00064161 [13:24:49]Write 334 bytes [13:24:49]NVStorageSaveData done [13:24:49]OFDSenderStorePacket done [13:24:49]KKMCreateOFDPacket done [13:24:49]NVStorageSaveData kkm_last_timestamp [13:24:49]File name is /storage/kkm_last_timestamp [13:24:49]Write 4 bytes [13:24:49]NVStorageSaveData done [13:24:49]ExternCall_PrintAddStr [13:24:49]wPrintStart [13:24:49]Write to MH i2c: 01 00 00 34 24 58 [13:24:49]Write i2c OK [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: 01 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: 01 07 00 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: 01 07 00 34 24 00 00 00 00 00 FF 0F 6D [13:24:49]RasterBufferAndPrint [13:24:49]line Счет N : (3)73691 [13:24:49]line ИНН: 02508201610067 [13:24:49]line Контрольно-Кассовый Чек [13:24:49]line ПРОДАЖА [13:24:49]line Товар: 2000034250011 [13:24:49]line Горячий шоколад (GABB trade) [13:24:49]line 3.000 * 110.00 [13:24:49]line = 330.00 [13:24:49]line НДС 12% НСП 1% [13:24:49]line > о реализуемом товаре [13:24:49]line ИТОГО: 330.00 [13:24:49]line НСП 1% : 2.92 [13:24:49]line НДС 12% : 35.04 [13:24:49]line Наличными: 0.00 [13:24:49]line Безнал.: 330.00 [13:24:49]line Место: АЗС № 117 "Партнер Нефть" [13:24:49]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:24:49]line СНО: Общий режим [13:24:49]line Чек 81 05.06.2024 13:24 [13:24:49]line Смена: 375 ФФД: 1.0 [13:24:49]line ЗНМ: 0300000031 [13:24:49]line РНМ: 0000000000092737 [13:24:49]line Версия ККМ: 001 [13:24:49]line Платежная система: O! деньги [13:24:49]line ФМ: 0000000000875074 [13:24:49]line ФД: 64161 [13:24:49]line ФПД: 198781855348698 [13:24:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T132451&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64161&fm=198781855348698&tin=02508201610067®Number=0000000000092737&sum=33000 [13:24:50]line 0 [13:24:50]OFD Sender: Processing packet 64161 [packets to send 14, broken 13] [13:24:50]ProducePacketName [13:24:50]name=ofd_packets/00064161 [13:24:50]OFD Sender: To server: pG, [13:24:50]CommunicateWithHost lk.salyk.kg:30040 [13:24:50]ConnectInit lk.salyk.kg [13:24:50]written 0, free lines is 4095 [13:24:50]Connected sock=10 [13:24:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 59 05 28 01 42 65 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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 23 67 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A1 FA 00 00 35 04 06 00 B4 CA 81 E0 37 DA 19 75 DB 0D 22 55 23 2E [13:24:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 F0 06 47 00 7A 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A1 FA 00 00 F4 03 04 00 2F 13 60 66 B6 04 01 00 00 C5 2D 65 38 C3 6A 28 FE [13:24:50]CommunicateWithHost err = 0 [13:24:50]CheckOFDResponse [13:24:50]1017 (14) - 77093643461234 [13:24:50]1041 (16) - 0000000000875074 [13:24:50]1040 (4) - 64161 [13:24:50]1012 (4) - 05.06.2024 07:26 [13:24:50]1206 (1) - 0 [13:24:50]OFD Sender: Remove packet 64161 [13:24:50]ProducePacketName [13:24:50]name=ofd_packets/00064161 [13:24:50]NVStorageDeleteData [13:24:50]Write to MH i2c: 01 00 00 5F 24 83 [13:24:50]Write i2c OK [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: 01 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: 01 07 00 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: 01 07 00 5F 24 00 00 00 00 00 BC 0C 52 [13:24:50]RasterBufferAndPrint [13:24:50]line [13:24:50]line [13:24:50]line [13:24:50]line [13:24:50]line [13:24:50]written 0, free lines is 3267 [13:24:50]MH_Cut [13:24:50]Write to MH i2c: D1 01 00 66 24 01 5C [13:24:50]Write i2c OK [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: D1 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: D1 01 00 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: D1 01 00 66 24 00 5B [13:24:50]Write to MH i2c: 01 00 00 67 24 8B [13:24:50]Write i2c OK [13:24:50]MH_I2C_Read... [13:24:50]OFD Sender: No OFD packet to send [13:24:51]*** Cut start [13:24:51]*** Partial cut [13:24:51]*** CUTSNS_PIN = 1 [13:24:51]*** CUTSNS_PIN = 0 [13:24:51]*** Brake cut motor [13:24:52]Read from MH i2c: 01 [13:24:52]MH_I2C_Read... [13:24:52]*** Stop cut motor [13:24:52]*** Cut end [13:24:52]Read from MH i2c: 01 07 00 [13:24:52]MH_I2C_Read... [13:24:52]Read from MH i2c: 01 07 00 67 24 00 00 00 00 00 FF 0F A0 [13:24:52]process_action close_receipt done [13:24:52]requested_data is exist [13:24:52]produce_requested_data [13:24:52]requested_item fm.sn is exist - process it [13:24:52]wFMCommunicate request_size=4 [13:24:52]MH_SAM_APDU [13:24:52]CAPDU: 80 11 00 00 [13:24:52]Write to MH i2c: E2 08 00 68 24 80 11 00 00 00 00 00 00 06 [13:24:52]Write i2c OK [13:24:52]MH_I2C_Read... [13:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:52]Read from MH i2c: E2 [13:24:52]MH_I2C_Read... [13:24:52]Read from MH i2c: E2 17 00 [13:24:52]MH_I2C_Read... [13:24:52]Read from MH i2c: E2 17 00 68 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 58 [13:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:24:52]wFMCommunicate OK [13:24:52]requested_item fd.num is exist - process it [13:24:52]SAM_PROTO_GetFieldsCounters [13:24:52]wFMCommunicate request_size=4 [13:24:52]MH_SAM_APDU [13:24:52]CAPDU: 80 13 00 00 [13:24:52]Write to MH i2c: E2 08 00 69 24 80 13 00 00 00 00 00 00 09 [13:24:52]Write i2c OK [13:24:52]MH_I2C_Read... [13:24:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:52]Read from MH i2c: E2 [13:24:52]MH_I2C_Read... [13:24:52]Read from MH i2c: E2 62 00 [13:24:52]MH_I2C_Read... [13:24:52]Read from MH i2c: E2 62 00 69 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A1 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [13:24:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A1 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:52]wFMCommunicate OK [13:24:52]SAM_PROTO_GetFieldsCounters done [13:24:52]requested_item shift.num is exist - process it [13:24:52]requested_item shift.opened is exist - process it [13:24:52]req_shift_opened [13:24:52]FM_GetShiftState [13:24:52]SAM_PROTO_GetShiftState [13:24:52]wFMCommunicate request_size=4 [13:24:52]MH_SAM_APDU [13:24:52]CAPDU: 80 13 01 00 [13:24:52]Write to MH i2c: E2 08 00 6A 24 80 13 01 00 00 00 00 00 0B [13:24:52]Write i2c OK [13:24:52]MH_I2C_Read... [13:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:52]Read from MH i2c: E2 [13:24:52]MH_I2C_Read... [13:24:52]Read from MH i2c: E2 0E 00 [13:24:52]MH_I2C_Read... [13:24:52]Read from MH i2c: E2 0E 00 6A 24 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 4C [13:24:52]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [13:24:52]wFMCommunicate OK [13:24:52]SAM_PROTO_GetShiftState done [13:24:52]FM_GetShiftState done [13:24:52]req_shift_opened done [13:24:52]requested_item shift.open_date is exist - process it [13:24:52]req_shift_open_date [13:24:52]req_shift_open_date done [13:24:52]produce_requested_data done [13:24:52]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64161,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [13:24:52]process_action_free close_receipt [13:24:52]json_value_free [13:24:52]json_value_free done [13:24:52]process_json_proto returns [13:24:52]Send response to host [13:24:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64161,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [13:24:52]free response buf [13:24:52]execute_script done [13:24:52]execute_script returns [13:24:52]free content buf [13:24:52]Sock 8.Close socket [13:24:52]Sock 8.Thread stoped [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:19]accept exits with 9 [13:28:19]New connection [13:28:19]New thread 3067133284 created [13:28:19]Thread 3067276644 joined [13:28:19]Waiting for new connection... [13:28:19] Sock 9.Parse request [13:28:19]Sock 9.Check first char [13:28:19]Sock 9.First char is OK [13:28:19]request: POST /json_proto HTTP/1.0 [13:28:19]Method: POST [13:28:19]URL: /json_proto [13:28:19]Method is POST - this is cgi request [13:28:19]url: /json_proto [13:28:19]query_string will be loaded in cgi processing [13:28:19]execute_cgi json_proto POST (null) [13:28:19]execute_cgi path=json_proto method=POST [13:28:19]POST find Content-Length [13:28:19]Host: 172.17.60.69:8080 [13:28:19]Content-Length: 966 [13:28:19]Content-Type: application/json [13:28:19] [13:28:19]POST finish read [13:28:19]Found Content-Length = 966 [13:28:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73692", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001159351", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D 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" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:19]execute_script... [13:28: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)73692", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001159351", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D 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" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:19]POST & json_proto [13:28:19]process_json_proto [13:28:19]json parsed OK: [13:28:19]protocol is kg_v1.0 [13:28:19]action value=close_receipt [13:28:19]process_action close_receipt [13:28:19]cmd_close_receipt [13:28:19]MH_GetDate [13:28:19]Write to MH i2c: F0 00 00 6B 24 7E [13:28:19]Write i2c OK [13:28:19]MH_I2C_Read... [13:28:19]Read from MH i2c: F0 [13:28:19]MH_I2C_Read... [13:28:19]Read from MH i2c: F0 09 00 [13:28:19]MH_I2C_Read... [13:28:19]Read from MH i2c: F0 09 00 6B 24 00 F7 67 60 66 D2 83 5F 66 C5 [13:28:19]GetLastDocTimeStamp 1717593891 [13:28:19]current date 1717594103 [13:28:19]FM_GetShiftState [13:28:19]SAM_PROTO_GetShiftState [13:28:19]wFMCommunicate request_size=4 [13:28:19]MH_SAM_APDU [13:28:19]CAPDU: 80 13 01 00 [13:28:19]Write to MH i2c: E2 08 00 6C 24 80 13 01 00 00 00 00 00 0D [13:28:19]Write i2c OK [13:28:19]MH_I2C_Read... [13:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:19]Read from MH i2c: E2 [13:28:19]MH_I2C_Read... [13:28:19]Read from MH i2c: E2 0E 00 [13:28:19]MH_I2C_Read... [13:28:19]Read from MH i2c: E2 0E 00 6C 24 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 4E [13:28:19]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [13:28:19]wFMCommunicate OK [13:28:19]SAM_PROTO_GetShiftState done [13:28:19]FM_GetShiftState done [13:28:19]opened in 1717545925 [13:28:19]opened+sec_in_day 1717632325 [13:28:19]quantity*price = 12500 [13:28:19]sum+1 = 12501 [13:28:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001159351 Напиток Lipton IceTea 1л лимон Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.07 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 82 05.06.2024 13:28 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64162 ФПД: 119143818126000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T132823&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64162&fm=119143818126000&tin=02508201610067®Number=0000000000092737&sum=25500 0 [13:28:20]StoreToDocumentArchive [13:28:20]shift 375 fd 64162 [13:28:20]save to /storage/0375/doc_00064162 [13:28:20]save last doc name /storage/0375/doc_00064162 to /storage/kkm_last_doc_name [13:28:20]save OK [13:28:20]Clear old archive folders... [13:28:20]ProcessDocumentItem done err = 0, tmpTLVsize=417 [13:28:20]tlvbuf is 00FB0870 [13:28:20]SAM_PROTO_ClearQueue [13:28:20]wFMCommunicate request_size=4 [13:28:20]MH_SAM_APDU [13:28:20]CAPDU: 80 09 00 00 [13:28:20]Write to MH i2c: E2 08 00 79 24 80 09 00 00 00 00 00 00 0F [13:28:20]Write i2c OK [13:28:20]MH_I2C_Read... [13:28:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:20]Read from MH i2c: E2 [13:28:20]MH_I2C_Read... [13:28:20]Read from MH i2c: E2 03 00 [13:28:20]MH_I2C_Read... [13:28:20]Read from MH i2c: E2 03 00 79 24 00 90 00 11 [13:28:20]RAPDU: 90 00 [13:28:20]wFMCommunicate OK [13:28:20]SAM_PROTO_ClearQueue done [13:28:20]KKMCreateOFDPacket [13:28:20]OFDProtocolAddRootSTLVToBuf [13:28:20]FM_MakeSignedData [13:28:20]FM_MakeSignedData [13:28:20]SAM_PROTO_SignData [13:28:20]wFMCommunicate request_size=4 [13:28:20]MH_SAM_APDU [13:28:20]CAPDU: 80 0D 01 02 [13:28:20]Write to MH i2c: E2 08 00 7A 24 80 0D 01 02 00 00 00 00 17 [13:28:20]Write i2c OK [13:28:20]MH_I2C_Read... [13:28:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:20]Read from MH i2c: E2 [13:28:20]MH_I2C_Read... [13:28:20]Read from MH i2c: E2 03 00 [13:28:20]MH_I2C_Read... [13:28:20]Read from MH i2c: E2 03 00 7A 24 00 90 00 12 [13:28:20]RAPDU: 90 00 [13:28:20]wFMCommunicate OK [13:28:20]wFMCommunicate request_size=255 [13:28:20]MH_SAM_APDU [13:28:20]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 33 35 31 06 04 33 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 BB D0 B8 D0 BC D0 BE D0 BD 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 [13:28:20]Write to MH i2c: E2 02 01 7B 24 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 33 35 31 06 04 33 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 BB D0 B8 D0 BC D0 BE D0 BD 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 00 00 02 [13:28:20]Write i2c OK [13:28:20]MH_I2C_Read... [13:28:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:20]Read from MH i2c: E2 [13:28:20]MH_I2C_Read... [13:28:20]Read from MH i2c: E2 03 00 [13:28:20]MH_I2C_Read... [13:28:20]Read from MH i2c: E2 03 00 7B 24 00 90 00 13 [13:28:20]RAPDU: 90 00 [13:28:20]wFMCommunicate OK [13:28:20]wFMCommunicate request_size=176 [13:28:20]MH_SAM_APDU [13:28:20]CAPDU: 80 0D 02 02 AB 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 E2 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 52 00 00 00 F4 03 04 00 F7 67 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A2 FA 00 00 35 04 06 00 6C 5C 54 F4 E2 B0 [13:28:20]Write to MH i2c: E2 B3 00 7C 24 80 0D 02 02 AB 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 E2 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 52 00 00 00 F4 03 04 00 F7 67 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A2 FA 00 00 35 04 06 00 6C 5C 54 F4 E2 B0 00 00 20 [13:28:21]Write i2c OK [13:28:21]MH_I2C_Read... [13:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:21]OFD Sender: No OFD packet to send [13:28:21]Read from MH i2c: E2 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 03 00 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 03 00 7C 24 00 90 00 14 [13:28:21]RAPDU: 90 00 [13:28:21]wFMCommunicate OK [13:28:21]wFMCommunicate request_size=4 [13:28:21]MH_SAM_APDU [13:28:21]CAPDU: 80 0D 03 02 [13:28:21]Write to MH i2c: E2 08 00 7D 24 80 0D 03 02 00 00 00 00 1C [13:28:21]Write i2c OK [13:28:21]MH_I2C_Read... [13:28:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:21]Read from MH i2c: E2 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 0B 00 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 0B 00 7D 24 00 A1 A3 44 90 C6 3C 63 5E 90 00 F8 [13:28:21]RAPDU: A1 A3 44 90 C6 3C 63 5E 90 00 [13:28:21]wFMCommunicate OK [13:28:21]SAM_PROTO_SignData done [13:28:21]FM_MakeSignedData done [13:28:21]CreateOFDProtocolMessage [13:28:21]wFMCommunicate request_size=4 [13:28:21]MH_SAM_APDU [13:28:21]CAPDU: 80 11 00 00 [13:28:21]Write to MH i2c: E2 08 00 7E 24 80 11 00 00 00 00 00 00 1C [13:28:21]Write i2c OK [13:28:21]MH_I2C_Read... [13:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:21]Read from MH i2c: E2 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 17 00 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: E2 17 00 7E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6E [13:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:28:21]wFMCommunicate OK [13:28:21]CreateOFDProtocolMessage done [13:28:21]OFDSenderStorePacket 64162 [13:28:21]StoreOFDPacket docnum=64162 [13:28:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 B5 01 00 00 C2 71 AD 01 0C D3 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 33 35 31 06 04 33 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 BB D0 B8 D0 BC D0 BE D0 BD 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 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 52 00 00 00 F4 03 04 00 F7 67 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A2 FA 00 00 35 04 06 00 6C 5C 54 F4 E2 B0 A1 A3 44 90 C6 3C 63 5E [13:28:21]CheckFolder [13:28:21]dirname=/storage/ofd_packets [13:28:21]CheckFolder done [13:28:21]ProducePacketName [13:28:21]name=ofd_packets/00064162 [13:28:21]NVStorageSaveData ofd_packets/00064162 [13:28:21]File name is /storage/ofd_packets/00064162 [13:28:21]Write 467 bytes [13:28:21]NVStorageSaveData done [13:28:21]OFDSenderStorePacket done [13:28:21]KKMCreateOFDPacket done [13:28:21]NVStorageSaveData kkm_last_timestamp [13:28:21]File name is /storage/kkm_last_timestamp [13:28:21]Write 4 bytes [13:28:21]NVStorageSaveData done [13:28:21]ExternCall_PrintAddStr [13:28:21]wPrintStart [13:28:21]Write to MH i2c: 01 00 00 7F 24 A3 [13:28:21]Write i2c OK [13:28:21]MH_I2C_Read... [13:28:21]OFD Sender: Processing packet 64162 [packets to send 14, broken 13] [13:28:21]Read from MH i2c: ProducePacketName [13:28:21]01 name=ofd_packets/00064162 [13:28:21] [13:28:21]MH_I2C_Read... [13:28:21]OFD Sender: To server: pG, [13:28:21]Read from MH i2c: CommunicateWithHost lk.salyk.kg:30040 [13:28:21]01 ConnectInit lk.salyk.kg [13:28:21]07 00 [13:28:21]MH_I2C_Read... [13:28:21]Read from MH i2c: 01 07 00 7F 24 00 00 00 00 00 FF 0F B8 [13:28:21]RasterBufferAndPrint [13:28:21]line Счет N : (3)73692 [13:28:21]line ИНН: 02508201610067 [13:28:21]line Контрольно-Кассовый Чек [13:28:21]line ПРОДАЖА [13:28:21]line Товар: 4870202521247 [13:28:21]line Напиток MAXI чай 1,2 черн.персик [13:28:21]line 1.000 * 125.00 [13:28:21]line = 125.00 [13:28:21]line НДС 12% НСП 1% [13:28:21]line > о реализуемом товаре [13:28:21]line Товар: 4870001159351 [13:28:21]line Напиток Lipton IceTea 1л лимон Regular [13:28:21]line 1.000 * 130.00 [13:28:21]line = 130.00 [13:28:21]line НДС 12% НСП 1% [13:28:21]line > о реализуемом товаре [13:28:21]line ИТОГО: 255.00 [13:28:21]line НСП 1% : 2.26 [13:28:21]line НДС 12% : 27.07 [13:28:21]line Наличными: 255.00 [13:28:21]line Безнал.: 0.00 [13:28:21]line Место: АЗС № 117 "Партнер Нефть" [13:28:21]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:28:21]line СНО: Общий режим [13:28:21]line Чек 82 05.06.2024 13:28 [13:28:21]line Смена: 375 ФФД: 1.0 [13:28:21]line ЗНМ: 0300000031 [13:28:21]line РНМ: 0000000000092737 [13:28:21]line Версия ККМ: 001 [13:28:21]line ФМ: 0000000000875074 [13:28:21]line ФД: 64162 [13:28:21]line ФПД: 119143818126000 [13:28:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T132823&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64162&fm=119143818126000&tin=02508201610067®Number=0000000000092737&sum=25500 [13:28:21]line 0 [13:28:21]written 0, free lines is 4095 [13:28:21]Connected sock=11 [13:28:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 B5 01 00 00 C2 71 AD 01 0C D3 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 33 35 31 06 04 33 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 BB D0 B8 D0 BC D0 BE D0 BD 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 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 52 00 00 00 F4 03 04 00 F7 67 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A2 FA 00 00 35 04 06 00 6C 5C 54 F4 E2 B0 A1 A3 44 90 C6 3C 63 5E [13:28:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 88 DD 47 00 5C 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A2 FA 00 00 F4 03 04 00 02 14 60 66 B6 04 01 00 00 50 70 F8 2C 19 C3 9F 97 [13:28:21]CommunicateWithHost err = 0 [13:28:21]CheckOFDResponse [13:28:21]1017 (14) - 77093643461234 [13:28:21]1041 (16) - 0000000000875074 [13:28:21]1040 (4) - 64162 [13:28:21]1012 (4) - 05.06.2024 07:30 [13:28:21]1206 (1) - 0 [13:28:21]OFD Sender: Remove packet 64162 [13:28:21]ProducePacketName [13:28:21]name=ofd_packets/00064162 [13:28:21]NVStorageDeleteData [13:28:22]Write to MH i2c: 01 00 00 AF 24 D3 [13:28:22]Write i2c OK [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: 01 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: 01 07 00 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: 01 07 00 AF 24 00 00 00 00 00 84 0C 6A [13:28:22]RasterBufferAndPrint [13:28:22]line [13:28:22]line [13:28:22]line [13:28:22]line [13:28:22]line [13:28:22]written 0, free lines is 3211 [13:28:22]MH_Cut [13:28:22]Write to MH i2c: D1 01 00 B6 24 01 AC [13:28:22]Write i2c OK [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: D1 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: D1 01 00 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: D1 01 00 B6 24 00 AB [13:28:22]Write to MH i2c: 01 00 00 B7 24 DB [13:28:22]Write i2c OK [13:28:22]MH_I2C_Read... [13:28:22]OFD Sender: No OFD packet to send [13:28:23]*** Cut start [13:28:23]*** Partial cut [13:28:23]*** CUTSNS_PIN = 1 [13:28:23]*** CUTSNS_PIN = 0 [13:28:23]*** Brake cut motor [13:28:23]Read from MH i2c: 01 [13:28:23]MH_I2C_Read... [13:28:23]*** Stop cut motor [13:28:23]*** Cut end [13:28:23]Read from MH i2c: 01 07 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: 01 07 00 B7 24 00 00 00 00 00 FF 0F F0 [13:28:23]process_action close_receipt done [13:28:23]requested_data is exist [13:28:23]produce_requested_data [13:28:23]requested_item fm.sn is exist - process it [13:28:23]wFMCommunicate request_size=4 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 11 00 00 [13:28:23]Write to MH i2c: E2 08 00 B8 24 80 11 00 00 00 00 00 00 56 [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:23]Read from MH i2c: E2 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 17 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 17 00 B8 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A8 [13:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:28:23]wFMCommunicate OK [13:28:23]requested_item fd.num is exist - process it [13:28:23]SAM_PROTO_GetFieldsCounters [13:28:23]wFMCommunicate request_size=4 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 13 00 00 [13:28:23]Write to MH i2c: E2 08 00 B9 24 80 13 00 00 00 00 00 00 59 [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:23]Read from MH i2c: E2 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 62 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 62 00 B9 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A2 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [13:28:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A2 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:23]wFMCommunicate OK [13:28:23]SAM_PROTO_GetFieldsCounters done [13:28:23]requested_item shift.num is exist - process it [13:28:23]requested_item shift.opened is exist - process it [13:28:23]req_shift_opened [13:28:23]FM_GetShiftState [13:28:23]SAM_PROTO_GetShiftState [13:28:23]wFMCommunicate request_size=4 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 13 01 00 [13:28:23]Write to MH i2c: E2 08 00 BA 24 80 13 01 00 00 00 00 00 5B [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:23]Read from MH i2c: E2 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 0E 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 0E 00 BA 24 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 9C [13:28:23]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [13:28:23]wFMCommunicate OK [13:28:23]SAM_PROTO_GetShiftState done [13:28:23]FM_GetShiftState done [13:28:23]req_shift_opened done [13:28:23]requested_item shift.open_date is exist - process it [13:28:23]req_shift_open_date [13:28:23]req_shift_open_date done [13:28:23]produce_requested_data done [13:28:23]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64162,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [13:28:23]process_action_free close_receipt [13:28:23]json_value_free [13:28:23]json_value_free done [13:28:23]process_json_proto returns [13:28:23]Send response to host [13:28:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64162,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [13:28:23]free response buf [13:28:23]execute_script done [13:28:23]execute_script returns [13:28:23]free content buf [13:28:23]Sock 9.Close socket [13:28:23]Sock 9.Thread stoped [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:51]accept exits with 10 [13:35:51]New connection [13:35:51]New thread 3067276644 created [13:35:51]Thread 3067133284 joined [13:35:51]Waiting for new connection... [13:35:51] Sock 10.Parse request [13:35:51]Sock 10.Check first char [13:35:51]Sock 10.First char is OK [13:35:51]request: POST /json_proto HTTP/1.0 [13:35:51]Method: POST [13:35:51]URL: /json_proto [13:35:51]Method is POST - this is cgi request [13:35:51]url: /json_proto [13:35:51]query_string will be loaded in cgi processing [13:35:51]execute_cgi json_proto POST (null) [13:35:51]execute_cgi path=json_proto method=POST [13:35:51]POST find Content-Length [13:35:51]Host: 172.17.60.69:8080 [13:35:51]Content-Length: 650 [13:35:51]Content-Type: application/json [13:35:51] [13:35:51]POST finish read [13:35:51]Found Content-Length = 650 [13:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73693", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 3.000, "sum" : 423.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 423.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:51]execute_script... [13:35:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73693", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 3.000, "sum" : 423.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 423.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:51]POST & json_proto [13:35:51]process_json_proto [13:35:51]json parsed OK: [13:35:51]protocol is kg_v1.0 [13:35:51]action value=close_receipt [13:35:51]process_action close_receipt [13:35:51]cmd_close_receipt [13:35:51]MH_GetDate [13:35:51]Write to MH i2c: F0 00 00 BB 24 CE [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: F0 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: F0 09 00 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: F0 09 00 BB 24 00 BB 69 60 66 D2 83 5F 66 DB [13:35:51]GetLastDocTimeStamp 1717594103 [13:35:51]current date 1717594555 [13:35:51]FM_GetShiftState [13:35:51]SAM_PROTO_GetShiftState [13:35:51]wFMCommunicate request_size=4 [13:35:51]MH_SAM_APDU [13:35:51]CAPDU: 80 13 01 00 [13:35:51]Write to MH i2c: E2 08 00 BC 24 80 13 01 00 00 00 00 00 5D [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:51]Read from MH i2c: E2 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 0E 00 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 0E 00 BC 24 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 9E [13:35:51]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [13:35:51]wFMCommunicate OK [13:35:51]SAM_PROTO_GetShiftState done [13:35:51]FM_GetShiftState done [13:35:51]opened in 1717545925 [13:35:51]opened+sec_in_day 1717632325 [13:35:51]quantity*price = 42300 [13:35:51]sum+1 = 42301 [13:35:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 423.00 НСП 1% : 3.74 НДС 12% : 44.92 Наличными: 423.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 83 05.06.2024 13:35 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64163 ФПД: 259252912232152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T133555&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64163&fm=259252912232152&tin=02508201610067®Number=0000000000092737&sum=42300 0 [13:35:52]StoreToDocumentArchive [13:35:52]shift 375 fd 64163 [13:35:52]save to /storage/0375/doc_00064163 [13:35:52]save last doc name /storage/0375/doc_00064163 to /storage/kkm_last_doc_name [13:35:52]save OK [13:35:52]Clear old archive folders... [13:35:52]ProcessDocumentItem done err = 0, tmpTLVsize=287 [13:35:52]tlvbuf is B6EF7150 [13:35:52]SAM_PROTO_ClearQueue [13:35:52]wFMCommunicate request_size=4 [13:35:52]MH_SAM_APDU [13:35:52]CAPDU: 80 09 00 00 [13:35:52]Write to MH i2c: E2 08 00 C9 24 80 09 00 00 00 00 00 00 5F [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:52]Read from MH i2c: E2 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 C9 24 00 90 00 61 [13:35:52]RAPDU: 90 00 [13:35:52]wFMCommunicate OK [13:35:52]SAM_PROTO_ClearQueue done [13:35:52]KKMCreateOFDPacket [13:35:52]OFDProtocolAddRootSTLVToBuf [13:35:52]FM_MakeSignedData [13:35:52]FM_MakeSignedData [13:35:52]SAM_PROTO_SignData [13:35:52]wFMCommunicate request_size=4 [13:35:52]MH_SAM_APDU [13:35:52]CAPDU: 80 0D 01 02 [13:35:52]Write to MH i2c: E2 08 00 CA 24 80 0D 01 02 00 00 00 00 67 [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:52]Read from MH i2c: E2 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 CA 24 00 90 00 62 [13:35:52]RAPDU: 90 00 [13:35:52]wFMCommunicate OK [13:35:52]wFMCommunicate request_size=255 [13:35:52]MH_SAM_APDU [13:35:52]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 3C A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 11 00 00 00 00 07 04 06 00 3C A5 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 BB 69 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [13:35:52]Write to MH i2c: E2 02 01 CB 24 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 3C A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 11 00 00 00 00 07 04 06 00 3C A5 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 BB 69 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 60 [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:52]Read from MH i2c: E2 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 CB 24 00 90 00 63 [13:35:52]RAPDU: 90 00 [13:35:52]wFMCommunicate OK [13:35:52]wFMCommunicate request_size=46 [13:35:52]MH_SAM_APDU [13:35:52]CAPDU: 80 0D 02 02 29 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A3 FA 00 00 35 04 06 00 EB CA 05 BD 96 D8 [13:35:52]Write to MH i2c: E2 31 00 CC 24 80 0D 02 02 29 00 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A3 FA 00 00 35 04 06 00 EB CA 05 BD 96 D8 00 00 7A [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:52]Read from MH i2c: E2 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 CC 24 00 90 00 64 [13:35:52]RAPDU: 90 00 [13:35:52]wFMCommunicate OK [13:35:52]wFMCommunicate request_size=4 [13:35:52]MH_SAM_APDU [13:35:52]CAPDU: 80 0D 03 02 [13:35:52]Write to MH i2c: E2 08 00 CD 24 80 0D 03 02 00 00 00 00 6C [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]OFD Sender: No OFD packet to send [13:35:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:52]Read from MH i2c: E2 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 0B 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 0B 00 CD 24 00 E0 5C 63 FC 41 91 5F B3 90 00 EC [13:35:52]RAPDU: E0 5C 63 FC 41 91 5F B3 90 00 [13:35:52]wFMCommunicate OK [13:35:52]SAM_PROTO_SignData done [13:35:52]FM_MakeSignedData done [13:35:52]CreateOFDProtocolMessage [13:35:52]wFMCommunicate request_size=4 [13:35:52]MH_SAM_APDU [13:35:52]CAPDU: 80 11 00 00 [13:35:52]Write to MH i2c: E2 08 00 CE 24 80 11 00 00 00 00 00 00 6C [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:52]Read from MH i2c: E2 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 17 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 17 00 CE 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 BE [13:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:35:52]wFMCommunicate OK [13:35:52]CreateOFDProtocolMessage done [13:35:52]OFDSenderStorePacket 64163 [13:35:52]StoreOFDPacket docnum=64163 [13:35:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 33 01 00 00 A6 D2 2B 01 29 A8 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 3C A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 11 00 00 00 00 07 04 06 00 3C A5 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 BB 69 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A3 FA 00 00 35 04 06 00 EB CA 05 BD 96 D8 E0 5C 63 FC 41 91 5F B3 [13:35:52]CheckFolder [13:35:52]dirname=/storage/ofd_packets [13:35:52]CheckFolder done [13:35:52]ProducePacketName [13:35:52]name=ofd_packets/00064163 [13:35:52]NVStorageSaveData ofd_packets/00064163 [13:35:52]File name is /storage/ofd_packets/00064163 [13:35:52]Write 337 bytes [13:35:52]NVStorageSaveData done [13:35:52]OFDSenderStorePacket done [13:35:52]KKMCreateOFDPacket done [13:35:52]NVStorageSaveData kkm_last_timestamp [13:35:52]File name is /storage/kkm_last_timestamp [13:35:52]Write 4 bytes [13:35:52]NVStorageSaveData done [13:35:52]ExternCall_PrintAddStr [13:35:52]wPrintStart [13:35:52]Write to MH i2c: 01 00 00 CF 24 F3 [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: 01 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: 01 07 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: 01 07 00 CF 24 00 00 00 00 00 FF 0F 08 [13:35:52]RasterBufferAndPrint [13:35:52]line Счет N : (3)73693 [13:35:52]line ИНН: 02508201610067 [13:35:52]line Контрольно-Кассовый Чек [13:35:52]line ПРОДАЖА [13:35:52]line Товар: 4870216765088 [13:35:52]line Нагр.Таб.Палоч. HEETS Purple Wave [13:35:52]line 3.000 * 141.00 [13:35:52]line = 423.00 [13:35:52]line НДС 12% НСП 1% [13:35:52]line > о реализуемом товаре [13:35:52]line ИТОГО: 423.00 [13:35:52]line НСП 1% : 3.74 [13:35:52]line НДС 12% : 44.92 [13:35:52]line Наличными: 423.00 [13:35:52]line Безнал.: 0.00 [13:35:52]line Место: АЗС № 117 "Партнер Нефть" [13:35:52]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:35:52]line СНО: Общий режим [13:35:52]line Чек 83 05.06.2024 13:35 [13:35:52]line Смена: 375 ФФД: 1.0 [13:35:53]line ЗНМ: 0300000031 [13:35:53]line РНМ: 0000000000092737 [13:35:53]line Версия ККМ: 001 [13:35:53]line ФМ: 0000000000875074 [13:35:53]line ФД: 64163 [13:35:53]line ФПД: 259252912232152 [13:35:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T133555&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64163&fm=259252912232152&tin=02508201610067®Number=0000000000092737&sum=42300 [13:35:53]line 0 [13:35:53]OFD Sender: Processing packet 64163 [packets to send 14, broken 13] [13:35:53]ProducePacketName [13:35:53]name=ofd_packets/00064163 [13:35:53]OFD Sender: To server: pG, [13:35:53]CommunicateWithHost lk.salyk.kg:30040 [13:35:53]ConnectInit lk.salyk.kg [13:35:53]written 0, free lines is 4095 [13:35:53]Write to MH i2c: 01 00 00 F8 24 1C [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: 01 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: 01 07 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: 01 07 00 F8 24 00 00 00 00 00 E1 0C 10 [13:35:53]RasterBufferAndPrint [13:35:53]line [13:35:53]line [13:35:53]line [13:35:53]line [13:35:53]line [13:35:53]written 0, free lines is 3302 [13:35:53]MH_Cut [13:35:53]Write to MH i2c: D1 01 00 FF 24 01 F5 [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: D1 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: D1 01 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: D1 01 00 FF 24 00 F4 [13:35:53]Write to MH i2c: 01 00 00 00 25 25 [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:54]Connected sock=9 [13:35:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 33 01 00 00 A6 D2 2B 01 29 A8 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 3C A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 11 00 00 00 00 07 04 06 00 3C A5 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 BB 69 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A3 FA 00 00 35 04 06 00 EB CA 05 BD 96 D8 E0 5C 63 FC 41 91 5F B3 [13:35:54]*** Cut start [13:35:54]*** Partial cut [13:35:54]*** CUTSNS_PIN = 1 [13:35:54]*** CUTSNS_PIN = 0 [13:35:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 B2 4E 47 00 4E BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A3 FA 00 00 F4 03 04 00 C7 15 60 66 B6 04 01 00 00 45 75 DE 3B 0B F7 07 91 [13:35:54]CommunicateWithHost err = 0 [13:35:54]CheckOFDResponse [13:35:54]1017 (14) - 77093643461234 [13:35:54]1041 (16) - 0000000000875074 [13:35:54]1040 (4) - 64163 [13:35:54]1012 (4) - 05.06.2024 07:37 [13:35:54]1206 (1) - 0 [13:35:54]OFD Sender: Remove packet 64163 [13:35:54]ProducePacketName [13:35:54]name=ofd_packets/00064163 [13:35:54]NVStorageDeleteData [13:35:54]*** Brake cut motor [13:35:55]OFD Sender: No OFD packet to send [13:35:55]Read from MH i2c: 01 [13:35:55]MH_I2C_Read... [13:35:55]*** Stop cut motor [13:35:55]*** Cut end [13:35:55]Read from MH i2c: 01 07 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: 01 07 00 00 25 00 00 00 00 00 FF 0F 3A [13:35:55]process_action close_receipt done [13:35:55]requested_data is exist [13:35:55]produce_requested_data [13:35:55]requested_item fm.sn is exist - process it [13:35:55]wFMCommunicate request_size=4 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 11 00 00 [13:35:55]Write to MH i2c: E2 08 00 01 25 80 11 00 00 00 00 00 00 A0 [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 17 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 17 00 01 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F2 [13:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:35:55]wFMCommunicate OK [13:35:55]requested_item fd.num is exist - process it [13:35:55]SAM_PROTO_GetFieldsCounters [13:35:55]wFMCommunicate request_size=4 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 13 00 00 [13:35:55]Write to MH i2c: E2 08 00 02 25 80 13 00 00 00 00 00 00 A3 [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 62 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 62 00 02 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A3 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [13:35:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A3 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:55]wFMCommunicate OK [13:35:55]SAM_PROTO_GetFieldsCounters done [13:35:55]requested_item shift.num is exist - process it [13:35:55]requested_item shift.opened is exist - process it [13:35:55]req_shift_opened [13:35:55]FM_GetShiftState [13:35:55]SAM_PROTO_GetShiftState [13:35:55]wFMCommunicate request_size=4 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 13 01 00 [13:35:55]Write to MH i2c: E2 08 00 03 25 80 13 01 00 00 00 00 00 A5 [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 0E 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 0E 00 03 25 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 E6 [13:35:55]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [13:35:55]wFMCommunicate OK [13:35:55]SAM_PROTO_GetShiftState done [13:35:55]FM_GetShiftState done [13:35:55]req_shift_opened done [13:35:55]requested_item shift.open_date is exist - process it [13:35:55]req_shift_open_date [13:35:55]req_shift_open_date done [13:35:55]produce_requested_data done [13:35:55]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64163,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [13:35:55]process_action_free close_receipt [13:35:55]json_value_free [13:35:55]json_value_free done [13:35:55]process_json_proto returns [13:35:55]Send response to host [13:35:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64163,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [13:35:55]free response buf [13:35:55]execute_script done [13:35:55]execute_script returns [13:35:55]free content buf [13:35:55]Sock 10.Close socket [13:35:55]Sock 10.Thread stoped [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:54]accept exits with 8 [13:42:54]New connection [13:42:54]New thread 3067133284 created [13:42:54]Thread 3067276644 joined [13:42:54]Waiting for new connection... [13:42:54] Sock 8.Parse request [13:42:54]Sock 8.Check first char [13:42:54]Sock 8.First char is OK [13:42:54]request: POST /json_proto HTTP/1.0 [13:42:54]Method: POST [13:42:54]URL: /json_proto [13:42:54]Method is POST - this is cgi request [13:42:54]url: /json_proto [13:42:54]query_string will be loaded in cgi processing [13:42:54]execute_cgi json_proto POST (null) [13:42:54]execute_cgi path=json_proto method=POST [13:42:54]POST find Content-Length [13:42:54]Host: 172.17.60.69:8080 [13:42:54]Content-Length: 1149 [13:42:54]Content-Type: application/json [13:42:54] [13:42:54]POST finish read [13:42:54]Found Content-Length = 1149 [13:42:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73694", "tax_sys" : 0, "items" : [ { "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \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 }]} ,{ "code": "745240075936", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 4 SAUVAGE", "price" : 300.00, "quantity" : 1.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 480.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:54]execute_script... [13:42:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73694", "tax_sys" : 0, "items" : [ { "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \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 }]} ,{ "code": "745240075936", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 4 SAUVAGE", "price" : 300.00, "quantity" : 1.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 480.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:54]POST & json_proto [13:42:54]process_json_proto [13:42:54]json parsed OK: [13:42:54]protocol is kg_v1.0 [13:42:54]action value=close_receipt [13:42:54]process_action close_receipt [13:42:54]cmd_close_receipt [13:42:54]MH_GetDate [13:42:54]Write to MH i2c: F0 00 00 04 25 18 [13:42:54]Write i2c OK [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: F0 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: F0 09 00 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: F0 09 00 04 25 00 62 6B 60 66 D2 83 5F 66 CE [13:42:54]GetLastDocTimeStamp 1717594555 [13:42:54]current date 1717594978 [13:42:54]FM_GetShiftState [13:42:54]SAM_PROTO_GetShiftState [13:42:54]wFMCommunicate request_size=4 [13:42:54]MH_SAM_APDU [13:42:54]CAPDU: 80 13 01 00 [13:42:54]Write to MH i2c: E2 08 00 05 25 80 13 01 00 00 00 00 00 A7 [13:42:54]Write i2c OK [13:42:54]MH_I2C_Read... [13:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:54]Read from MH i2c: E2 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: E2 0E 00 [13:42:54]MH_I2C_Read... [13:42:54]Read from MH i2c: E2 0E 00 05 25 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 E8 [13:42:54]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [13:42:54]wFMCommunicate OK [13:42:54]SAM_PROTO_GetShiftState done [13:42:54]FM_GetShiftState done [13:42:54]opened in 1717545925 [13:42:54]opened+sec_in_day 1717632325 [13:42:54]quantity*price = 18000 [13:42:54]sum+1 = 18001 [13:42:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 745240075936 Автопарфюм 4 SAUVAGE 1.000 * 300.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 480.00 НСП 1% : 4.24 НДС 12% : 50.97 Наличными: 0.00 Безнал.: 480.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 84 05.06.2024 13:42 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64164 ФПД: 70045867022783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T134258&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64164&fm=70045867022783&tin=02508201610067®Number=0000000000092737&sum=48000 0 [13:42:55]StoreToDocumentArchive [13:42:55]shift 375 fd 64164 [13:42:55]save to /storage/0375/doc_00064164 [13:42:55]save last doc name /storage/0375/doc_00064164 to /storage/kkm_last_doc_name [13:42:55]save OK [13:42:55]Clear old archive folders... [13:42:55]ProcessDocumentItem done err = 0, tmpTLVsize=403 [13:42:55]tlvbuf is 00FB09A0 [13:42:55]SAM_PROTO_ClearQueue [13:42:55]wFMCommunicate request_size=4 [13:42:55]MH_SAM_APDU [13:42:55]CAPDU: 80 09 00 00 [13:42:55]Write to MH i2c: E2 08 00 12 25 80 09 00 00 00 00 00 00 A9 [13:42:55]Write i2c OK [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: E2 [13:42:55]MH_I2C_Read... [13:42:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:55]Read from MH i2c: E2 03 00 [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: E2 03 00 12 25 00 90 00 AB [13:42:55]RAPDU: 90 00 [13:42:55]wFMCommunicate OK [13:42:55]SAM_PROTO_ClearQueue done [13:42:55]KKMCreateOFDPacket [13:42:55]OFDProtocolAddRootSTLVToBuf [13:42:55]FM_MakeSignedData [13:42:55]FM_MakeSignedData [13:42:55]SAM_PROTO_SignData [13:42:55]wFMCommunicate request_size=4 [13:42:55]MH_SAM_APDU [13:42:55]CAPDU: 80 0D 01 02 [13:42:55]Write to MH i2c: E2 08 00 13 25 80 0D 01 02 00 00 00 00 B1 [13:42:55]Write i2c OK [13:42:55]MH_I2C_Read... [13:42:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:55]Read from MH i2c: E2 [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: E2 03 00 [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: E2 03 00 13 25 00 90 00 AC [13:42:55]RAPDU: 90 00 [13:42:55]wFMCommunicate OK [13:42:55]wFMCommunicate request_size=255 [13:42:55]MH_SAM_APDU [13:42:55]CAPDU: 80 0D 02 02 FA 03 00 93 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 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 23 04 61 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 33 36 06 04 1E 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 34 20 53 41 55 56 41 47 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 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 80 BB 00 00 [13:42:55]Write to MH i2c: E2 02 01 14 25 80 0D 02 02 FA 00 03 00 93 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 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 23 04 61 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 33 36 06 04 1E 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 34 20 53 41 55 56 41 47 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 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 80 BB 00 00 00 00 24 [13:42:55]Write i2c OK [13:42:55]MH_I2C_Read... [13:42:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:55]Read from MH i2c: E2 [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: E2 03 00 [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: E2 03 00 14 25 00 90 00 AD [13:42:55]RAPDU: 90 00 [13:42:55]wFMCommunicate OK [13:42:55]wFMCommunicate request_size=162 [13:42:55]MH_SAM_APDU [13:42:55]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 62 6B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A4 FA 00 00 35 04 06 00 3F B4 D3 05 99 BF [13:42:55]Write to MH i2c: E2 A5 00 15 25 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 62 6B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A4 FA 00 00 35 04 06 00 3F B4 D3 05 99 BF 00 00 2D [13:42:55]Write i2c OK [13:42:55]MH_I2C_Read... [13:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:56]Read from MH i2c: E2 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 03 00 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 03 00 15 25 00 90 00 AE [13:42:56]RAPDU: 90 00 [13:42:56]wFMCommunicate OK [13:42:56]wFMCommunicate request_size=4 [13:42:56]MH_SAM_APDU [13:42:56]CAPDU: 80 0D 03 02 [13:42:56]Write to MH i2c: E2 08 00 16 25 80 0D 03 02 00 00 00 00 B6 [13:42:56]Write i2c OK [13:42:56]MH_I2C_Read... [13:42:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:56]Read from MH i2c: E2 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 0B 00 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 0B 00 16 25 00 B6 2B 6F DE DC F6 79 34 90 00 64 [13:42:56]RAPDU: B6 2B 6F DE DC F6 79 34 90 00 [13:42:56]wFMCommunicate OK [13:42:56]SAM_PROTO_SignData done [13:42:56]FM_MakeSignedData done [13:42:56]CreateOFDProtocolMessage [13:42:56]wFMCommunicate request_size=4 [13:42:56]MH_SAM_APDU [13:42:56]CAPDU: 80 11 00 00 [13:42:56]Write to MH i2c: E2 08 00 17 25 80 11 00 00 00 00 00 00 B6 [13:42:56]Write i2c OK [13:42:56]MH_I2C_Read... [13:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:56]Read from MH i2c: E2 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 17 00 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 17 00 17 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 08 [13:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:42:56]wFMCommunicate OK [13:42:56]CreateOFDProtocolMessage done [13:42:56]OFDSenderStorePacket 64164 [13:42:56]StoreOFDPacket docnum=64164 [13:42:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A7 01 00 00 53 62 9F 01 9B 46 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 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 23 04 61 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 33 36 06 04 1E 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 34 20 53 41 55 56 41 47 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 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 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 62 6B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A4 FA 00 00 35 04 06 00 3F B4 D3 05 99 BF B6 2B 6F DE DC F6 79 34 [13:42:56]CheckFolder [13:42:56]dirname=/storage/ofd_packets [13:42:56]CheckFolder done [13:42:56]ProducePacketName [13:42:56]name=ofd_packets/00064164 [13:42:56]NVStorageSaveData ofd_packets/00064164 [13:42:56]File name is /storage/ofd_packets/00064164 [13:42:56]Write 453 bytes [13:42:56]NVStorageSaveData done [13:42:56]OFDSenderStorePacket done [13:42:56]KKMCreateOFDPacket done [13:42:56]NVStorageSaveData kkm_last_timestamp [13:42:56]File name is /storage/kkm_last_timestamp [13:42:56]Write 4 bytes [13:42:56]NVStorageSaveData done [13:42:56]ExternCall_PrintAddStr [13:42:56]wPrintStart [13:42:56]Write to MH i2c: 01 00 00 18 25 3D [13:42:56]Write i2c OK [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: 01 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: 01 07 00 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: 01 07 00 18 25 00 00 00 00 00 FF 0F 52 [13:42:56]RasterBufferAndPrint [13:42:56]line Счет N : (3)73694 [13:42:56]line ИНН: 02508201610067 [13:42:56]line Контрольно-Кассовый Чек [13:42:56]line ПРОДАЖА [13:42:56]line Товар: 5449000273673 [13:42:56]line Сок Piko Pulpy красный виноград ПЭТ 1л [13:42:56]line 1.000 * 180.00 [13:42:56]line = 180.00 [13:42:56]line НДС 12% НСП 1% [13:42:56]line > о реализуемом товаре [13:42:56]line Товар: 745240075936 [13:42:56]line Автопарфюм 4 SAUVAGE [13:42:56]line 1.000 * 300.00 [13:42:56]line = 300.00 [13:42:56]line НДС 12% НСП 1% [13:42:56]line > о реализуемом товаре [13:42:56]line ИТОГО: 480.00 [13:42:56]line НСП 1% : 4.24 [13:42:56]line НДС 12% : 50.97 [13:42:56]line Наличными: 0.00 [13:42:56]line Безнал.: 480.00 [13:42:56]line Место: АЗС № 117 "Партнер Нефть" [13:42:56]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:42:56]line СНО: Общий режим [13:42:56]line Чек 84 05.06.2024 13:42 [13:42:56]line Смена: 375 ФФД: 1.0 [13:42:56]line ЗНМ: 0300000031 [13:42:56]line РНМ: 0000000000092737 [13:42:56]line Версия ККМ: 001 [13:42:56]line Платежная система: АКБ Кыргызстан [13:42:56]line ФМ: 0000000000875074 [13:42:56]line ФД: 64164 [13:42:56]line ФПД: 70045867022783 [13:42:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T134258&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64164&fm=70045867022783&tin=02508201610067®Number=0000000000092737&sum=48000 [13:42:56]line 0 [13:42:56]OFD Sender: Processing packet 64164 [packets to send 14, broken 13] [13:42:56]ProducePacketName [13:42:56]name=ofd_packets/00064164 [13:42:56]OFD Sender: To server: pG, [13:42:56]CommunicateWithHost lk.salyk.kg:30040 [13:42:56]ConnectInit lk.salyk.kg [13:42:56]written 0, free lines is 4095 [13:42:56]Connected sock=10 [13:42:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A7 01 00 00 53 62 9F 01 9B 46 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 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 23 04 61 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 33 36 06 04 1E 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 34 20 53 41 55 56 41 47 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 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 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 62 6B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A4 FA 00 00 35 04 06 00 3F B4 D3 05 99 BF B6 2B 6F DE DC F6 79 34 [13:42:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 91 97 47 00 B5 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A4 FA 00 00 F4 03 04 00 6D 17 60 66 B6 04 01 00 00 10 0F D2 2E AC 7D B6 D3 [13:42:56]CommunicateWithHost err = 0 [13:42:56]CheckOFDResponse [13:42:56]1017 (14) - 77093643461234 [13:42:56]1041 (16) - 0000000000875074 [13:42:56]1040 (4) - 64164 [13:42:56]1012 (4) - 05.06.2024 07:44 [13:42:56]1206 (1) - 0 [13:42:56]OFD Sender: Remove packet 64164 [13:42:56]ProducePacketName [13:42:56]name=ofd_packets/00064164 [13:42:56]NVStorageDeleteData [13:42:57]Write to MH i2c: 01 00 00 49 25 6E [13:42:57]Write i2c OK [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: 01 [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: 01 07 00 [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: 01 07 00 49 25 00 00 00 00 00 69 0C EA [13:42:57]RasterBufferAndPrint [13:42:57]line [13:42:57]line [13:42:57]line [13:42:57]line [13:42:57]line [13:42:57]written 0, free lines is 3183 [13:42:57]MH_Cut [13:42:57]Write to MH i2c: D1 01 00 50 25 01 47 [13:42:57]Write i2c OK [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: D1 [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: D1 01 00 [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: D1 01 00 50 25 00 46 [13:42:57]Write to MH i2c: 01 00 00 51 25 76 [13:42:57]Write i2c OK [13:42:57]MH_I2C_Read... [13:42:57]OFD Sender: No OFD packet to send [13:42:57]*** Cut start [13:42:57]*** Partial cut [13:42:57]*** CUTSNS_PIN = 1 [13:42:57]*** CUTSNS_PIN = 0 [13:42:58]*** Brake cut motor [13:42:58]Read from MH i2c: 01 [13:42:58]MH_I2C_Read... [13:42:58]*** Stop cut motor [13:42:58]*** Cut end [13:42:58]Read from MH i2c: 01 07 00 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: 01 07 00 51 25 00 00 00 00 00 FF 0F 8B [13:42:58]process_action close_receipt done [13:42:58]requested_data is exist [13:42:58]produce_requested_data [13:42:58]requested_item fm.sn is exist - process it [13:42:58]wFMCommunicate request_size=4 [13:42:58]MH_SAM_APDU [13:42:58]CAPDU: 80 11 00 00 [13:42:58]Write to MH i2c: E2 08 00 52 25 80 11 00 00 00 00 00 00 F1 [13:42:58]Write i2c OK [13:42:58]MH_I2C_Read... [13:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:58]Read from MH i2c: E2 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: E2 17 00 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: E2 17 00 52 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 43 [13:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:42:58]wFMCommunicate OK [13:42:58]requested_item fd.num is exist - process it [13:42:58]SAM_PROTO_GetFieldsCounters [13:42:58]wFMCommunicate request_size=4 [13:42:58]MH_SAM_APDU [13:42:58]CAPDU: 80 13 00 00 [13:42:58]Write to MH i2c: E2 08 00 53 25 80 13 00 00 00 00 00 00 F4 [13:42:58]Write i2c OK [13:42:58]MH_I2C_Read... [13:42:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:58]Read from MH i2c: E2 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: E2 62 00 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: E2 62 00 53 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A4 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [13:42:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A4 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:58]wFMCommunicate OK [13:42:58]SAM_PROTO_GetFieldsCounters done [13:42:58]requested_item shift.num is exist - process it [13:42:58]requested_item shift.opened is exist - process it [13:42:58]req_shift_opened [13:42:58]FM_GetShiftState [13:42:58]SAM_PROTO_GetShiftState [13:42:58]wFMCommunicate request_size=4 [13:42:58]MH_SAM_APDU [13:42:58]CAPDU: 80 13 01 00 [13:42:58]Write to MH i2c: E2 08 00 54 25 80 13 01 00 00 00 00 00 F6 [13:42:58]Write i2c OK [13:42:58]MH_I2C_Read... [13:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:58]Read from MH i2c: E2 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: E2 0E 00 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: E2 0E 00 54 25 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 37 [13:42:58]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [13:42:58]wFMCommunicate OK [13:42:58]SAM_PROTO_GetShiftState done [13:42:58]FM_GetShiftState done [13:42:58]req_shift_opened done [13:42:58]requested_item shift.open_date is exist - process it [13:42:58]req_shift_open_date [13:42:58]req_shift_open_date done [13:42:58]produce_requested_data done [13:42:58]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64164,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [13:42:58]process_action_free close_receipt [13:42:58]json_value_free [13:42:58]json_value_free done [13:42:58]process_json_proto returns [13:42:58]Send response to host [13:42:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64164,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [13:42:58]free response buf [13:42:58]execute_script done [13:42:58]execute_script returns [13:42:58]free content buf [13:42:58]Sock 8.Close socket [13:42:58]Sock 8.Thread stoped [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:24]accept exits with 9 [14:15:24]New connection [14:15:24]New thread 3067276644 created [14:15:24]Thread 3067133284 joined [14:15:24]Waiting for new connection... [14:15:24] Sock 9.Parse request [14:15:24]Sock 9.Check first char [14:15:24]Sock 9.First char is OK [14:15:24]request: POST /json_proto HTTP/1.0 [14:15:24]Method: POST [14:15:24]URL: /json_proto [14:15:24]Method is POST - this is cgi request [14:15:24]url: /json_proto [14:15:24]query_string will be loaded in cgi processing [14:15:24]execute_cgi json_proto POST (null) [14:15:24]execute_cgi path=json_proto method=POST [14:15:24]POST find Content-Length [14:15:24]Host: 172.17.60.69:8080 [14:15:24]Content-Length: 820 [14:15:24]Content-Type: application/json [14:15:24] [14:15:24]POST finish read [14:15:24]Found Content-Length = 820 [14:15:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73695", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:24]execute_script... [14:15:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73695", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:24]POST & json_proto [14:15:24]process_json_proto [14:15:24]json parsed OK: [14:15:24]protocol is kg_v1.0 [14:15:24]action value=close_receipt [14:15:24]process_action close_receipt [14:15:24]cmd_close_receipt [14:15:24]MH_GetDate [14:15:24]Write to MH i2c: F0 00 00 55 25 69 [14:15:24]Write i2c OK [14:15:24]MH_I2C_Read... [14:15:24]Read from MH i2c: F0 [14:15:24]MH_I2C_Read... [14:15:24]Read from MH i2c: F0 09 00 [14:15:24]MH_I2C_Read... [14:15:24]Read from MH i2c: F0 09 00 55 25 00 00 73 60 66 D2 83 5F 66 C5 [14:15:24]GetLastDocTimeStamp 1717594978 [14:15:24]current date 1717596928 [14:15:24]FM_GetShiftState [14:15:24]SAM_PROTO_GetShiftState [14:15:24]wFMCommunicate request_size=4 [14:15:24]MH_SAM_APDU [14:15:24]CAPDU: 80 13 01 00 [14:15:24]Write to MH i2c: E2 08 00 56 25 80 13 01 00 00 00 00 00 F8 [14:15:24]Write i2c OK [14:15:24]MH_I2C_Read... [14:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:24]Read from MH i2c: E2 [14:15:24]MH_I2C_Read... [14:15:24]Read from MH i2c: E2 0E 00 [14:15:24]MH_I2C_Read... [14:15:24]Read from MH i2c: E2 0E 00 56 25 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 39 [14:15:24]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:15:24]wFMCommunicate OK [14:15:24]SAM_PROTO_GetShiftState done [14:15:24]FM_GetShiftState done [14:15:24]opened in 1717545925 [14:15:24]opened+sec_in_day 1717632325 [14:15:24]quantity*price = 13500 [14:15:24]sum+1 = 13501 [14:15:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 0.00 Безнал.: 135.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 85 05.06.2024 14:15 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64165 ФПД: 163743565587141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T141528&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64165&fm=163743565587141&tin=02508201610067®Number=0000000000092737&sum=13500 0 [14:15:25]StoreToDocumentArchive [14:15:25]shift 375 fd 64165 [14:15:25]save to /storage/0375/doc_00064165 [14:15:25]save last doc name /storage/0375/doc_00064165 to /storage/kkm_last_doc_name [14:15:25]save OK [14:15:25]Clear old archive folders... [14:15:25]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:15:25]tlvbuf is B6FA4160 [14:15:25]SAM_PROTO_ClearQueue [14:15:25]wFMCommunicate request_size=4 [14:15:25]MH_SAM_APDU [14:15:25]CAPDU: 80 09 00 00 [14:15:25]Write to MH i2c: E2 08 00 63 25 80 09 00 00 00 00 00 00 FA [14:15:25]Write i2c OK [14:15:25]MH_I2C_Read... [14:15:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:25]Read from MH i2c: E2 [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: E2 03 00 [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: E2 03 00 63 25 00 90 00 FC [14:15:25]RAPDU: 90 00 [14:15:25]wFMCommunicate OK [14:15:25]SAM_PROTO_ClearQueue done [14:15:25]KKMCreateOFDPacket [14:15:25]OFDProtocolAddRootSTLVToBuf [14:15:25]FM_MakeSignedData [14:15:25]FM_MakeSignedData [14:15:25]SAM_PROTO_SignData [14:15:25]wFMCommunicate request_size=4 [14:15:25]MH_SAM_APDU [14:15:25]CAPDU: 80 0D 01 02 [14:15:25]Write to MH i2c: E2 08 00 64 25 80 0D 01 02 00 00 00 00 02 [14:15:25]Write i2c OK [14:15:25]MH_I2C_Read... [14:15:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:25]Read from MH i2c: E2 [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: E2 03 00 [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: E2 03 00 64 25 00 90 00 FD [14:15:25]RAPDU: 90 00 [14:15:25]wFMCommunicate OK [14:15:25]wFMCommunicate request_size=255 [14:15:25]MH_SAM_APDU [14:15:25]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 00 73 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [14:15:25]Write to MH i2c: E2 02 01 65 25 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 00 73 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 C6 [14:15:25]Write i2c OK [14:15:25]MH_I2C_Read... [14:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:25]Read from MH i2c: E2 [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: E2 03 00 [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: E2 03 00 65 25 00 90 00 FE [14:15:25]RAPDU: 90 00 [14:15:25]wFMCommunicate OK [14:15:25]wFMCommunicate request_size=31 [14:15:25]MH_SAM_APDU [14:15:25]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 37 34 10 04 04 00 A5 FA 00 00 35 04 06 00 94 EC 85 0F A2 C5 [14:15:25]Write to MH i2c: E2 22 00 66 25 80 0D 02 02 1A 00 30 30 38 37 35 30 37 34 10 04 04 00 A5 FA 00 00 35 04 06 00 94 EC 85 0F A2 C5 00 00 49 [14:15:25]Write i2c OK [14:15:25]MH_I2C_Read... [14:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:25]Read from MH i2c: E2 [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: E2 03 00 [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: E2 03 00 66 25 00 90 00 FF [14:15:25]RAPDU: 90 00 [14:15:25]wFMCommunicate OK [14:15:25]wFMCommunicate request_size=4 [14:15:25]MH_SAM_APDU [14:15:25]CAPDU: 80 0D 03 02 [14:15:25]Write to MH i2c: E2 08 00 67 25 80 0D 03 02 00 00 00 00 07 [14:15:25]Write i2c OK [14:15:25]MH_I2C_Read... [14:15:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:25]Read from MH i2c: E2 [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: E2 0B 00 [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: E2 0B 00 67 25 00 60 B3 B8 9C 21 2B E0 44 90 00 DF [14:15:25]RAPDU: 60 B3 B8 9C 21 2B E0 44 90 00 [14:15:25]wFMCommunicate OK [14:15:25]SAM_PROTO_SignData done [14:15:25]FM_MakeSignedData done [14:15:25]CreateOFDProtocolMessage [14:15:25]wFMCommunicate request_size=4 [14:15:25]MH_SAM_APDU [14:15:25]CAPDU: 80 11 00 00 [14:15:25]Write to MH i2c: E2 08 00 68 25 80 11 00 00 00 00 00 00 07 [14:15:25]Write i2c OK [14:15:25]MH_I2C_Read... [14:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:25]Read from MH i2c: E2 [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: E2 17 00 [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: E2 17 00 68 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 59 [14:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:15:25]wFMCommunicate OK [14:15:25]CreateOFDProtocolMessage done [14:15:25]OFDSenderStorePacket 64165 [14:15:25]StoreOFDPacket docnum=64165 [14:15:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 24 01 00 00 0D 23 1C 01 63 AE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 00 73 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A5 FA 00 00 35 04 06 00 94 EC 85 0F A2 C5 60 B3 B8 9C 21 2B E0 44 [14:15:25]CheckFolder [14:15:25]dirname=/storage/ofd_packets [14:15:25]CheckFolder done [14:15:25]ProducePacketName [14:15:25]name=ofd_packets/00064165 [14:15:25]NVStorageSaveData ofd_packets/00064165 [14:15:25]File name is /storage/ofd_packets/00064165 [14:15:25]Write 322 bytes [14:15:25]NVStorageSaveData done [14:15:25]OFDSenderStorePacket done [14:15:25]KKMCreateOFDPacket done [14:15:25]NVStorageSaveData kkm_last_timestamp [14:15:25]File name is /storage/kkm_last_timestamp [14:15:25]Write 4 bytes [14:15:25]NVStorageSaveData done [14:15:25]ExternCall_PrintAddStr [14:15:25]wPrintStart [14:15:25]Write to MH i2c: 01 00 00 69 25 8E [14:15:25]OFD Sender: Processing packet 64165 [packets to send 14, broken 13] [14:15:25]ProducePacketName [14:15:25]name=ofd_packets/00064165 [14:15:25]OFD Sender: To server: pG, [14:15:25]CommunicateWithHost lk.salyk.kg:30040 [14:15:25]ConnectInit lk.salyk.kg [14:15:25]Write i2c OK [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: 01 [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: 01 07 00 [14:15:25]MH_I2C_Read... [14:15:25]Read from MH i2c: 01 07 00 69 25 00 00 00 00 00 FF 0F A3 [14:15:25]RasterBufferAndPrint [14:15:25]line Счет N : (3)73695 [14:15:25]line ИНН: 02508201610067 [14:15:25]line Контрольно-Кассовый Чек [14:15:25]line ПРОДАЖА [14:15:25]line Товар: 48745000 [14:15:25]line Сигареты Winston Purple Mix [14:15:25]line 1.000 * 135.00 [14:15:25]line = 135.00 [14:15:25]line НДС 12% НСП 1% [14:15:25]line > о реализуемом товаре [14:15:25]line ИТОГО: 135.00 [14:15:25]line НСП 1% : 1.19 [14:15:25]line НДС 12% : 14.34 [14:15:25]line Наличными: 0.00 [14:15:25]line Безнал.: 135.00 [14:15:25]line Место: АЗС № 117 "Партнер Нефть" [14:15:25]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:15:25]line СНО: Общий режим [14:15:25]line Чек 85 05.06.2024 14:15 [14:15:25]line Смена: 375 ФФД: 1.0 [14:15:25]line ЗНМ: 0300000031 [14:15:25]line РНМ: 0000000000092737 [14:15:25]line Версия ККМ: 001 [14:15:25]line Платежная система: АКБ Кыргызстан [14:15:25]line ФМ: 0000000000875074 [14:15:25]line ФД: 64165 [14:15:25]line ФПД: 163743565587141 [14:15:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T141528&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64165&fm=163743565587141&tin=02508201610067®Number=0000000000092737&sum=13500 [14:15:26]line 0 [14:15:26]written 0, free lines is 4095 [14:15:26]Write to MH i2c: 01 00 00 93 25 B8 [14:15:26]Write i2c OK [14:15:26]MH_I2C_Read... [14:15:26]Read from MH i2c: 01 [14:15:26]MH_I2C_Read... [14:15:26]Read from MH i2c: 01 07 00 [14:15:26]MH_I2C_Read... [14:15:26]Read from MH i2c: 01 07 00 93 25 00 00 00 00 00 C9 0C 94 [14:15:26]RasterBufferAndPrint [14:15:26]line [14:15:26]line [14:15:26]line [14:15:26]line [14:15:26]line [14:15:26]written 0, free lines is 3280 [14:15:26]MH_Cut [14:15:26]Write to MH i2c: D1 01 00 9A 25 01 91 [14:15:26]Write i2c OK [14:15:26]MH_I2C_Read... [14:15:26]Read from MH i2c: D1 [14:15:26]MH_I2C_Read... [14:15:26]Read from MH i2c: D1 01 00 [14:15:26]MH_I2C_Read... [14:15:26]Read from MH i2c: D1 01 00 9A 25 00 90 [14:15:26]Write to MH i2c: 01 00 00 9B 25 C0 [14:15:26]Write i2c OK [14:15:26]MH_I2C_Read... [14:15:27]*** Cut start [14:15:27]*** Partial cut [14:15:27]*** CUTSNS_PIN = 1 [14:15:27]*** CUTSNS_PIN = 0 [14:15:27]*** Brake cut motor [14:15:28]Read from MH i2c: 01 [14:15:28]MH_I2C_Read... [14:15:28]*** Stop cut motor [14:15:28]*** Cut end [14:15:28]Read from MH i2c: 01 07 00 [14:15:28]MH_I2C_Read... [14:15:28]Read from MH i2c: 01 07 00 9B 25 00 00 00 00 00 FF 0F D5 [14:15:28]process_action close_receipt done [14:15:28]requested_data is exist [14:15:28]produce_requested_data [14:15:28]requested_item fm.sn is exist - process it [14:15:28]wFMCommunicate request_size=4 [14:15:28]MH_SAM_APDU [14:15:28]CAPDU: 80 11 00 00 [14:15:28]Write to MH i2c: E2 08 00 9C 25 80 11 00 00 00 00 00 00 3B [14:15:28]Write i2c OK [14:15:28]MH_I2C_Read... [14:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:28]Read from MH i2c: E2 [14:15:28]MH_I2C_Read... [14:15:28]Read from MH i2c: E2 17 00 [14:15:28]MH_I2C_Read... [14:15:28]Read from MH i2c: E2 17 00 9C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8D [14:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:15:28]wFMCommunicate OK [14:15:28]requested_item fd.num is exist - process it [14:15:28]SAM_PROTO_GetFieldsCounters [14:15:28]wFMCommunicate request_size=4 [14:15:28]MH_SAM_APDU [14:15:28]CAPDU: 80 13 00 00 [14:15:28]Write to MH i2c: E2 08 00 9D 25 80 13 00 00 00 00 00 00 3E [14:15:28]Write i2c OK [14:15:28]MH_I2C_Read... [14:15:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:28]Read from MH i2c: E2 [14:15:28]MH_I2C_Read... [14:15:28]Read from MH i2c: E2 62 00 [14:15:28]MH_I2C_Read... [14:15:28]Read from MH i2c: E2 62 00 9D 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A5 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [14:15:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A5 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:28]wFMCommunicate OK [14:15:28]SAM_PROTO_GetFieldsCounters done [14:15:28]requested_item shift.num is exist - process it [14:15:28]requested_item shift.opened is exist - process it [14:15:28]req_shift_opened [14:15:28]FM_GetShiftState [14:15:28]SAM_PROTO_GetShiftState [14:15:28]wFMCommunicate request_size=4 [14:15:28]MH_SAM_APDU [14:15:28]CAPDU: 80 13 01 00 [14:15:28]Write to MH i2c: E2 08 00 9E 25 80 13 01 00 00 00 00 00 40 [14:15:28]Write i2c OK [14:15:28]MH_I2C_Read... [14:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:28]Read from MH i2c: E2 [14:15:28]MH_I2C_Read... [14:15:28]Read from MH i2c: E2 0E 00 [14:15:28]MH_I2C_Read... [14:15:28]Read from MH i2c: E2 0E 00 9E 25 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 81 [14:15:28]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:15:28]wFMCommunicate OK [14:15:28]SAM_PROTO_GetShiftState done [14:15:28]FM_GetShiftState done [14:15:28]req_shift_opened done [14:15:28]requested_item shift.open_date is exist - process it [14:15:28]req_shift_open_date [14:15:28]req_shift_open_date done [14:15:28]produce_requested_data done [14:15:28]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64165,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [14:15:28]process_action_free close_receipt [14:15:28]json_value_free [14:15:28]json_value_free done [14:15:28]process_json_proto returns [14:15:28]Send response to host [14:15:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64165,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [14:15:28]free response buf [14:15:28]execute_script done [14:15:28]execute_script returns [14:15:28]free content buf [14:15:28]Sock 9.Close socket [14:15:28]Sock 9.Thread stoped [14:17:37]ConnectInit Can't connect to host [14:17:37]CommunicateWithHost connect error [14:17:37]CommunicateWithHost err = -1 [14:17:37]OFD Sender: Server communicate error [14:17:42]OFD Sender: Processing packet 64165 [packets to send 14, broken 13] [14:17:42]ProducePacketName [14:17:42]name=ofd_packets/00064165 [14:17:42]OFD Sender: To server: pG, [14:17:42]CommunicateWithHost lk.salyk.kg:30040 [14:17:42]ConnectInit lk.salyk.kg [14:17:43]Connected sock=9 [14:17:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 24 01 00 00 0D 23 1C 01 63 AE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 00 73 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A5 FA 00 00 35 04 06 00 94 EC 85 0F A2 C5 60 B3 B8 9C 21 2B E0 44 [14:17:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 B9 E6 47 00 8E 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A5 FA 00 00 F4 03 04 00 94 1F 60 66 B6 04 01 00 00 DB 22 3A B7 6D BD DF 75 [14:17:43]CommunicateWithHost err = 0 [14:17:43]CheckOFDResponse [14:17:43]1017 (14) - 77093643461234 [14:17:43]1041 (16) - 0000000000875074 [14:17:43]1040 (4) - 64165 [14:17:43]1012 (4) - 05.06.2024 08:19 [14:17:43]1206 (1) - 0 [14:17:43]OFD Sender: Remove packet 64165 [14:17:43]ProducePacketName [14:17:43]name=ofd_packets/00064165 [14:17:43]NVStorageDeleteData [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:30]accept exits with 8 [14:18:30]New connection [14:18:30]New thread 3067133284 created [14:18:30]Thread 3067276644 joined [14:18:30]Waiting for new connection... [14:18:30] Sock 8.Parse request [14:18:30]Sock 8.Check first char [14:18:30]Sock 8.First char is OK [14:18:30]request: POST /json_proto HTTP/1.0 [14:18:30]Method: POST [14:18:30]URL: /json_proto [14:18:30]Method is POST - this is cgi request [14:18:30]url: /json_proto [14:18:30]query_string will be loaded in cgi processing [14:18:30]execute_cgi json_proto POST (null) [14:18:30]execute_cgi path=json_proto method=POST [14:18:30]POST find Content-Length [14:18:30]Host: 172.17.60.69:8080 [14:18:30]Content-Length: 834 [14:18:30]Content-Type: application/json [14:18:30] [14:18:30]POST finish read [14:18:30]Found Content-Length = 834 [14:18:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73696", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 4.000, "sum" : 160.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:30]execute_script... [14:18:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73696", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 4.000, "sum" : 160.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:30]POST & json_proto [14:18:30]process_json_proto [14:18:30]json parsed OK: [14:18:30]protocol is kg_v1.0 [14:18:30]action value=close_receipt [14:18:30]process_action close_receipt [14:18:30]cmd_close_receipt [14:18:30]MH_GetDate [14:18:30]Write to MH i2c: F0 00 00 9F 25 B3 [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: F0 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: F0 09 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: F0 09 00 9F 25 00 BA 73 60 66 D2 83 5F 66 C9 [14:18:30]GetLastDocTimeStamp 1717596928 [14:18:30]current date 1717597114 [14:18:30]FM_GetShiftState [14:18:30]SAM_PROTO_GetShiftState [14:18:30]wFMCommunicate request_size=4 [14:18:30]MH_SAM_APDU [14:18:30]CAPDU: 80 13 01 00 [14:18:30]Write to MH i2c: E2 08 00 A0 25 80 13 01 00 00 00 00 00 42 [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 0E 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 0E 00 A0 25 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 83 [14:18:30]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:18:30]wFMCommunicate OK [14:18:30]SAM_PROTO_GetShiftState done [14:18:30]FM_GetShiftState done [14:18:30]opened in 1717545925 [14:18:30]opened+sec_in_day 1717632325 [14:18:30]quantity*price = 16000 [14:18:30]sum+1 = 16001 [14:18:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 0.00 Безнал.: 160.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 86 05.06.2024 14:18 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64166 ФПД: 156846383618441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T141834&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64166&fm=156846383618441&tin=02508201610067®Number=0000000000092737&sum=16000 0 [14:18:31]StoreToDocumentArchive [14:18:31]shift 375 fd 64166 [14:18:31]save to /storage/0375/doc_00064166 [14:18:31]save last doc name /storage/0375/doc_00064166 to /storage/kkm_last_doc_name [14:18:31]save OK [14:18:31]Clear old archive folders... [14:18:31]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:18:31]tlvbuf is 01077280 [14:18:31]SAM_PROTO_ClearQueue [14:18:31]wFMCommunicate request_size=4 [14:18:31]MH_SAM_APDU [14:18:31]CAPDU: 80 09 00 00 [14:18:31]Write to MH i2c: E2 08 00 AD 25 80 09 00 00 00 00 00 00 44 [14:18:31]Write i2c OK [14:18:31]MH_I2C_Read... [14:18:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:31]Read from MH i2c: E2 [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: E2 03 00 [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: E2 03 00 AD 25 00 90 00 46 [14:18:31]RAPDU: 90 00 [14:18:31]wFMCommunicate OK [14:18:31]SAM_PROTO_ClearQueue done [14:18:31]KKMCreateOFDPacket [14:18:31]OFDProtocolAddRootSTLVToBuf [14:18:31]FM_MakeSignedData [14:18:31]FM_MakeSignedData [14:18:31]SAM_PROTO_SignData [14:18:31]wFMCommunicate request_size=4 [14:18:31]MH_SAM_APDU [14:18:31]CAPDU: 80 0D 01 02 [14:18:31]Write to MH i2c: E2 08 00 AE 25 80 0D 01 02 00 00 00 00 4C [14:18:31]Write i2c OK [14:18:31]MH_I2C_Read... [14:18:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:31]Read from MH i2c: E2 [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: E2 03 00 [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: E2 03 00 AE 25 00 90 00 47 [14:18:31]RAPDU: 90 00 [14:18:31]wFMCommunicate OK [14:18:31]wFMCommunicate request_size=255 [14:18:31]MH_SAM_APDU [14:18:31]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 BA 73 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:18:31]Write to MH i2c: E2 02 01 AF 25 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 BA 73 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 50 [14:18:31]Write i2c OK [14:18:31]MH_I2C_Read... [14:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:31]Read from MH i2c: E2 [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: E2 03 00 [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: E2 03 00 AF 25 00 90 00 48 [14:18:31]RAPDU: 90 00 [14:18:31]wFMCommunicate OK [14:18:31]wFMCommunicate request_size=30 [14:18:31]MH_SAM_APDU [14:18:31]CAPDU: 80 0D 02 02 19 30 38 37 35 30 37 34 10 04 04 00 A6 FA 00 00 35 04 06 00 8E A6 A4 FA D9 89 [14:18:31]Write to MH i2c: E2 21 00 B0 25 80 0D 02 02 19 00 30 38 37 35 30 37 34 10 04 04 00 A6 FA 00 00 35 04 06 00 8E A6 A4 FA D9 89 00 00 1B [14:18:31]Write i2c OK [14:18:31]MH_I2C_Read... [14:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:31]Read from MH i2c: E2 [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: E2 03 00 [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: E2 03 00 B0 25 00 90 00 49 [14:18:31]RAPDU: 90 00 [14:18:31]wFMCommunicate OK [14:18:31]wFMCommunicate request_size=4 [14:18:31]MH_SAM_APDU [14:18:31]CAPDU: 80 0D 03 02 [14:18:31]Write to MH i2c: E2 08 00 B1 25 80 0D 03 02 00 00 00 00 51 [14:18:31]Write i2c OK [14:18:31]MH_I2C_Read... [14:18:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:31]Read from MH i2c: E2 [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: E2 0B 00 [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: E2 0B 00 B1 25 00 48 D0 8C F3 05 6E DE 3E 90 00 78 [14:18:31]RAPDU: 48 D0 8C F3 05 6E DE 3E 90 00 [14:18:31]wFMCommunicate OK [14:18:31]SAM_PROTO_SignData done [14:18:31]FM_MakeSignedData done [14:18:31]CreateOFDProtocolMessage [14:18:31]wFMCommunicate request_size=4 [14:18:31]MH_SAM_APDU [14:18:31]CAPDU: 80 11 00 00 [14:18:31]Write to MH i2c: E2 08 00 B2 25 80 11 00 00 00 00 00 00 51 [14:18:31]Write i2c OK [14:18:31]MH_I2C_Read... [14:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:31]Read from MH i2c: E2 [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: E2 17 00 [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: E2 17 00 B2 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A3 [14:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:18:31]wFMCommunicate OK [14:18:31]CreateOFDProtocolMessage done [14:18:31]OFDSenderStorePacket 64166 [14:18:31]StoreOFDPacket docnum=64166 [14:18:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 56 E5 1B 01 56 F2 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 BA 73 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A6 FA 00 00 35 04 06 00 8E A6 A4 FA D9 89 48 D0 8C F3 05 6E DE 3E [14:18:31]CheckFolder [14:18:31]dirname=/storage/ofd_packets [14:18:31]CheckFolder done [14:18:31]ProducePacketName [14:18:31]name=ofd_packets/00064166 [14:18:31]NVStorageSaveData ofd_packets/00064166 [14:18:31]File name is /storage/ofd_packets/00064166 [14:18:31]Write 321 bytes [14:18:31]NVStorageSaveData done [14:18:31]OFDSenderStorePacket done [14:18:31]KKMCreateOFDPacket done [14:18:31]NVStorageSaveData kkm_last_timestamp [14:18:31]File name is /storage/kkm_last_timestamp [14:18:31]Write 4 bytes [14:18:31]NVStorageSaveData done [14:18:31]ExternCall_PrintAddStr [14:18:31]wPrintStart [14:18:31]Write to MH i2c: 01 00 00 B3 25 D8 [14:18:31]OFD Sender: Processing packet 64166 [packets to send 14, broken 13] [14:18:31]ProducePacketName [14:18:31]name=ofd_packets/00064166 [14:18:31]OFD Sender: To server: pG, [14:18:31]CommunicateWithHost lk.salyk.kg:30040 [14:18:31]ConnectInit lk.salyk.kg [14:18:31]Write i2c OK [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: 01 [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: 01 07 00 [14:18:31]MH_I2C_Read... [14:18:31]Read from MH i2c: 01 07 00 B3 25 00 00 00 00 00 FF 0F ED [14:18:31]RasterBufferAndPrint [14:18:31]line Счет N : (3)73696 [14:18:31]line ИНН: 02508201610067 [14:18:31]line Контрольно-Кассовый Чек [14:18:31]line ПРОДАЖА [14:18:31]line Товар: 4700000160211 [14:18:31]line Вода Легенда 0,5л [14:18:31]line 4.000 * 40.00 [14:18:31]line = 160.00 [14:18:31]line НДС 12% НСП 1% [14:18:31]line > о реализуемом товаре [14:18:31]line ИТОГО: 160.00 [14:18:31]line НСП 1% : 1.42 [14:18:31]line НДС 12% : 16.99 [14:18:31]line Наличными: 0.00 [14:18:31]line Безнал.: 160.00 [14:18:31]line Место: АЗС № 117 "Партнер Нефть" [14:18:31]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:18:31]line СНО: Общий режим [14:18:31]line Чек 86 05.06.2024 14:18 [14:18:31]line Смена: 375 ФФД: 1.0 [14:18:31]line ЗНМ: 0300000031 [14:18:31]line РНМ: 0000000000092737 [14:18:31]line Версия ККМ: 001 [14:18:31]line Платежная система: АКБ Кыргызстан [14:18:31]line ФМ: 0000000000875074 [14:18:31]line ФД: 64166 [14:18:31]line ФПД: 156846383618441 [14:18:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T141834&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64166&fm=156846383618441&tin=02508201610067®Number=0000000000092737&sum=16000 [14:18:32]line 0 [14:18:32]Connected sock=10 [14:18:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 56 E5 1B 01 56 F2 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 BA 73 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A6 FA 00 00 35 04 06 00 8E A6 A4 FA D9 89 48 D0 8C F3 05 6E DE 3E [14:18:32]written 0, free lines is 4095 [14:18:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 E6 E0 47 00 B0 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A6 FA 00 00 F4 03 04 00 C5 1F 60 66 B6 04 01 00 00 96 6A E4 2D D6 64 E8 3B [14:18:32]CommunicateWithHost err = 0 [14:18:32]CheckOFDResponse [14:18:32]1017 (14) - 77093643461234 [14:18:32]1041 (16) - 0000000000875074 [14:18:32]1040 (4) - 64166 [14:18:32]1012 (4) - 05.06.2024 08:20 [14:18:32]1206 (1) - 0 [14:18:32]OFD Sender: Remove packet 64166 [14:18:32]ProducePacketName [14:18:32]name=ofd_packets/00064166 [14:18:32]NVStorageDeleteData [14:18:32]Write to MH i2c: 01 00 00 DD 25 02 [14:18:32]Write i2c OK [14:18:32]MH_I2C_Read... [14:18:32]Read from MH i2c: 01 [14:18:32]MH_I2C_Read... [14:18:32]Read from MH i2c: 01 07 00 [14:18:32]MH_I2C_Read... [14:18:32]Read from MH i2c: 01 07 00 DD 25 00 00 00 00 00 E3 0C F8 [14:18:32]RasterBufferAndPrint [14:18:32]line [14:18:32]line [14:18:32]line [14:18:32]line [14:18:32]line [14:18:32]written 0, free lines is 3308 [14:18:32]MH_Cut [14:18:32]Write to MH i2c: D1 01 00 E4 25 01 DB [14:18:32]Write i2c OK [14:18:32]MH_I2C_Read... [14:18:32]Read from MH i2c: D1 [14:18:32]MH_I2C_Read... [14:18:32]Read from MH i2c: D1 01 00 [14:18:32]MH_I2C_Read... [14:18:32]Read from MH i2c: D1 01 00 E4 25 00 DA [14:18:32]Write to MH i2c: 01 00 00 E5 25 0A [14:18:32]Write i2c OK [14:18:32]MH_I2C_Read... [14:18:33]OFD Sender: No OFD packet to send [14:18:33]*** Cut start [14:18:33]*** Partial cut [14:18:33]*** CUTSNS_PIN = 1 [14:18:33]*** CUTSNS_PIN = 0 [14:18:33]*** Brake cut motor [14:18:34]Read from MH i2c: 01 [14:18:34]MH_I2C_Read... [14:18:34]*** Stop cut motor [14:18:34]*** Cut end [14:18:34]Read from MH i2c: 01 07 00 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: 01 07 00 E5 25 00 00 00 00 00 FF 0F 1F [14:18:34]process_action close_receipt done [14:18:34]requested_data is exist [14:18:34]produce_requested_data [14:18:34]requested_item fm.sn is exist - process it [14:18:34]wFMCommunicate request_size=4 [14:18:34]MH_SAM_APDU [14:18:34]CAPDU: 80 11 00 00 [14:18:34]Write to MH i2c: E2 08 00 E6 25 80 11 00 00 00 00 00 00 85 [14:18:34]Write i2c OK [14:18:34]MH_I2C_Read... [14:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:34]Read from MH i2c: E2 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 17 00 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 17 00 E6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D7 [14:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:18:34]wFMCommunicate OK [14:18:34]requested_item fd.num is exist - process it [14:18:34]SAM_PROTO_GetFieldsCounters [14:18:34]wFMCommunicate request_size=4 [14:18:34]MH_SAM_APDU [14:18:34]CAPDU: 80 13 00 00 [14:18:34]Write to MH i2c: E2 08 00 E7 25 80 13 00 00 00 00 00 00 88 [14:18:34]Write i2c OK [14:18:34]MH_I2C_Read... [14:18:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:34]Read from MH i2c: E2 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 62 00 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 62 00 E7 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A6 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [14:18:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A6 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:34]wFMCommunicate OK [14:18:34]SAM_PROTO_GetFieldsCounters done [14:18:34]requested_item shift.num is exist - process it [14:18:34]requested_item shift.opened is exist - process it [14:18:34]req_shift_opened [14:18:34]FM_GetShiftState [14:18:34]SAM_PROTO_GetShiftState [14:18:34]wFMCommunicate request_size=4 [14:18:34]MH_SAM_APDU [14:18:34]CAPDU: 80 13 01 00 [14:18:34]Write to MH i2c: E2 08 00 E8 25 80 13 01 00 00 00 00 00 8A [14:18:34]Write i2c OK [14:18:34]MH_I2C_Read... [14:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:34]Read from MH i2c: E2 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 0E 00 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 0E 00 E8 25 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 CB [14:18:34]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:18:34]wFMCommunicate OK [14:18:34]SAM_PROTO_GetShiftState done [14:18:34]FM_GetShiftState done [14:18:34]req_shift_opened done [14:18:34]requested_item shift.open_date is exist - process it [14:18:34]req_shift_open_date [14:18:34]req_shift_open_date done [14:18:34]produce_requested_data done [14:18:34]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64166,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [14:18:34]process_action_free close_receipt [14:18:34]json_value_free [14:18:34]json_value_free done [14:18:34]process_json_proto returns [14:18:34]Send response to host [14:18:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64166,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [14:18:34]free response buf [14:18:34]execute_script done [14:18:34]execute_script returns [14:18:34]free content buf [14:18:34]Sock 8.Close socket [14:18:34]Sock 8.Thread stoped [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:31]accept exits with 9 [14:25:31]New connection [14:25:31]New thread 3067276644 created [14:25:31]Thread 3067133284 joined [14:25:31]Waiting for new connection... [14:25:31] Sock 9.Parse request [14:25:31]Sock 9.Check first char [14:25:31]Sock 9.First char is OK [14:25:31]request: POST /json_proto HTTP/1.0 [14:25:31]Method: POST [14:25:31]URL: /json_proto [14:25:31]Method is POST - this is cgi request [14:25:31]url: /json_proto [14:25:31]query_string will be loaded in cgi processing [14:25:31]execute_cgi json_proto POST (null) [14:25:31]execute_cgi path=json_proto method=POST [14:25:31]POST find Content-Length [14:25:31]Host: 172.17.60.69:8080 [14:25:31]Content-Length: 620 [14:25:31]Content-Type: application/json [14:25:31] [14:25:31]POST finish read [14:25:31]Found Content-Length = 620 [14:25:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73697", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle 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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:31]execute_script... [14: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)73697", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle 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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:31]POST & json_proto [14:25:31]process_json_proto [14:25:31]json parsed OK: [14:25:31]protocol is kg_v1.0 [14:25:31]action value=close_receipt [14:25:31]process_action close_receipt [14:25:31]cmd_close_receipt [14:25:31]MH_GetDate [14:25:31]Write to MH i2c: F0 00 00 E9 25 FD [14:25:31]Write i2c OK [14:25:31]MH_I2C_Read... [14:25:31]Read from MH i2c: F0 [14:25:31]MH_I2C_Read... [14:25:31]Read from MH i2c: F0 09 00 [14:25:31]MH_I2C_Read... [14:25:31]Read from MH i2c: F0 09 00 E9 25 00 5F 75 60 66 D2 83 5F 66 BA [14:25:31]GetLastDocTimeStamp 1717597114 [14:25:31]current date 1717597535 [14:25:31]FM_GetShiftState [14:25:31]SAM_PROTO_GetShiftState [14:25:31]wFMCommunicate request_size=4 [14:25:31]MH_SAM_APDU [14:25:31]CAPDU: 80 13 01 00 [14:25:31]Write to MH i2c: E2 08 00 EA 25 80 13 01 00 00 00 00 00 8C [14:25:31]Write i2c OK [14:25:31]MH_I2C_Read... [14:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:31]Read from MH i2c: E2 [14:25:31]MH_I2C_Read... [14:25:31]Read from MH i2c: E2 0E 00 [14:25:31]MH_I2C_Read... [14:25:31]Read from MH i2c: E2 0E 00 EA 25 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 CD [14:25:31]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:25:31]wFMCommunicate OK [14:25:31]SAM_PROTO_GetShiftState done [14:25:31]FM_GetShiftState done [14:25:31]opened in 1717545925 [14:25:31]opened+sec_in_day 1717632325 [14:25:31]quantity*price = 14000 [14:25:31]sum+1 = 14001 [14:25:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 87 05.06.2024 14:25 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64167 ФПД: 222456760277504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T142535&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64167&fm=222456760277504&tin=02508201610067®Number=0000000000092737&sum=14000 0 [14:25:32]StoreToDocumentArchive [14:25:32]shift 375 fd 64167 [14:25:32]save to /storage/0375/doc_00064167 [14:25:32]save last doc name /storage/0375/doc_00064167 to /storage/kkm_last_doc_name [14:25:32]save OK [14:25:32]Clear old archive folders... [14:25:32]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:25:32]tlvbuf is 0104B880 [14:25:32]SAM_PROTO_ClearQueue [14:25:32]wFMCommunicate request_size=4 [14:25:32]MH_SAM_APDU [14:25:32]CAPDU: 80 09 00 00 [14:25:32]Write to MH i2c: E2 08 00 F7 25 80 09 00 00 00 00 00 00 8E [14:25:32]Write i2c OK [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 [14:25:32]MH_I2C_Read... [14:25:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:32]Read from MH i2c: E2 03 00 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 03 00 F7 25 00 90 00 90 [14:25:32]RAPDU: 90 00 [14:25:32]wFMCommunicate OK [14:25:32]SAM_PROTO_ClearQueue done [14:25:32]KKMCreateOFDPacket [14:25:32]OFDProtocolAddRootSTLVToBuf [14:25:32]FM_MakeSignedData [14:25:32]FM_MakeSignedData [14:25:32]SAM_PROTO_SignData [14:25:32]wFMCommunicate request_size=4 [14:25:32]MH_SAM_APDU [14:25:32]CAPDU: 80 0D 01 02 [14:25:32]Write to MH i2c: E2 08 00 F8 25 80 0D 01 02 00 00 00 00 96 [14:25:32]Write i2c OK [14:25:32]MH_I2C_Read... [14:25:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:32]Read from MH i2c: E2 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 03 00 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 03 00 F8 25 00 90 00 91 [14:25:32]RAPDU: 90 00 [14:25:32]wFMCommunicate OK [14:25:32]wFMCommunicate request_size=255 [14:25:32]MH_SAM_APDU [14:25:32]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 57 00 00 00 F4 03 04 00 5F 75 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [14:25:32]Write to MH i2c: E2 02 01 F9 25 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 57 00 00 00 F4 03 04 00 5F 75 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 F7 [14:25:32]Write i2c OK [14:25:32]MH_I2C_Read... [14:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:32]Read from MH i2c: E2 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 03 00 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 03 00 F9 25 00 90 00 92 [14:25:32]RAPDU: 90 00 [14:25:32]wFMCommunicate OK [14:25:32]wFMCommunicate request_size=32 [14:25:32]MH_SAM_APDU [14:25:32]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 A7 FA 00 00 35 04 06 00 CA 52 C0 2C 9A 00 [14:25:32]Write to MH i2c: E2 23 00 FA 25 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 A7 FA 00 00 35 04 06 00 CA 52 C0 2C 9A 00 00 00 38 [14:25:32]Write i2c OK [14:25:32]MH_I2C_Read... [14:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:32]Read from MH i2c: E2 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 03 00 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 03 00 FA 25 00 90 00 93 [14:25:32]RAPDU: 90 00 [14:25:32]wFMCommunicate OK [14:25:32]wFMCommunicate request_size=4 [14:25:32]MH_SAM_APDU [14:25:32]CAPDU: 80 0D 03 02 [14:25:32]Write to MH i2c: E2 08 00 FB 25 80 0D 03 02 00 00 00 00 9B [14:25:32]Write i2c OK [14:25:32]MH_I2C_Read... [14:25:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:33]Read from MH i2c: E2 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 0B 00 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 0B 00 FB 25 00 97 7B 71 D4 C6 9E 50 9E 90 00 45 [14:25:33]RAPDU: 97 7B 71 D4 C6 9E 50 9E 90 00 [14:25:33]wFMCommunicate OK [14:25:33]SAM_PROTO_SignData done [14:25:33]FM_MakeSignedData done [14:25:33]CreateOFDProtocolMessage [14:25:33]wFMCommunicate request_size=4 [14:25:33]MH_SAM_APDU [14:25:33]CAPDU: 80 11 00 00 [14:25:33]Write to MH i2c: E2 08 00 FC 25 80 11 00 00 00 00 00 00 9B [14:25:33]Write i2c OK [14:25:33]MH_I2C_Read... [14:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:33]Read from MH i2c: E2 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 17 00 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 17 00 FC 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 ED [14:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:25:33]wFMCommunicate OK [14:25:33]CreateOFDProtocolMessage done [14:25:33]OFDSenderStorePacket 64167 [14:25:33]StoreOFDPacket docnum=64167 [14:25:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 91 C9 1D 01 8F 84 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 57 00 00 00 F4 03 04 00 5F 75 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A7 FA 00 00 35 04 06 00 CA 52 C0 2C 9A 00 97 7B 71 D4 C6 9E 50 9E [14:25:33]CheckFolder [14:25:33]dirname=/storage/ofd_packets [14:25:33]CheckFolder done [14:25:33]ProducePacketName [14:25:33]name=ofd_packets/00064167 [14:25:33]NVStorageSaveData ofd_packets/00064167 [14:25:33]File name is /storage/ofd_packets/00064167 [14:25:33]Write 323 bytes [14:25:33]NVStorageSaveData done [14:25:33]OFDSenderStorePacket done [14:25:33]KKMCreateOFDPacket done [14:25:33]NVStorageSaveData kkm_last_timestamp [14:25:33]File name is /storage/kkm_last_timestamp [14:25:33]Write 4 bytes [14:25:33]NVStorageSaveData done [14:25:33]ExternCall_PrintAddStr [14:25:33]wPrintStart [14:25:33]Write to MH i2c: 01 00 00 FD 25 22 [14:25:33]Write i2c OK [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: 01 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: 01 07 00 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: 01 07 00 FD 25 00 00 00 00 00 FF 0F 37 [14:25:33]RasterBufferAndPrint [14:25:33]line Счет N : (3)73697 [14:25:33]line ИНН: 02508201610067 [14:25:33]line Контрольно-Кассовый Чек [14:25:33]line ПРОДАЖА [14:25:33]line Товар: 48743570 [14:25:33]line Сигареты Winston XStyle Blue [14:25:33]line 1.000 * 140.00 [14:25:33]line = 140.00 [14:25:33]line НДС 12% НСП 1% [14:25:33]line > о реализуемом товаре [14:25:33]line ИТОГО: 140.00 [14:25:33]line НСП 1% : 1.24 [14:25:33]line НДС 12% : 14.87 [14:25:33]line Наличными: 140.00 [14:25:33]line Безнал.: 0.00 [14:25:33]line Место: АЗС № 117 "Партнер Нефть" [14:25:33]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:25:33]line СНО: Общий режим [14:25:33]line Чек 87 05.06.2024 14:25 [14:25:33]line Смена: 375 ФФД: 1.0 [14:25:33]line ЗНМ: 0300000031 [14:25:33]line РНМ: 0000000000092737 [14:25:33]line Версия ККМ: 001 [14:25:33]line ФМ: 0000000000875074 [14:25:33]line ФД: 64167 [14:25:33]line ФПД: 222456760277504 [14:25:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T142535&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64167&fm=222456760277504&tin=02508201610067®Number=0000000000092737&sum=14000 [14:25:33]line 0 [14:25:33]OFD Sender: Processing packet 64167 [packets to send 14, broken 13] [14:25:33]ProducePacketName [14:25:33]name=ofd_packets/00064167 [14:25:33]OFD Sender: To server: pG, [14:25:33]CommunicateWithHost lk.salyk.kg:30040 [14:25:33]ConnectInit lk.salyk.kg [14:25:33]written 0, free lines is 4095 [14:25:33]Connected sock=10 [14:25:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 91 C9 1D 01 8F 84 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 57 00 00 00 F4 03 04 00 5F 75 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A7 FA 00 00 35 04 06 00 CA 52 C0 2C 9A 00 97 7B 71 D4 C6 9E 50 9E [14:25:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 1E 7D 47 00 C7 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A7 FA 00 00 F4 03 04 00 6A 21 60 66 B6 04 01 00 00 BA 0E E0 B9 92 73 41 18 [14:25:33]CommunicateWithHost err = 0 [14:25:33]CheckOFDResponse [14:25:33]1017 (14) - 77093643461234 [14:25:33]1041 (16) - 0000000000875074 [14:25:33]1040 (4) - 64167 [14:25:33]1012 (4) - 05.06.2024 08:27 [14:25:33]1206 (1) - 0 [14:25:33]OFD Sender: Remove packet 64167 [14:25:33]ProducePacketName [14:25:33]name=ofd_packets/00064167 [14:25:33]NVStorageDeleteData [14:25:33]Write to MH i2c: 01 00 00 25 26 4B [14:25:33]Write i2c OK [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: 01 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: 01 07 00 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: 01 07 00 25 26 00 00 00 00 00 ED 0C 4B [14:25:33]RasterBufferAndPrint [14:25:33]line [14:25:33]line [14:25:33]line [14:25:33]line [14:25:33]line [14:25:33]written 0, free lines is 3318 [14:25:33]MH_Cut [14:25:33]Write to MH i2c: D1 01 00 2C 26 01 24 [14:25:33]Write i2c OK [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: D1 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: D1 01 00 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: D1 01 00 2C 26 00 23 [14:25:33]Write to MH i2c: 01 00 00 2D 26 53 [14:25:33]Write i2c OK [14:25:33]MH_I2C_Read... [14:25:34]OFD Sender: No OFD packet to send [14:25:34]*** Cut start [14:25:34]*** Partial cut [14:25:34]*** CUTSNS_PIN = 1 [14:25:34]*** CUTSNS_PIN = 0 [14:25:34]*** Brake cut motor [14:25:35]Read from MH i2c: 01 [14:25:35]MH_I2C_Read... [14:25:35]*** Stop cut motor [14:25:35]*** Cut end [14:25:35]Read from MH i2c: 01 07 00 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: 01 07 00 2D 26 00 00 00 00 00 FF 0F 68 [14:25:35]process_action close_receipt done [14:25:35]requested_data is exist [14:25:35]produce_requested_data [14:25:35]requested_item fm.sn is exist - process it [14:25:35]wFMCommunicate request_size=4 [14:25:35]MH_SAM_APDU [14:25:35]CAPDU: 80 11 00 00 [14:25:35]Write to MH i2c: E2 08 00 2E 26 80 11 00 00 00 00 00 00 CE [14:25:35]Write i2c OK [14:25:35]MH_I2C_Read... [14:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:35]Read from MH i2c: E2 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: E2 17 00 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: E2 17 00 2E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 20 [14:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:25:35]wFMCommunicate OK [14:25:35]requested_item fd.num is exist - process it [14:25:35]SAM_PROTO_GetFieldsCounters [14:25:35]wFMCommunicate request_size=4 [14:25:35]MH_SAM_APDU [14:25:35]CAPDU: 80 13 00 00 [14:25:35]Write to MH i2c: E2 08 00 2F 26 80 13 00 00 00 00 00 00 D1 [14:25:35]Write i2c OK [14:25:35]MH_I2C_Read... [14:25:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:35]Read from MH i2c: E2 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: E2 62 00 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: E2 62 00 2F 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A7 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [14:25:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A7 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:35]wFMCommunicate OK [14:25:35]SAM_PROTO_GetFieldsCounters done [14:25:35]requested_item shift.num is exist - process it [14:25:35]requested_item shift.opened is exist - process it [14:25:35]req_shift_opened [14:25:35]FM_GetShiftState [14:25:35]SAM_PROTO_GetShiftState [14:25:35]wFMCommunicate request_size=4 [14:25:35]MH_SAM_APDU [14:25:35]CAPDU: 80 13 01 00 [14:25:35]Write to MH i2c: E2 08 00 30 26 80 13 01 00 00 00 00 00 D3 [14:25:35]Write i2c OK [14:25:35]MH_I2C_Read... [14:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:35]Read from MH i2c: E2 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: E2 0E 00 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: E2 0E 00 30 26 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 14 [14:25:35]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:25:35]wFMCommunicate OK [14:25:35]SAM_PROTO_GetShiftState done [14:25:35]FM_GetShiftState done [14:25:35]req_shift_opened done [14:25:35]requested_item shift.open_date is exist - process it [14:25:35]req_shift_open_date [14:25:35]req_shift_open_date done [14:25:35]produce_requested_data done [14:25:35]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64167,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [14:25:35]process_action_free close_receipt [14:25:35]json_value_free [14:25:35]json_value_free done [14:25:35]process_json_proto returns [14:25:35]Send response to host [14:25:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64167,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [14:25:35]free response buf [14:25:35]execute_script done [14:25:35]execute_script returns [14:25:35]free content buf [14:25:35]Sock 9.Close socket [14:25:35]Sock 9.Thread stoped [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]accept exits with 8 [14:26:44]New connection [14:26:44]New thread 3067133284 created [14:26:44]Thread 3067276644 joined [14:26:44]Waiting for new connection... [14:26:44] Sock 8.Parse request [14:26:44]Sock 8.Check first char [14:26:44]Sock 8.First char is OK [14:26:44]request: POST /json_proto HTTP/1.0 [14:26:44]Method: POST [14:26:44]URL: /json_proto [14:26:44]Method is POST - this is cgi request [14:26:44]url: /json_proto [14:26:44]query_string will be loaded in cgi processing [14:26:44]execute_cgi json_proto POST (null) [14:26:44]execute_cgi path=json_proto method=POST [14:26:44]POST find Content-Length [14:26:44]Host: 172.17.60.69:8080 [14:26:44]Content-Length: 653 [14:26:44]Content-Type: application/json [14:26:44] [14:26:44]POST finish read [14:26:44]Found Content-Length = 653 [14:26:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73698", "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" ] } } [14:26:44]execute_script... [14:26: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)73698", "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" ] } } [14:26:44]POST & json_proto [14:26:44]process_json_proto [14:26:44]json parsed OK: [14:26:44]protocol is kg_v1.0 [14:26:44]action value=close_receipt [14:26:44]process_action close_receipt [14:26:44]cmd_close_receipt [14:26:44]MH_GetDate [14:26:44]Write to MH i2c: F0 00 00 31 26 46 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: F0 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: F0 09 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: F0 09 00 31 26 00 A8 75 60 66 D2 83 5F 66 4C [14:26:44]GetLastDocTimeStamp 1717597535 [14:26:44]current date 1717597608 [14:26:44]FM_GetShiftState [14:26:44]SAM_PROTO_GetShiftState [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 13 01 00 [14:26:44]Write to MH i2c: E2 08 00 32 26 80 13 01 00 00 00 00 00 D5 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 0E 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 0E 00 32 26 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 16 [14:26:44]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:26:44]wFMCommunicate OK [14:26:44]SAM_PROTO_GetShiftState done [14:26:44]FM_GetShiftState done [14:26:44]opened in 1717545925 [14:26:44]opened+sec_in_day 1717632325 [14:26:44]quantity*price = 9500 [14:26:44]sum+1 = 9501 [14:26:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 88 05.06.2024 14:26 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64168 ФПД: 230052323107777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T142648&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64168&fm=230052323107777&tin=02508201610067®Number=0000000000092737&sum=9500 0 [14:26:45]StoreToDocumentArchive [14:26:45]shift 375 fd 64168 [14:26:45]save to /storage/0375/doc_00064168 [14:26:45]save last doc name /storage/0375/doc_00064168 to /storage/kkm_last_doc_name [14:26:45]save OK [14:26:45]Clear old archive folders... [14:26:45]ProcessDocumentItem done err = 0, tmpTLVsize=293 [14:26:45]tlvbuf is 00FB07C0 [14:26:45]SAM_PROTO_ClearQueue [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 09 00 00 [14:26:45]Write to MH i2c: E2 08 00 3F 26 80 09 00 00 00 00 00 00 D7 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 3F 26 00 90 00 D9 [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]SAM_PROTO_ClearQueue done [14:26:45]KKMCreateOFDPacket [14:26:45]OFDProtocolAddRootSTLVToBuf [14:26:45]FM_MakeSignedData [14:26:45]FM_MakeSignedData [14:26:45]SAM_PROTO_SignData [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 0D 01 02 [14:26:45]Write to MH i2c: E2 08 00 40 26 80 0D 01 02 00 00 00 00 DF [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 40 26 00 90 00 DA [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]wFMCommunicate request_size=255 [14:26:45]MH_SAM_APDU [14:26:45]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 58 00 00 00 F4 03 04 00 A8 75 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [14:26:45]Write to MH i2c: E2 02 01 41 26 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 58 00 00 00 F4 03 04 00 A8 75 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 32 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 41 26 00 90 00 DB [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]wFMCommunicate request_size=52 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A8 FA 00 00 35 04 06 00 D1 3B 3A FF A3 C1 [14:26:45]Write to MH i2c: E2 37 00 42 26 80 0D 02 02 2F 00 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A8 FA 00 00 35 04 06 00 D1 3B 3A FF A3 C1 00 00 F2 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 42 26 00 90 00 DC [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 0D 03 02 [14:26:45]Write to MH i2c: E2 08 00 43 26 80 0D 03 02 00 00 00 00 E4 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0B 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0B 00 43 26 00 A9 78 10 C6 93 CE 1D F4 90 00 4E [14:26:45]RAPDU: A9 78 10 C6 93 CE 1D F4 90 00 [14:26:45]wFMCommunicate OK [14:26:45]SAM_PROTO_SignData done [14:26:45]FM_MakeSignedData done [14:26:45]CreateOFDProtocolMessage [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 11 00 00 [14:26:45]Write to MH i2c: E2 08 00 44 26 80 11 00 00 00 00 00 00 E4 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 17 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 17 00 44 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 36 [14:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:26:45]wFMCommunicate OK [14:26:45]CreateOFDProtocolMessage done [14:26:45]OFDSenderStorePacket 64168 [14:26:45]StoreOFDPacket docnum=64168 [14:26:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 22 E2 31 01 6C 39 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 58 00 00 00 F4 03 04 00 A8 75 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A8 FA 00 00 35 04 06 00 D1 3B 3A FF A3 C1 A9 78 10 C6 93 CE 1D F4 [14:26:45]CheckFolder [14:26:45]dirname=/storage/ofd_packets [14:26:45]CheckFolder done [14:26:45]ProducePacketName [14:26:45]name=ofd_packets/00064168 [14:26:45]NVStorageSaveData ofd_packets/00064168 [14:26:45]File name is /storage/ofd_packets/00064168 [14:26:45]Write 343 bytes [14:26:45]NVStorageSaveData done [14:26:45]OFDSenderStorePacket done [14:26:45]KKMCreateOFDPacket done [14:26:45]NVStorageSaveData kkm_last_timestamp [14:26:45]File name is /storage/kkm_last_timestamp [14:26:45]Write 4 bytes [14:26:45]NVStorageSaveData done [14:26:45]ExternCall_PrintAddStr [14:26:45]wPrintStart [14:26:45]Write to MH i2c: 01 00 00 45 26 6B [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 45 26 00 00 00 00 00 FF 0F 80 [14:26:45]RasterBufferAndPrint [14:26:45]line Счет N : (3)73698 [14:26:45]line ИНН: 02508201610067 [14:26:45]line Контрольно-Кассовый Чек [14:26:45]line ПРОДАЖА [14:26:45]line Товар: 4700000480050 [14:26:45]line Напиток Nitro Energy эн green ж/б 0,45л [14:26:45]line 1.000 * 95.00 [14:26:45]line = 95.00 [14:26:45]line НДС 12% НСП 1% [14:26:45]line > о реализуемом товаре [14:26:45]line ИТОГО: 95.00 [14:26:45]line НСП 1% : 0.84 [14:26:45]line НДС 12% : 10.09 [14:26:45]line Наличными: 95.00 [14:26:45]line Безнал.: 0.00 [14:26:45]line Место: АЗС № 117 "Партнер Нефть" [14:26:45]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:26:45]line СНО: Общий режим [14:26:45]line Чек 88 05.06.2024 14:26 [14:26:45]line Смена: 375 ФФД: 1.0 [14:26:45]line ЗНМ: 0300000031 [14:26:45]line РНМ: 0000000000092737 [14:26:45]line Версия ККМ: 001 [14:26:45]line ФМ: 0000000000875074 [14:26:45]line ФД: 64168 [14:26:45]line ФПД: 230052323107777 [14:26:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T142648&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64168&fm=230052323107777&tin=02508201610067®Number=0000000000092737&sum=9500 [14:26:46]line 0 [14:26:46]OFD Sender: Processing packet 64168 [packets to send 14, broken 13] [14:26:46]ProducePacketName [14:26:46]name=ofd_packets/00064168 [14:26:46]OFD Sender: To server: pG, [14:26:46]CommunicateWithHost lk.salyk.kg:30040 [14:26:46]ConnectInit lk.salyk.kg [14:26:46]written 0, free lines is 4095 [14:26:46]Connected sock=9 [14:26:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 22 E2 31 01 6C 39 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 58 00 00 00 F4 03 04 00 A8 75 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A8 FA 00 00 35 04 06 00 D1 3B 3A FF A3 C1 A9 78 10 C6 93 CE 1D F4 [14:26:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 A9 8B 47 00 8C E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A8 FA 00 00 F4 03 04 00 B3 21 60 66 B6 04 01 00 00 CD AF 2E A8 A0 83 BD 3C [14:26:46]CommunicateWithHost err = 0 [14:26:46]CheckOFDResponse [14:26:46]1017 (14) - 77093643461234 [14:26:46]1041 (16) - 0000000000875074 [14:26:46]1040 (4) - 64168 [14:26:46]1012 (4) - 05.06.2024 08:28 [14:26:46]1206 (1) - 0 [14:26:46]OFD Sender: Remove packet 64168 [14:26:46]ProducePacketName [14:26:46]name=ofd_packets/00064168 [14:26:46]NVStorageDeleteData [14:26:46]Write to MH i2c: 01 00 00 6E 26 94 [14:26:46]Write i2c OK [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: 01 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: 01 07 00 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: 01 07 00 6E 26 00 00 00 00 00 F1 0C 98 [14:26:46]RasterBufferAndPrint [14:26:46]line [14:26:46]line [14:26:46]line [14:26:46]line [14:26:46]line [14:26:46]written 0, free lines is 3323 [14:26:46]MH_Cut [14:26:46]Write to MH i2c: D1 01 00 75 26 01 6D [14:26:46]Write i2c OK [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 01 00 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 01 00 75 26 00 6C [14:26:46]Write to MH i2c: 01 00 00 76 26 9C [14:26:46]Write i2c OK [14:26:46]MH_I2C_Read... [14:26:47]OFD Sender: No OFD packet to send [14:26:47]*** Cut start [14:26:47]*** Partial cut [14:26:47]*** CUTSNS_PIN = 1 [14:26:47]*** CUTSNS_PIN = 0 [14:26:47]*** Brake cut motor [14:26:48]Read from MH i2c: 01 [14:26:48]MH_I2C_Read... [14:26:48]*** Stop cut motor [14:26:48]*** Cut end [14:26:48]Read from MH i2c: 01 07 00 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: 01 07 00 76 26 00 00 00 00 00 FF 0F B1 [14:26:48]process_action close_receipt done [14:26:48]requested_data is exist [14:26:48]produce_requested_data [14:26:48]requested_item fm.sn is exist - process it [14:26:48]wFMCommunicate request_size=4 [14:26:48]MH_SAM_APDU [14:26:48]CAPDU: 80 11 00 00 [14:26:48]Write to MH i2c: E2 08 00 77 26 80 11 00 00 00 00 00 00 17 [14:26:48]Write i2c OK [14:26:48]MH_I2C_Read... [14:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:48]Read from MH i2c: E2 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 17 00 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 17 00 77 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 69 [14:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:26:48]wFMCommunicate OK [14:26:48]requested_item fd.num is exist - process it [14:26:48]SAM_PROTO_GetFieldsCounters [14:26:48]wFMCommunicate request_size=4 [14:26:48]MH_SAM_APDU [14:26:48]CAPDU: 80 13 00 00 [14:26:48]Write to MH i2c: E2 08 00 78 26 80 13 00 00 00 00 00 00 1A [14:26:48]Write i2c OK [14:26:48]MH_I2C_Read... [14:26:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:48]Read from MH i2c: E2 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 62 00 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 62 00 78 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A8 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [14:26:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A8 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:48]wFMCommunicate OK [14:26:48]SAM_PROTO_GetFieldsCounters done [14:26:48]requested_item shift.num is exist - process it [14:26:48]requested_item shift.opened is exist - process it [14:26:48]req_shift_opened [14:26:48]FM_GetShiftState [14:26:48]SAM_PROTO_GetShiftState [14:26:48]wFMCommunicate request_size=4 [14:26:48]MH_SAM_APDU [14:26:48]CAPDU: 80 13 01 00 [14:26:48]Write to MH i2c: E2 08 00 79 26 80 13 01 00 00 00 00 00 1C [14:26:48]Write i2c OK [14:26:48]MH_I2C_Read... [14:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:48]Read from MH i2c: E2 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 0E 00 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 0E 00 79 26 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 5D [14:26:48]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:26:48]wFMCommunicate OK [14:26:48]SAM_PROTO_GetShiftState done [14:26:48]FM_GetShiftState done [14:26:48]req_shift_opened done [14:26:48]requested_item shift.open_date is exist - process it [14:26:48]req_shift_open_date [14:26:48]req_shift_open_date done [14:26:48]produce_requested_data done [14:26:48]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64168,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [14:26:48]process_action_free close_receipt [14:26:48]json_value_free [14:26:48]json_value_free done [14:26:48]process_json_proto returns [14:26:48]Send response to host [14:26:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64168,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [14:26:48]free response buf [14:26:48]execute_script done [14:26:48]execute_script returns [14:26:48]free content buf [14:26:48]Sock 8.Close socket [14:26:48]Sock 8.Thread stoped [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:39]accept exits with 10 [14:32:39]New connection [14:32:39]New thread 3067276644 created [14:32:39]Thread 3067133284 joined [14:32:39]Waiting for new connection... [14:32:39] Sock 10.Parse request [14:32:39]Sock 10.Check first char [14:32:39]Sock 10.First char is OK [14:32:39]request: POST /json_proto HTTP/1.0 [14:32:39]Method: POST [14:32:39]URL: /json_proto [14:32:39]Method is POST - this is cgi request [14:32:39]url: /json_proto [14:32:39]query_string will be loaded in cgi processing [14:32:39]execute_cgi json_proto POST (null) [14:32:39]execute_cgi path=json_proto method=POST [14:32:39]POST find Content-Length [14:32:39]Host: 172.17.60.69:8080 [14:32:39]Content-Length: 959 [14:32:39]Content-Type: application/json [14:32:39] [14:32:39]POST finish read [14:32:39]Found Content-Length = 959 [14:32:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73699", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:39]execute_script... [14:32: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)73699", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:39]POST & json_proto [14:32:39]process_json_proto [14:32:39]json parsed OK: [14:32:39]protocol is kg_v1.0 [14:32:39]action value=close_receipt [14:32:39]process_action close_receipt [14:32:39]cmd_close_receipt [14:32:39]MH_GetDate [14:32:39]Write to MH i2c: F0 00 00 7A 26 8F [14:32:39]Write i2c OK [14:32:39]MH_I2C_Read... [14:32:39]Read from MH i2c: F0 [14:32:39]MH_I2C_Read... [14:32:39]Read from MH i2c: F0 09 00 [14:32:39]MH_I2C_Read... [14:32:39]Read from MH i2c: F0 09 00 7A 26 00 0B 77 60 66 D2 83 5F 66 FA [14:32:39]GetLastDocTimeStamp 1717597608 [14:32:39]current date 1717597963 [14:32:39]FM_GetShiftState [14:32:39]SAM_PROTO_GetShiftState [14:32:39]wFMCommunicate request_size=4 [14:32:39]MH_SAM_APDU [14:32:39]CAPDU: 80 13 01 00 [14:32:39]Write to MH i2c: E2 08 00 7B 26 80 13 01 00 00 00 00 00 1E [14:32:39]Write i2c OK [14:32:39]MH_I2C_Read... [14:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:39]Read from MH i2c: E2 [14:32:39]MH_I2C_Read... [14:32:39]Read from MH i2c: E2 0E 00 [14:32:39]MH_I2C_Read... [14:32:39]Read from MH i2c: E2 0E 00 7B 26 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 5F [14:32:39]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:32:39]wFMCommunicate OK [14:32:39]SAM_PROTO_GetShiftState done [14:32:39]FM_GetShiftState done [14:32:39]opened in 1717545925 [14:32:39]opened+sec_in_day 1717632325 [14:32:39]quantity*price = 12500 [14:32:39]sum+1 = 12501 [14:32:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571528 Вода ASU пит н.газ персик ПЭТ 1,0 л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 89 05.06.2024 14:32 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64169 ФПД: 166513461834631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T143243&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64169&fm=166513461834631&tin=02508201610067®Number=0000000000092737&sum=22500 0 [14:32:40]StoreToDocumentArchive [14:32:40]shift 375 fd 64169 [14:32:40]save to /storage/0375/doc_00064169 [14:32:40]save last doc name /storage/0375/doc_00064169 to /storage/kkm_last_doc_name [14:32:40]save OK [14:32:40]Clear old archive folders... [14:32:40]ProcessDocumentItem done err = 0, tmpTLVsize=410 [14:32:40]tlvbuf is 00FD4940 [14:32:40]SAM_PROTO_ClearQueue [14:32:40]wFMCommunicate request_size=4 [14:32:40]MH_SAM_APDU [14:32:40]CAPDU: 80 09 00 00 [14:32:40]Write to MH i2c: E2 08 00 88 26 80 09 00 00 00 00 00 00 20 [14:32:40]Write i2c OK [14:32:40]MH_I2C_Read... [14:32:40]Read from MH i2c: E2 [14:32:40]MH_I2C_Read... [14:32:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:40]Read from MH i2c: E2 03 00 [14:32:40]MH_I2C_Read... [14:32:40]Read from MH i2c: E2 03 00 88 26 00 90 00 22 [14:32:40]RAPDU: 90 00 [14:32:40]wFMCommunicate OK [14:32:40]SAM_PROTO_ClearQueue done [14:32:40]KKMCreateOFDPacket [14:32:40]OFDProtocolAddRootSTLVToBuf [14:32:40]FM_MakeSignedData [14:32:40]FM_MakeSignedData [14:32:40]SAM_PROTO_SignData [14:32:40]wFMCommunicate request_size=4 [14:32:40]MH_SAM_APDU [14:32:40]CAPDU: 80 0D 01 02 [14:32:40]Write to MH i2c: E2 08 00 89 26 80 0D 01 02 00 00 00 00 28 [14:32:40]Write i2c OK [14:32:40]MH_I2C_Read... [14:32:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:40]Read from MH i2c: E2 [14:32:40]MH_I2C_Read... [14:32:40]Read from MH i2c: E2 03 00 [14:32:40]MH_I2C_Read... [14:32:40]Read from MH i2c: E2 03 00 89 26 00 90 00 23 [14:32:40]RAPDU: 90 00 [14:32:40]wFMCommunicate OK [14:32:40]wFMCommunicate request_size=255 [14:32:40]MH_SAM_APDU [14:32:40]CAPDU: 80 0D 02 02 FA 03 00 9A 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 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 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 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 [14:32:40]Write to MH i2c: E2 02 01 8A 26 80 0D 02 02 FA 00 03 00 9A 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 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 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 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 00 00 7F [14:32:40]Write i2c OK [14:32:40]MH_I2C_Read... [14:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:40]Read from MH i2c: E2 [14:32:40]MH_I2C_Read... [14:32:40]Read from MH i2c: E2 03 00 [14:32:40]MH_I2C_Read... [14:32:40]Read from MH i2c: E2 03 00 8A 26 00 90 00 24 [14:32:40]RAPDU: 90 00 [14:32:40]wFMCommunicate OK [14:32:40]wFMCommunicate request_size=169 [14:32:40]MH_SAM_APDU [14:32:40]CAPDU: 80 0D 02 02 A4 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 0B 77 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A9 FA 00 00 35 04 06 00 97 71 6F BE 33 87 [14:32:40]Write to MH i2c: E2 AC 00 8B 26 80 0D 02 02 A4 00 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 0B 77 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A9 FA 00 00 35 04 06 00 97 71 6F BE 33 87 00 00 01 [14:32:40]Write i2c OK [14:32:40]MH_I2C_Read... [14:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:41]Read from MH i2c: E2 [14:32:41]MH_I2C_Read... [14:32:41]Read from MH i2c: E2 03 00 [14:32:41]MH_I2C_Read... [14:32:41]Read from MH i2c: E2 03 00 8B 26 00 90 00 25 [14:32:41]RAPDU: 90 00 [14:32:41]wFMCommunicate OK [14:32:41]wFMCommunicate request_size=4 [14:32:41]MH_SAM_APDU [14:32:41]CAPDU: 80 0D 03 02 [14:32:41]Write to MH i2c: E2 08 00 8C 26 80 0D 03 02 00 00 00 00 2D [14:32:41]Write i2c OK [14:32:41]MH_I2C_Read... [14:32:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:41]Read from MH i2c: E2 [14:32:41]MH_I2C_Read... [14:32:41]Read from MH i2c: E2 0B 00 [14:32:41]MH_I2C_Read... [14:32:41]Read from MH i2c: E2 0B 00 8C 26 00 FF CD 86 C1 DA 43 B4 6F 90 00 81 [14:32:41]RAPDU: FF CD 86 C1 DA 43 B4 6F 90 00 [14:32:41]wFMCommunicate OK [14:32:41]SAM_PROTO_SignData done [14:32:41]FM_MakeSignedData done [14:32:41]CreateOFDProtocolMessage [14:32:41]wFMCommunicate request_size=4 [14:32:41]MH_SAM_APDU [14:32:41]CAPDU: 80 11 00 00 [14:32:41]Write to MH i2c: E2 08 00 8D 26 80 11 00 00 00 00 00 00 2D [14:32:41]Write i2c OK [14:32:41]MH_I2C_Read... [14:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:41]Read from MH i2c: E2 [14:32:41]MH_I2C_Read... [14:32:41]Read from MH i2c: E2 17 00 [14:32:41]MH_I2C_Read... [14:32:41]Read from MH i2c: E2 17 00 8D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7F [14:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:32:41]wFMCommunicate OK [14:32:41]CreateOFDProtocolMessage done [14:32:41]OFDSenderStorePacket 64169 [14:32:41]StoreOFDPacket docnum=64169 [14:32:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 AE 01 00 00 B3 1D A6 01 56 C5 5A 03 01 00 03 00 9A 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 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 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 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 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 0B 77 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A9 FA 00 00 35 04 06 00 97 71 6F BE 33 87 FF CD 86 C1 DA 43 B4 6F [14:32:41]CheckFolder [14:32:41]dirname=/storage/ofd_packets [14:32:41]CheckFolder done [14:32:41]ProducePacketName [14:32:41]name=ofd_packets/00064169 [14:32:41]NVStorageSaveData ofd_packets/00064169 [14:32:41]File name is /storage/ofd_packets/00064169 [14:32:41]Write 460 bytes [14:32:41]NVStorageSaveData done [14:32:41]OFDSenderStorePacket done [14:32:41]KKMCreateOFDPacket done [14:32:41]NVStorageSaveData kkm_last_timestamp [14:32:41]File name is /storage/kkm_last_timestamp [14:32:41]Write 4 bytes [14:32:41]NVStorageSaveData done [14:32:41]ExternCall_PrintAddStr [14:32:41]wPrintStart [14:32:41]Write to MH i2c: 01 00 00 8E 26 B4 [14:32:41]Write i2c OK [14:32:41]MH_I2C_Read... [14:32:41]Read from MH i2c: 01 [14:32:41]MH_I2C_Read... [14:32:41]Read from MH i2c: 01 07 00 [14:32:41]MH_I2C_Read... [14:32:41]Read from MH i2c: 01 07 00 8E 26 00 00 00 00 00 FF 0F C9 [14:32:41]RasterBufferAndPrint [14:32:41]line Счет N : (3)73699 [14:32:41]line ИНН: 02508201610067 [14:32:41]line Контрольно-Кассовый Чек [14:32:41]line ПРОДАЖА [14:32:41]line Товар: 2000036220012 [14:32:41]line Кофе Капучино XL(GABB TRADE) [14:32:41]line 1.000 * 125.00 [14:32:41]line = 125.00 [14:32:41]line НДС 12% НСП 1% [14:32:41]line > о реализуемом товаре [14:32:41]line Товар: 4870001571528 [14:32:41]line Вода ASU пит н.газ персик ПЭТ 1,0 л [14:32:41]line 1.000 * 100.00 [14:32:41]line = 100.00 [14:32:41]line НДС 12% НСП 1% [14:32:41]line > о реализуемом товаре [14:32:41]line ИТОГО: 225.00 [14:32:41]line НСП 1% : 1.99 [14:32:41]line НДС 12% : 23.89 [14:32:41]line Наличными: 225.00 [14:32:41]line Безнал.: 0.00 [14:32:41]line Место: АЗС № 117 "Партнер Нефть" [14:32:41]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:32:41]line СНО: Общий режим [14:32:41]line Чек 89 05.06.2024 14:32 [14:32:41]line Смена: 375 ФФД: 1.0 [14:32:41]line ЗНМ: 0300000031 [14:32:41]line РНМ: 0000000000092737 [14:32:41]line Версия ККМ: 001 [14:32:41]line ФМ: 0000000000875074 [14:32:41]line ФД: 64169 [14:32:41]line ФПД: 166513461834631 [14:32:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T143243&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64169&fm=166513461834631&tin=02508201610067®Number=0000000000092737&sum=22500 [14:32:41]line 0 [14:32:41]OFD Sender: Processing packet 64169 [packets to send 14, broken 13] [14:32:41]ProducePacketName [14:32:41]name=ofd_packets/00064169 [14:32:41]OFD Sender: To server: pG, [14:32:41]CommunicateWithHost lk.salyk.kg:30040 [14:32:41]ConnectInit lk.salyk.kg [14:32:41]written 0, free lines is 4095 [14:32:41]Connected sock=9 [14:32:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 AE 01 00 00 B3 1D A6 01 56 C5 5A 03 01 00 03 00 9A 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 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 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 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 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 0B 77 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A9 FA 00 00 35 04 06 00 97 71 6F BE 33 87 FF CD 86 C1 DA 43 B4 6F [14:32:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 7A 1C 47 00 7E 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A9 FA 00 00 F4 03 04 00 16 23 60 66 B6 04 01 00 00 64 52 80 EC BD 6A 22 30 [14:32:41]CommunicateWithHost err = 0 [14:32:41]CheckOFDResponse [14:32:41]1017 (14) - 77093643461234 [14:32:41]1041 (16) - 0000000000875074 [14:32:41]1040 (4) - 64169 [14:32:41]1012 (4) - 05.06.2024 08:34 [14:32:41]1206 (1) - 0 [14:32:41]OFD Sender: Remove packet 64169 [14:32:41]ProducePacketName [14:32:41]name=ofd_packets/00064169 [14:32:41]NVStorageDeleteData [14:32:42]Write to MH i2c: 01 00 00 BE 26 E4 [14:32:42]Write i2c OK [14:32:42]MH_I2C_Read... [14:32:42]Read from MH i2c: 01 [14:32:42]MH_I2C_Read... [14:32:42]Read from MH i2c: 01 07 00 [14:32:42]MH_I2C_Read... [14:32:42]Read from MH i2c: 01 07 00 BE 26 00 00 00 00 00 8C 0C 83 [14:32:42]RasterBufferAndPrint [14:32:42]line [14:32:42]line [14:32:42]line [14:32:42]line [14:32:42]line [14:32:42]written 0, free lines is 3220 [14:32:42]MH_Cut [14:32:42]Write to MH i2c: D1 01 00 C5 26 01 BD [14:32:42]Write i2c OK [14:32:42]MH_I2C_Read... [14:32:42]Read from MH i2c: D1 [14:32:42]MH_I2C_Read... [14:32:42]Read from MH i2c: D1 01 00 [14:32:42]MH_I2C_Read... [14:32:42]Read from MH i2c: D1 01 00 C5 26 00 BC [14:32:42]Write to MH i2c: 01 00 00 C6 26 EC [14:32:42]Write i2c OK [14:32:42]MH_I2C_Read... [14:32:42]OFD Sender: No OFD packet to send [14:32:42]*** Cut start [14:32:42]*** Partial cut [14:32:42]*** CUTSNS_PIN = 1 [14:32:42]*** CUTSNS_PIN = 0 [14:32:43]*** Brake cut motor [14:32:43]Read from MH i2c: 01 [14:32:43]MH_I2C_Read... [14:32:43]*** Stop cut motor [14:32:43]*** Cut end [14:32:43]Read from MH i2c: 01 07 00 [14:32:43]MH_I2C_Read... [14:32:43]Read from MH i2c: 01 07 00 C6 26 00 00 00 00 00 FF 0F 01 [14:32:43]process_action close_receipt done [14:32:43]requested_data is exist [14:32:43]produce_requested_data [14:32:43]requested_item fm.sn is exist - process it [14:32:43]wFMCommunicate request_size=4 [14:32:43]MH_SAM_APDU [14:32:43]CAPDU: 80 11 00 00 [14:32:43]Write to MH i2c: E2 08 00 C7 26 80 11 00 00 00 00 00 00 67 [14:32:43]Write i2c OK [14:32:43]MH_I2C_Read... [14:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:43]Read from MH i2c: E2 [14:32:43]MH_I2C_Read... [14:32:43]Read from MH i2c: E2 17 00 [14:32:43]MH_I2C_Read... [14:32:43]Read from MH i2c: E2 17 00 C7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B9 [14:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:32:43]wFMCommunicate OK [14:32:43]requested_item fd.num is exist - process it [14:32:43]SAM_PROTO_GetFieldsCounters [14:32:43]wFMCommunicate request_size=4 [14:32:43]MH_SAM_APDU [14:32:43]CAPDU: 80 13 00 00 [14:32:43]Write to MH i2c: E2 08 00 C8 26 80 13 00 00 00 00 00 00 6A [14:32:43]Write i2c OK [14:32:43]MH_I2C_Read... [14:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:43]Read from MH i2c: E2 [14:32:43]MH_I2C_Read... [14:32:43]Read from MH i2c: E2 62 00 [14:32:43]MH_I2C_Read... [14:32:43]Read from MH i2c: E2 62 00 C8 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A9 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [14:32:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A9 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:43]wFMCommunicate OK [14:32:43]SAM_PROTO_GetFieldsCounters done [14:32:43]requested_item shift.num is exist - process it [14:32:43]requested_item shift.opened is exist - process it [14:32:43]req_shift_opened [14:32:43]FM_GetShiftState [14:32:43]SAM_PROTO_GetShiftState [14:32:43]wFMCommunicate request_size=4 [14:32:43]MH_SAM_APDU [14:32:43]CAPDU: 80 13 01 00 [14:32:43]Write to MH i2c: E2 08 00 C9 26 80 13 01 00 00 00 00 00 6C [14:32:43]Write i2c OK [14:32:43]MH_I2C_Read... [14:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:43]Read from MH i2c: E2 [14:32:43]MH_I2C_Read... [14:32:43]Read from MH i2c: E2 0E 00 [14:32:43]MH_I2C_Read... [14:32:43]Read from MH i2c: E2 0E 00 C9 26 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 AD [14:32:43]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:32:43]wFMCommunicate OK [14:32:43]SAM_PROTO_GetShiftState done [14:32:43]FM_GetShiftState done [14:32:43]req_shift_opened done [14:32:43]requested_item shift.open_date is exist - process it [14:32:43]req_shift_open_date [14:32:43]req_shift_open_date done [14:32:43]produce_requested_data done [14:32:43]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64169,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [14:32:43]process_action_free close_receipt [14:32:43]json_value_free [14:32:43]json_value_free done [14:32:43]process_json_proto returns [14:32:43]Send response to host [14:32:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64169,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [14:32:43]free response buf [14:32:43]execute_script done [14:32:43]execute_script returns [14:32:43]free content buf [14:32:43]Sock 10.Close socket [14:32:43]Sock 10.Thread stoped [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:50]accept exits with 8 [14:46:50]New connection [14:46:50]New thread 3067133284 created [14:46:50]Thread 3067276644 joined [14:46:50]Waiting for new connection... [14:46:50] Sock 8.Parse request [14:46:50]Sock 8.Check first char [14:46:50]Sock 8.First char is OK [14:46:50]request: POST /json_proto HTTP/1.0 [14:46:50]Method: POST [14:46:50]URL: /json_proto [14:46:50]Method is POST - this is cgi request [14:46:50]url: /json_proto [14:46:50]query_string will be loaded in cgi processing [14:46:50]execute_cgi json_proto POST (null) [14:46:50]execute_cgi path=json_proto method=POST [14:46:50]POST find Content-Length [14:46:50]Host: 172.17.60.69:8080 [14:46:50]Content-Length: 1703 [14:46:50]Content-Type: application/json [14:46:50] [14:46:50]POST finish read [14:46:50]Found Content-Length = 1703 [14:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73700", "tax_sys" : 0, "items" : [ { "code": "48700011155490", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 3.000, "sum" : 177.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 762.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:50]execute_script... [14:46: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)73700", "tax_sys" : 0, "items" : [ { "code": "48700011155490", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 3.000, "sum" : 177.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 762.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:51]POST & json_proto [14:46:51]process_json_proto [14:46:51]json parsed OK: [14:46:51]protocol is kg_v1.0 [14:46:51]action value=close_receipt [14:46:51]process_action close_receipt [14:46:51]cmd_close_receipt [14:46:51]MH_GetDate [14:46:51]Write to MH i2c: F0 00 00 CA 26 DF [14:46:51]Write i2c OK [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: F0 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: F0 09 00 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: F0 09 00 CA 26 00 5F 7A 60 66 D2 83 5F 66 A1 [14:46:51]GetLastDocTimeStamp 1717597963 [14:46:51]current date 1717598815 [14:46:51]FM_GetShiftState [14:46:51]SAM_PROTO_GetShiftState [14:46:51]wFMCommunicate request_size=4 [14:46:51]MH_SAM_APDU [14:46:51]CAPDU: 80 13 01 00 [14:46:51]Write to MH i2c: E2 08 00 CB 26 80 13 01 00 00 00 00 00 6E [14:46:51]Write i2c OK [14:46:51]MH_I2C_Read... [14:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:51]Read from MH i2c: E2 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: E2 0E 00 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: E2 0E 00 CB 26 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 AF [14:46:51]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:46:51]wFMCommunicate OK [14:46:51]SAM_PROTO_GetShiftState done [14:46:51]FM_GetShiftState done [14:46:51]opened in 1717545925 [14:46:51]opened+sec_in_day 1717632325 [14:46:51]quantity*price = 21000 [14:46:51]sum+1 = 21001 [14:46:51]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607084351378 Бисквит Чоко пай 6шт 1.000 * 175.00 = 175.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 3.000 * 59.00 = 177.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 762.00 НСП 1% : 6.75 НДС 12% : 80.92 Наличными: 762.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 90 05.06.2024 14:46 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64170 ФПД: 173012236197680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T144655&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64170&fm=173012236197680&tin=02508201610067®Number=0000000000092737&sum=76200 0 [14:46:52]StoreToDocumentArchive [14:46:52]shift 375 fd 64170 [14:46:52]save to /storage/0375/doc_00064170 [14:46:52]save last doc name /storage/0375/doc_00064170 to /storage/kkm_last_doc_name [14:46:52]save OK [14:46:52]Clear old archive folders... [14:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=711 [14:46:52]tlvbuf is 010770C0 [14:46:52]SAM_PROTO_ClearQueue [14:46:52]wFMCommunicate request_size=4 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 09 00 00 [14:46:52]Write to MH i2c: E2 08 00 D8 26 80 09 00 00 00 00 00 00 70 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:52]Read from MH i2c: E2 03 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 D8 26 00 90 00 72 [14:46:52]RAPDU: 90 00 [14:46:52]wFMCommunicate OK [14:46:52]SAM_PROTO_ClearQueue done [14:46:52]KKMCreateOFDPacket [14:46:52]OFDProtocolAddRootSTLVToBuf [14:46:52]FM_MakeSignedData [14:46:52]FM_MakeSignedData [14:46:52]SAM_PROTO_SignData [14:46:52]wFMCommunicate request_size=4 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 0D 01 02 [14:46:52]Write to MH i2c: E2 08 00 D9 26 80 0D 01 02 00 00 00 00 78 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 D9 26 00 90 00 73 [14:46:52]RAPDU: 90 00 [14:46:52]wFMCommunicate OK [14:46:52]wFMCommunicate request_size=255 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 0D 02 02 FA 03 00 C7 02 1E 04 01 00 01 23 04 5D 00 8A 04 0E 00 34 38 37 30 30 30 31 31 31 35 35 34 39 30 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE [14:46:52]Write to MH i2c: E2 02 01 DA 26 80 0D 02 02 FA 00 03 00 C7 02 1E 04 01 00 01 23 04 5D 00 8A 04 0E 00 34 38 37 30 30 30 31 31 31 35 35 34 39 30 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 00 00 8A [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 DA 26 00 90 00 74 [14:46:52]RAPDU: 90 00 [14:46:52]wFMCommunicate OK [14:46:52]wFMCommunicate request_size=255 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 0D 02 02 FA 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C [14:46:52]Write to MH i2c: E2 02 01 DB 26 80 0D 02 02 FA 00 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 00 00 60 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:53]OFD Sender: No OFD packet to send [14:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 DB 26 00 90 00 75 [14:46:53]RAPDU: 90 00 [14:46:53]wFMCommunicate OK [14:46:53]wFMCommunicate request_size=220 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 0D 02 02 D7 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 A8 29 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5F 7A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AA FA 00 00 35 04 06 00 9D 5A 8C E1 5F 30 [14:46:53]Write to MH i2c: E2 DF 00 DC 26 80 0D 02 02 D7 00 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 A8 29 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5F 7A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AA FA 00 00 35 04 06 00 9D 5A 8C E1 5F 30 00 00 A0 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 DC 26 00 90 00 76 [14:46:53]RAPDU: 90 00 [14:46:53]wFMCommunicate OK [14:46:53]wFMCommunicate request_size=4 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 0D 03 02 [14:46:53]Write to MH i2c: E2 08 00 DD 26 80 0D 03 02 00 00 00 00 7E [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 0B 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 0B 00 DD 26 00 8B 1B 68 07 40 B6 0F 3B 90 00 D4 [14:46:53]RAPDU: 8B 1B 68 07 40 B6 0F 3B 90 00 [14:46:53]wFMCommunicate OK [14:46:53]SAM_PROTO_SignData done [14:46:53]FM_MakeSignedData done [14:46:53]CreateOFDProtocolMessage [14:46:53]wFMCommunicate request_size=4 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 11 00 00 [14:46:53]Write to MH i2c: E2 08 00 DE 26 80 11 00 00 00 00 00 00 7E [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 17 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 17 00 DE 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D0 [14:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:46:53]wFMCommunicate OK [14:46:53]CreateOFDProtocolMessage done [14:46:53]OFDSenderStorePacket 64170 [14:46:53]StoreOFDPacket docnum=64170 [14:46:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 DB 02 00 00 27 84 D3 02 D6 09 5A 03 01 00 03 00 C7 02 1E 04 01 00 01 23 04 5D 00 8A 04 0E 00 34 38 37 30 30 30 31 31 31 35 35 34 39 30 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 A8 29 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5F 7A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AA FA 00 00 35 04 06 00 9D 5A 8C E1 5F 30 8B 1B 68 07 40 B6 0F 3B [14:46:53]CheckFolder [14:46:53]dirname=/storage/ofd_packets [14:46:53]CheckFolder done [14:46:53]ProducePacketName [14:46:53]name=ofd_packets/00064170 [14:46:53]NVStorageSaveData ofd_packets/00064170 [14:46:53]File name is /storage/ofd_packets/00064170 [14:46:53]Write 761 bytes [14:46:53]NVStorageSaveData done [14:46:53]OFDSenderStorePacket done [14:46:53]KKMCreateOFDPacket done [14:46:53]NVStorageSaveData kkm_last_timestamp [14:46:53]File name is /storage/kkm_last_timestamp [14:46:53]Write 4 bytes [14:46:53]NVStorageSaveData done [14:46:53]ExternCall_PrintAddStr [14:46:53]wPrintStart [14:46:53]Write to MH i2c: 01 00 00 DF 26 05 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: 01 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: 01 07 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: 01 07 00 DF 26 00 00 00 00 00 FF 0F 1A [14:46:53]RasterBufferAndPrint [14:46:53]line Счет N : (3)73700 [14:46:53]line ИНН: 02508201610067 [14:46:53]line Контрольно-Кассовый Чек [14:46:53]line ПРОДАЖА [14:46:53]line Товар: 48700011155490 [14:46:53]line Напиток Pepsi 2л [14:46:53]line 1.000 * 210.00 [14:46:53]line = 210.00 [14:46:53]line НДС 12% НСП 1% [14:46:53]line > о реализуемом товаре [14:46:53]line Товар: 4870001570071 [14:46:53]line Напиток Pepsi 1л [14:46:53]line 1.000 * 110.00 [14:46:53]line = 110.00 [14:46:53]line НДС 12% НСП 1% [14:46:53]line > о реализуемом товаре [14:46:53]line Товар: 4607084351378 [14:46:53]line Бисквит Чоко пай 6шт [14:46:53]line 1.000 * 175.00 [14:46:53]line = 175.00 [14:46:53]line НДС 12% НСП 1% [14:46:53]line > о реализуемом товаре [14:46:53]line Товар: 4660085515163 [14:46:53]line Шок Батончик Сникерс супер 95/80г [14:46:53]line 1.000 * 90.00 [14:46:53]line = 90.00 [14:46:53]line НДС 12% НСП 1% [14:46:53]line > о реализуемом товаре [14:46:53]line Товар: 4607065001445 [14:46:53]line Шок батончик Snickers 50,5г [14:46:53]line 3.000 * 59.00 [14:46:53]line = 177.00 [14:46:53]line НДС 12% НСП 1% [14:46:53]line > о реализуемом товаре [14:46:53]line ИТОГО: 762.00 [14:46:53]line НСП 1% : 6.75 [14:46:53]line НДС 12% : 80.92 [14:46:53]line Наличными: 762.00 [14:46:53]line Безнал.: 0.00 [14:46:53]line Место: АЗС № 117 "Партнер Нефть" [14:46:53]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:46:53]line СНО: Общий режим [14:46:53]line Чек 90 05.06.2024 14:46 [14:46:53]line Смена: 375 ФФД: 1.0 [14:46:53]line ЗНМ: 0300000031 [14:46:53]line РНМ: 0000000000092737 [14:46:53]line Версия ККМ: 001 [14:46:53]line ФМ: 0000000000875074 [14:46:53]line ФД: 64170 [14:46:53]line ФПД: 173012236197680 [14:46:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T144655&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64170&fm=173012236197680&tin=02508201610067®Number=0000000000092737&sum=76200 [14:46:53]line 0 [14:46:53]written 0, free lines is 4095 [14:46:53]OFD Sender: Processing packet 64170 [packets to send 14, broken 13] [14:46:53]ProducePacketName [14:46:53]name=ofd_packets/00064170 [14:46:53]OFD Sender: To server: pG, [14:46:53]CommunicateWithHost lk.salyk.kg:30040 [14:46:53]ConnectInit lk.salyk.kg [14:46:53]Connected sock=10 [14:46:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 DB 02 00 00 27 84 D3 02 D6 09 5A 03 01 00 03 00 C7 02 1E 04 01 00 01 23 04 5D 00 8A 04 0E 00 34 38 37 30 30 30 31 31 31 35 35 34 39 30 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 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 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 A8 29 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5F 7A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AA FA 00 00 35 04 06 00 9D 5A 8C E1 5F 30 8B 1B 68 07 40 B6 0F 3B [14:46:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D5 43 47 00 90 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AA FA 00 00 F4 03 04 00 6B 26 60 66 B6 04 01 00 00 C8 91 B0 9C BE 99 32 04 [14:46:54]CommunicateWithHost err = 0 [14:46:54]CheckOFDResponse [14:46:54]1017 (14) - 77093643461234 [14:46:54]1041 (16) - 0000000000875074 [14:46:54]1040 (4) - 64170 [14:46:54]1012 (4) - 05.06.2024 08:48 [14:46:54]1206 (1) - 0 [14:46:54]OFD Sender: Remove packet 64170 [14:46:54]ProducePacketName [14:46:54]name=ofd_packets/00064170 [14:46:54]NVStorageDeleteData [14:46:54]Write to MH i2c: 01 00 00 20 27 47 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 07 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 07 00 20 27 00 00 00 00 00 94 0B ED [14:46:54]RasterBufferAndPrint [14:46:54]line [14:46:54]line [14:46:54]line [14:46:54]line [14:46:54]line [14:46:54]written 0, free lines is 2972 [14:46:54]MH_Cut [14:46:54]Write to MH i2c: D1 01 00 27 27 01 20 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: D1 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: D1 01 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: D1 01 00 27 27 00 1F [14:46:54]Write to MH i2c: 01 00 00 28 27 4F [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]OFD Sender: No OFD packet to send [14:46:55]*** Cut start [14:46:55]*** Partial cut [14:46:55]*** CUTSNS_PIN = 1 [14:46:55]*** CUTSNS_PIN = 0 [14:46:55]*** Brake cut motor [14:46:56]Read from MH i2c: 01 [14:46:56]MH_I2C_Read... [14:46:56]*** Stop cut motor [14:46:56]*** Cut end [14:46:56]Read from MH i2c: 01 07 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: 01 07 00 28 27 00 00 00 00 00 FF 0F 64 [14:46:56]process_action close_receipt done [14:46:56]requested_data is exist [14:46:56]produce_requested_data [14:46:56]requested_item fm.sn is exist - process it [14:46:56]wFMCommunicate request_size=4 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 11 00 00 [14:46:56]Write to MH i2c: E2 08 00 29 27 80 11 00 00 00 00 00 00 CA [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 17 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 17 00 29 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1C [14:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:46:56]wFMCommunicate OK [14:46:56]requested_item fd.num is exist - process it [14:46:56]SAM_PROTO_GetFieldsCounters [14:46:56]wFMCommunicate request_size=4 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 13 00 00 [14:46:56]Write to MH i2c: E2 08 00 2A 27 80 13 00 00 00 00 00 00 CD [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 62 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 62 00 2A 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AA FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [14:46:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AA FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:56]wFMCommunicate OK [14:46:56]SAM_PROTO_GetFieldsCounters done [14:46:56]requested_item shift.num is exist - process it [14:46:56]requested_item shift.opened is exist - process it [14:46:56]req_shift_opened [14:46:56]FM_GetShiftState [14:46:56]SAM_PROTO_GetShiftState [14:46:56]wFMCommunicate request_size=4 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 13 01 00 [14:46:56]Write to MH i2c: E2 08 00 2B 27 80 13 01 00 00 00 00 00 CF [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 0E 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 0E 00 2B 27 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 10 [14:46:56]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:46:56]wFMCommunicate OK [14:46:56]SAM_PROTO_GetShiftState done [14:46:56]FM_GetShiftState done [14:46:56]req_shift_opened done [14:46:56]requested_item shift.open_date is exist - process it [14:46:56]req_shift_open_date [14:46:56]req_shift_open_date done [14:46:56]produce_requested_data done [14:46:56]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64170,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [14:46:56]process_action_free close_receipt [14:46:56]json_value_free [14:46:56]json_value_free done [14:46:56]process_json_proto returns [14:46:56]Send response to host [14:46:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64170,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [14:46:56]free response buf [14:46:56]execute_script done [14:46:56]execute_script returns [14:46:56]free content buf [14:46:56]Sock 8.Close socket [14:46:56]Sock 8.Thread stoped [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]accept exits with 9 [14:50:59]New connection [14:50:59]New thread 3067276644 created [14:50:59]Thread 3067133284 joined [14:50:59]Waiting for new connection... [14:50:59] Sock 9.Parse request [14:50:59]Sock 9.Check first char [14:50:59]Sock 9.First char is OK [14:50:59]request: POST /json_proto HTTP/1.0 [14:50:59]Method: POST [14:50:59]URL: /json_proto [14:50:59]Method is POST - this is cgi request [14:50:59]url: /json_proto [14:50:59]query_string will be loaded in cgi processing [14:50:59]execute_cgi json_proto POST (null) [14:50:59]execute_cgi path=json_proto method=POST [14:50:59]POST find Content-Length [14:50:59]Host: 172.17.60.69:8080 [14:50:59]Content-Length: 648 [14:50:59]Content-Type: application/json [14:50:59] [14:50:59]POST finish read [14:50:59]Found Content-Length = 648 [14:50:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73701", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:59]execute_script... [14:50:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73701", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:59]POST & json_proto [14:50:59]process_json_proto [14:50:59]json parsed OK: [14:50:59]protocol is kg_v1.0 [14:50:59]action value=close_receipt [14:50:59]process_action close_receipt [14:50:59]cmd_close_receipt [14:50:59]MH_GetDate [14:50:59]Write to MH i2c: F0 00 00 2C 27 42 [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: F0 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: F0 09 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: F0 09 00 2C 27 00 57 7B 60 66 D2 83 5F 66 FD [14:50:59]GetLastDocTimeStamp 1717598815 [14:50:59]current date 1717599063 [14:50:59]FM_GetShiftState [14:50:59]SAM_PROTO_GetShiftState [14:50:59]wFMCommunicate request_size=4 [14:50:59]MH_SAM_APDU [14:50:59]CAPDU: 80 13 01 00 [14:50:59]Write to MH i2c: E2 08 00 2D 27 80 13 01 00 00 00 00 00 D1 [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 0E 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 0E 00 2D 27 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 12 [14:50:59]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:50:59]wFMCommunicate OK [14:50:59]SAM_PROTO_GetShiftState done [14:50:59]FM_GetShiftState done [14:50:59]opened in 1717545925 [14:50:59]opened+sec_in_day 1717632325 [14:50:59]quantity*price = 15000 [14:50:59]sum+1 = 15001 [14:50:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 91 05.06.2024 14:51 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64171 ФПД: 79544689674325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T145103&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64171&fm=79544689674325&tin=02508201610067®Number=0000000000092737&sum=15000 0 [14:51:00]StoreToDocumentArchive [14:51:00]shift 375 fd 64171 [14:51:00]save to /storage/0375/doc_00064171 [14:51:00]save last doc name /storage/0375/doc_00064171 to /storage/kkm_last_doc_name [14:51:00]save OK [14:51:00]Clear old archive folders... [14:51:00]ProcessDocumentItem done err = 0, tmpTLVsize=282 [14:51:00]tlvbuf is 00FB0A40 [14:51:00]SAM_PROTO_ClearQueue [14:51:00]wFMCommunicate request_size=4 [14:51:00]MH_SAM_APDU [14:51:00]CAPDU: 80 09 00 00 [14:51:00]Write to MH i2c: E2 08 00 3A 27 80 09 00 00 00 00 00 00 D3 [14:51:00]Write i2c OK [14:51:00]MH_I2C_Read... [14:51:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:00]Read from MH i2c: E2 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: E2 03 00 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: E2 03 00 3A 27 00 90 00 D5 [14:51:00]RAPDU: 90 00 [14:51:00]wFMCommunicate OK [14:51:00]SAM_PROTO_ClearQueue done [14:51:00]KKMCreateOFDPacket [14:51:00]OFDProtocolAddRootSTLVToBuf [14:51:00]FM_MakeSignedData [14:51:00]FM_MakeSignedData [14:51:00]SAM_PROTO_SignData [14:51:00]wFMCommunicate request_size=4 [14:51:00]MH_SAM_APDU [14:51:00]CAPDU: 80 0D 01 02 [14:51:00]Write to MH i2c: E2 08 00 3B 27 80 0D 01 02 00 00 00 00 DB [14:51:00]Write i2c OK [14:51:00]MH_I2C_Read... [14:51:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:00]Read from MH i2c: E2 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: E2 03 00 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: E2 03 00 3B 27 00 90 00 D6 [14:51:00]RAPDU: 90 00 [14:51:00]wFMCommunicate OK [14:51:00]wFMCommunicate request_size=255 [14:51:00]MH_SAM_APDU [14:51:00]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 57 7B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [14:51:00]Write to MH i2c: E2 02 01 3C 27 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 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 57 7B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 30 [14:51:00]Write i2c OK [14:51:00]MH_I2C_Read... [14:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:00]Read from MH i2c: E2 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: E2 03 00 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: E2 03 00 3C 27 00 90 00 D7 [14:51:00]RAPDU: 90 00 [14:51:00]wFMCommunicate OK [14:51:00]wFMCommunicate request_size=41 [14:51:00]MH_SAM_APDU [14:51:00]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AB FA 00 00 35 04 06 00 48 58 70 F8 C8 55 [14:51:00]Write to MH i2c: E2 2C 00 3D 27 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AB FA 00 00 35 04 06 00 48 58 70 F8 C8 55 00 00 76 [14:51:00]Write i2c OK [14:51:00]MH_I2C_Read... [14:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:00]Read from MH i2c: E2 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: E2 03 00 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: E2 03 00 3D 27 00 90 00 D8 [14:51:00]RAPDU: 90 00 [14:51:00]wFMCommunicate OK [14:51:00]wFMCommunicate request_size=4 [14:51:00]MH_SAM_APDU [14:51:00]CAPDU: 80 0D 03 02 [14:51:00]Write to MH i2c: E2 08 00 3E 27 80 0D 03 02 00 00 00 00 E0 [14:51:00]Write i2c OK [14:51:00]MH_I2C_Read... [14:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:00]Read from MH i2c: E2 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: E2 0B 00 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: E2 0B 00 3E 27 00 4D 19 75 93 98 7D D6 47 90 00 81 [14:51:00]RAPDU: 4D 19 75 93 98 7D D6 47 90 00 [14:51:00]wFMCommunicate OK [14:51:00]SAM_PROTO_SignData done [14:51:00]FM_MakeSignedData done [14:51:00]CreateOFDProtocolMessage [14:51:00]wFMCommunicate request_size=4 [14:51:00]MH_SAM_APDU [14:51:00]CAPDU: 80 11 00 00 [14:51:00]Write to MH i2c: E2 08 00 3F 27 80 11 00 00 00 00 00 00 E0 [14:51:00]Write i2c OK [14:51:00]MH_I2C_Read... [14:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:00]Read from MH i2c: E2 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: E2 17 00 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: E2 17 00 3F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 32 [14:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:51:00]wFMCommunicate OK [14:51:00]CreateOFDProtocolMessage done [14:51:00]OFDSenderStorePacket 64171 [14:51:00]StoreOFDPacket docnum=64171 [14:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 77 56 26 01 FC 3C 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 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 57 7B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AB FA 00 00 35 04 06 00 48 58 70 F8 C8 55 4D 19 75 93 98 7D D6 47 [14:51:00]CheckFolder [14:51:00]dirname=/storage/ofd_packets [14:51:00]CheckFolder done [14:51:00]ProducePacketName [14:51:00]name=ofd_packets/00064171 [14:51:00]NVStorageSaveData ofd_packets/00064171 [14:51:00]File name is /storage/ofd_packets/00064171 [14:51:00]Write 332 bytes [14:51:00]NVStorageSaveData done [14:51:00]OFDSenderStorePacket done [14:51:00]KKMCreateOFDPacket done [14:51:00]NVStorageSaveData kkm_last_timestamp [14:51:00]File name is /storage/kkm_last_timestamp [14:51:00]Write 4 bytes [14:51:00]NVStorageSaveData done [14:51:00]ExternCall_PrintAddStr [14:51:00]wPrintStart [14:51:00]Write to MH i2c: 01 00 00 40 27 67 [14:51:00]Write i2c OK [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: 01 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: 01 07 00 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: 01 07 00 40 27 00 00 00 00 00 FF 0F 7C [14:51:00]RasterBufferAndPrint [14:51:00]line Счет N : (3)73701 [14:51:00]line ИНН: 02508201610067 [14:51:00]line Контрольно-Кассовый Чек [14:51:00]line ПРОДАЖА [14:51:00]line Товар: 2000034730018 [14:51:00]line Кофе Американо (GABB TRADE) [14:51:00]line 2.000 * 75.00 [14:51:00]line = 150.00 [14:51:00]line НДС 12% НСП 1% [14:51:00]line > о реализуемом товаре [14:51:00]line ИТОГО: 150.00 [14:51:00]line НСП 1% : 1.33 [14:51:00]line НДС 12% : 15.93 [14:51:00]line Наличными: 150.00 [14:51:00]line Безнал.: 0.00 [14:51:00]line Место: АЗС № 117 "Партнер Нефть" [14:51:00]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:51:00]line СНО: Общий режим [14:51:00]line Чек 91 05.06.2024 14:51 [14:51:00]line Смена: 375 ФФД: 1.0 [14:51:00]line ЗНМ: 0300000031 [14:51:00]line РНМ: 0000000000092737 [14:51:00]line Версия ККМ: 001 [14:51:00]line ФМ: 0000000000875074 [14:51:00]line ФД: 64171 [14:51:00]line ФПД: 79544689674325 [14:51:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T145103&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64171&fm=79544689674325&tin=02508201610067®Number=0000000000092737&sum=15000 [14:51:01]line 0 [14:51:01]OFD Sender: Processing packet 64171 [packets to send 14, broken 13] [14:51:01]ProducePacketName [14:51:01]name=ofd_packets/00064171 [14:51:01]OFD Sender: To server: pG, [14:51:01]CommunicateWithHost lk.salyk.kg:30040 [14:51:01]ConnectInit lk.salyk.kg [14:51:01]written 0, free lines is 4095 [14:51:01]Connected sock=10 [14:51:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 77 56 26 01 FC 3C 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 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 57 7B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AB FA 00 00 35 04 06 00 48 58 70 F8 C8 55 4D 19 75 93 98 7D D6 47 [14:51:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 45 8A 47 00 DA 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AB FA 00 00 F4 03 04 00 62 27 60 66 B6 04 01 00 00 2E 9B 01 8E 77 09 19 56 [14:51:01]CommunicateWithHost err = 0 [14:51:01]CheckOFDResponse [14:51:01]1017 (14) - 77093643461234 [14:51:01]1041 (16) - 0000000000875074 [14:51:01]1040 (4) - 64171 [14:51:01]1012 (4) - 05.06.2024 08:52 [14:51:01]1206 (1) - 0 [14:51:01]OFD Sender: Remove packet 64171 [14:51:01]ProducePacketName [14:51:01]name=ofd_packets/00064171 [14:51:01]NVStorageDeleteData [14:51:01]Write to MH i2c: 01 00 00 69 27 90 [14:51:01]Write i2c OK [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: 01 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: 01 07 00 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: 01 07 00 69 27 00 00 00 00 00 ED 0C 90 [14:51:01]RasterBufferAndPrint [14:51:01]line [14:51:01]line [14:51:01]line [14:51:01]line [14:51:01]line [14:51:01]written 0, free lines is 3318 [14:51:01]MH_Cut [14:51:01]Write to MH i2c: D1 01 00 70 27 01 69 [14:51:01]Write i2c OK [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: D1 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: D1 01 00 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: D1 01 00 70 27 00 68 [14:51:01]Write to MH i2c: 01 00 00 71 27 98 [14:51:01]Write i2c OK [14:51:01]MH_I2C_Read... [14:51:02]OFD Sender: No OFD packet to send [14:51:02]*** Cut start [14:51:02]*** Partial cut [14:51:02]*** CUTSNS_PIN = 1 [14:51:02]*** CUTSNS_PIN = 0 [14:51:02]*** Brake cut motor [14:51:03]Read from MH i2c: 01 [14:51:03]MH_I2C_Read... [14:51:03]*** Stop cut motor [14:51:03]*** Cut end [14:51:03]Read from MH i2c: 01 07 00 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: 01 07 00 71 27 00 00 00 00 00 FF 0F AD [14:51:03]process_action close_receipt done [14:51:03]requested_data is exist [14:51:03]produce_requested_data [14:51:03]requested_item fm.sn is exist - process it [14:51:03]wFMCommunicate request_size=4 [14:51:03]MH_SAM_APDU [14:51:03]CAPDU: 80 11 00 00 [14:51:03]Write to MH i2c: E2 08 00 72 27 80 11 00 00 00 00 00 00 13 [14:51:03]Write i2c OK [14:51:03]MH_I2C_Read... [14:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:03]Read from MH i2c: E2 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: E2 17 00 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: E2 17 00 72 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 65 [14:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:51:03]wFMCommunicate OK [14:51:03]requested_item fd.num is exist - process it [14:51:03]SAM_PROTO_GetFieldsCounters [14:51:03]wFMCommunicate request_size=4 [14:51:03]MH_SAM_APDU [14:51:03]CAPDU: 80 13 00 00 [14:51:03]Write to MH i2c: E2 08 00 73 27 80 13 00 00 00 00 00 00 16 [14:51:03]Write i2c OK [14:51:03]MH_I2C_Read... [14:51:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:03]Read from MH i2c: E2 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: E2 62 00 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: E2 62 00 73 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AB FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [14:51:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AB FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:03]wFMCommunicate OK [14:51:03]SAM_PROTO_GetFieldsCounters done [14:51:03]requested_item shift.num is exist - process it [14:51:03]requested_item shift.opened is exist - process it [14:51:03]req_shift_opened [14:51:03]FM_GetShiftState [14:51:03]SAM_PROTO_GetShiftState [14:51:03]wFMCommunicate request_size=4 [14:51:03]MH_SAM_APDU [14:51:03]CAPDU: 80 13 01 00 [14:51:03]Write to MH i2c: E2 08 00 74 27 80 13 01 00 00 00 00 00 18 [14:51:03]Write i2c OK [14:51:03]MH_I2C_Read... [14:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:03]Read from MH i2c: E2 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: E2 0E 00 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: E2 0E 00 74 27 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 59 [14:51:03]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:51:03]wFMCommunicate OK [14:51:03]SAM_PROTO_GetShiftState done [14:51:03]FM_GetShiftState done [14:51:03]req_shift_opened done [14:51:03]requested_item shift.open_date is exist - process it [14:51:03]req_shift_open_date [14:51:03]req_shift_open_date done [14:51:03]produce_requested_data done [14:51:03]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64171,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [14:51:03]process_action_free close_receipt [14:51:03]json_value_free [14:51:03]json_value_free done [14:51:03]process_json_proto returns [14:51:03]Send response to host [14:51:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64171,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [14:51:03]free response buf [14:51:03]execute_script done [14:51:03]execute_script returns [14:51:03]free content buf [14:51:03]Sock 9.Close socket [14:51:03]Sock 9.Thread stoped [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:04]accept exits with 8 [14:53:04]New connection [14:53:04]New thread 3067133284 created [14:53:04]Thread 3067276644 joined [14:53:04]Waiting for new connection... [14:53:04] Sock 8.Parse request [14:53:04]Sock 8.Check first char [14:53:04]Sock 8.First char is OK [14:53:04]request: POST /json_proto HTTP/1.0 [14:53:04]Method: POST [14:53:04]URL: /json_proto [14:53:04]Method is POST - this is cgi request [14:53:04]url: /json_proto [14:53:04]query_string will be loaded in cgi processing [14:53:04]execute_cgi json_proto POST (null) [14:53:04]execute_cgi path=json_proto method=POST [14:53:04]POST find Content-Length [14:53:04]Host: 172.17.60.69:8080 [14:53:04]Content-Length: 948 [14:53:04]Content-Type: application/json [14:53:04] [14:53:04]POST finish read [14:53:04]Found Content-Length = 948 [14:53:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73702", "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" : 113.00, "quantity" : 1.000, "sum" : 113.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" : 1.000, "sum" : 7.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" ] } } [14:53:04]execute_script... [14:53: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)73702", "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" : 113.00, "quantity" : 1.000, "sum" : 113.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" : 1.000, "sum" : 7.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" ] } } [14:53:04]POST & json_proto [14:53:04]process_json_proto [14:53:04]json parsed OK: [14:53:04]protocol is kg_v1.0 [14:53:04]action value=close_receipt [14:53:04]process_action close_receipt [14:53:04]cmd_close_receipt [14:53:04]MH_GetDate [14:53:04]Write to MH i2c: F0 00 00 75 27 8B [14:53:04]Write i2c OK [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: F0 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: F0 09 00 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: F0 09 00 75 27 00 D4 7B 60 66 D2 83 5F 66 C3 [14:53:04]GetLastDocTimeStamp 1717599063 [14:53:04]current date 1717599188 [14:53:04]FM_GetShiftState [14:53:04]SAM_PROTO_GetShiftState [14:53:04]wFMCommunicate request_size=4 [14:53:04]MH_SAM_APDU [14:53:04]CAPDU: 80 13 01 00 [14:53:04]Write to MH i2c: E2 08 00 76 27 80 13 01 00 00 00 00 00 1A [14:53:04]Write i2c OK [14:53:04]MH_I2C_Read... [14:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:04]Read from MH i2c: E2 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 0E 00 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 0E 00 76 27 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 5B [14:53:04]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:53:04]wFMCommunicate OK [14:53:04]SAM_PROTO_GetShiftState done [14:53:04]FM_GetShiftState done [14:53:04]opened in 1717545925 [14:53:04]opened+sec_in_day 1717632325 [14:53:04]quantity*price = 11300 [14:53:04]sum+1 = 11301 [14:53:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 1.000 * 7.00 = 7.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 92 05.06.2024 14:53 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64172 ФПД: 76277437064911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T145308&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64172&fm=76277437064911&tin=02508201610067®Number=0000000000092737&sum=12000 0 [14:53:05]StoreToDocumentArchive [14:53:05]shift 375 fd 64172 [14:53:05]save to /storage/0375/doc_00064172 [14:53:05]save last doc name /storage/0375/doc_00064172 to /storage/kkm_last_doc_name [14:53:05]save OK [14:53:05]Clear old archive folders... [14:53:05]ProcessDocumentItem done err = 0, tmpTLVsize=395 [14:53:05]tlvbuf is B6FA7290 [14:53:05]SAM_PROTO_ClearQueue [14:53:05]wFMCommunicate request_size=4 [14:53:05]MH_SAM_APDU [14:53:05]CAPDU: 80 09 00 00 [14:53:05]Write to MH i2c: E2 08 00 83 27 80 09 00 00 00 00 00 00 1C [14:53:05]Write i2c OK [14:53:05]MH_I2C_Read... [14:53:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:05]Read from MH i2c: E2 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: E2 03 00 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: E2 03 00 83 27 00 90 00 1E [14:53:05]RAPDU: 90 00 [14:53:05]wFMCommunicate OK [14:53:05]SAM_PROTO_ClearQueue done [14:53:05]KKMCreateOFDPacket [14:53:05]OFDProtocolAddRootSTLVToBuf [14:53:05]FM_MakeSignedData [14:53:05]FM_MakeSignedData [14:53:05]SAM_PROTO_SignData [14:53:05]wFMCommunicate request_size=4 [14:53:05]MH_SAM_APDU [14:53:05]CAPDU: 80 0D 01 02 [14:53:05]Write to MH i2c: E2 08 00 84 27 80 0D 01 02 00 00 00 00 24 [14:53:05]Write i2c OK [14:53:05]MH_I2C_Read... [14:53:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:05]Read from MH i2c: E2 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: E2 03 00 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: E2 03 00 84 27 00 90 00 1F [14:53:05]RAPDU: 90 00 [14:53:05]wFMCommunicate OK [14:53:05]wFMCommunicate request_size=255 [14:53:05]MH_SAM_APDU [14:53:05]CAPDU: 80 0D 02 02 FA 03 00 8B 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 24 2C 00 00 00 00 13 04 06 00 24 2C 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 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 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 [14:53:05]Write to MH i2c: E2 02 01 85 27 80 0D 02 02 FA 00 03 00 8B 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 24 2C 00 00 00 00 13 04 06 00 24 2C 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 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 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 00 00 4A [14:53:05]Write i2c OK [14:53:05]MH_I2C_Read... [14:53:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:05]Read from MH i2c: E2 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: E2 03 00 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: E2 03 00 85 27 00 90 00 20 [14:53:05]RAPDU: 90 00 [14:53:05]wFMCommunicate OK [14:53:05]wFMCommunicate request_size=154 [14:53:05]MH_SAM_APDU [14:53:05]CAPDU: 80 0D 02 02 95 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 5C 00 00 00 F4 03 04 00 D4 7B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AC FA 00 00 35 04 06 00 45 5F B9 8A 66 CF [14:53:05]Write to MH i2c: E2 9D 00 86 27 80 0D 02 02 95 00 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 5C 00 00 00 F4 03 04 00 D4 7B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AC FA 00 00 35 04 06 00 45 5F B9 8A 66 CF 00 00 AB [14:53:05]Write i2c OK [14:53:05]MH_I2C_Read... [14:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:06]Read from MH i2c: E2 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: E2 03 00 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: E2 03 00 86 27 00 90 00 21 [14:53:06]RAPDU: 90 00 [14:53:06]wFMCommunicate OK [14:53:06]wFMCommunicate request_size=4 [14:53:06]MH_SAM_APDU [14:53:06]CAPDU: 80 0D 03 02 [14:53:06]Write to MH i2c: E2 08 00 87 27 80 0D 03 02 00 00 00 00 29 [14:53:06]Write i2c OK [14:53:06]MH_I2C_Read... [14:53:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:06]Read from MH i2c: E2 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: E2 0B 00 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: E2 0B 00 87 27 00 05 65 F8 F1 3F AC F3 D6 90 00 31 [14:53:06]RAPDU: 05 65 F8 F1 3F AC F3 D6 90 00 [14:53:06]wFMCommunicate OK [14:53:06]SAM_PROTO_SignData done [14:53:06]FM_MakeSignedData done [14:53:06]CreateOFDProtocolMessage [14:53:06]wFMCommunicate request_size=4 [14:53:06]MH_SAM_APDU [14:53:06]CAPDU: 80 11 00 00 [14:53:06]Write to MH i2c: E2 08 00 88 27 80 11 00 00 00 00 00 00 29 [14:53:06]Write i2c OK [14:53:06]MH_I2C_Read... [14:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:06]Read from MH i2c: E2 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: E2 17 00 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: E2 17 00 88 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7B [14:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:53:06]wFMCommunicate OK [14:53:06]CreateOFDProtocolMessage done [14:53:06]OFDSenderStorePacket 64172 [14:53:06]StoreOFDPacket docnum=64172 [14:53:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 9F 01 00 00 8C 0E 97 01 4D 0D 5A 03 01 00 03 00 8B 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 24 2C 00 00 00 00 13 04 06 00 24 2C 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 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 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 5C 00 00 00 F4 03 04 00 D4 7B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AC FA 00 00 35 04 06 00 45 5F B9 8A 66 CF 05 65 F8 F1 3F AC F3 D6 [14:53:06]CheckFolder [14:53:06]dirname=/storage/ofd_packets [14:53:06]CheckFolder done [14:53:06]ProducePacketName [14:53:06]name=ofd_packets/00064172 [14:53:06]NVStorageSaveData ofd_packets/00064172 [14:53:06]File name is /storage/ofd_packets/00064172 [14:53:06]Write 445 bytes [14:53:06]NVStorageSaveData done [14:53:06]OFDSenderStorePacket done [14:53:06]KKMCreateOFDPacket done [14:53:06]NVStorageSaveData kkm_last_timestamp [14:53:06]File name is /storage/kkm_last_timestamp [14:53:06]Write 4 bytes [14:53:06]NVStorageSaveData done [14:53:06]ExternCall_PrintAddStr [14:53:06]wPrintStart [14:53:06]Write to MH i2c: 01 00 00 89 27 B0 [14:53:06]Write i2c OK [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: 01 [14:53:06]MH_I2C_Read... [14:53:06]OFD Sender: Processing packet 64172 [packets to send 14, broken 13] [14:53:06]ProducePacketName [14:53:06]name=ofd_packets/00064172 [14:53:06]OFD Sender: To server: pG, [14:53:06]CommunicateWithHost lk.salyk.kg:30040 [14:53:06]ConnectInit lk.salyk.kg [14:53:06]Read from MH i2c: 01 07 00 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: 01 07 00 89 27 00 00 00 00 00 FF 0F C5 [14:53:06]RasterBufferAndPrint [14:53:06]line Счет N : (3)73702 [14:53:06]line ИНН: 02508201610067 [14:53:06]line Контрольно-Кассовый Чек [14:53:06]line ПРОДАЖА [14:53:06]line Товар: 5449000054227 [14:53:06]line Напиток Кока-Кола 1л [14:53:06]line 1.000 * 113.00 [14:53:06]line = 113.00 [14:53:06]line НДС 12% НСП 1% [14:53:06]line > о реализуемом товаре [14:53:06]line Товар: 2000053020015 [14:53:06]line Бумажные стаканы 250мл 1шт [14:53:06]line 1.000 * 7.00 [14:53:06]line = 7.00 [14:53:06]line НДС 12% НСП 1% [14:53:06]line > о реализуемом товаре [14:53:06]line ИТОГО: 120.00 [14:53:06]line НСП 1% : 1.06 [14:53:06]line НДС 12% : 12.74 [14:53:06]line Наличными: 120.00 [14:53:06]line Безнал.: 0.00 [14:53:06]line Место: АЗС № 117 "Партнер Нефть" [14:53:06]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:53:06]line СНО: Общий режим [14:53:06]line Чек 92 05.06.2024 14:53 [14:53:06]line Смена: 375 ФФД: 1.0 [14:53:06]line ЗНМ: 0300000031 [14:53:06]line РНМ: 0000000000092737 [14:53:06]line Версия ККМ: 001 [14:53:06]line ФМ: 0000000000875074 [14:53:06]line ФД: 64172 [14:53:06]line ФПД: 76277437064911 [14:53:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T145308&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64172&fm=76277437064911&tin=02508201610067®Number=0000000000092737&sum=12000 [14:53:06]line 0 [14:53:06]written 0, free lines is 4095 [14:53:06]Connected sock=10 [14:53:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 9F 01 00 00 8C 0E 97 01 4D 0D 5A 03 01 00 03 00 8B 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 24 2C 00 00 00 00 13 04 06 00 24 2C 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 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 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 5C 00 00 00 F4 03 04 00 D4 7B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AC FA 00 00 35 04 06 00 45 5F B9 8A 66 CF 05 65 F8 F1 3F AC F3 D6 [14:53:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D6 70 47 00 EA D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AC FA 00 00 F4 03 04 00 DF 27 60 66 B6 04 01 00 00 DF 81 CA 9B 64 7D EF 96 [14:53:06]CommunicateWithHost err = 0 [14:53:06]CheckOFDResponse [14:53:06]1017 (14) - 77093643461234 [14:53:06]1041 (16) - 0000000000875074 [14:53:06]1040 (4) - 64172 [14:53:06]1012 (4) - 05.06.2024 08:54 [14:53:06]1206 (1) - 0 [14:53:06]OFD Sender: Remove packet 64172 [14:53:06]ProducePacketName [14:53:06]name=ofd_packets/00064172 [14:53:06]NVStorageDeleteData [14:53:07]Write to MH i2c: 01 00 00 B8 27 DF [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: 01 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: 01 07 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: 01 07 00 B8 27 00 00 00 00 00 68 0C 5A [14:53:07]RasterBufferAndPrint [14:53:07]line [14:53:07]line [14:53:07]line [14:53:07]line [14:53:07]line [14:53:07]written 0, free lines is 3182 [14:53:07]MH_Cut [14:53:07]Write to MH i2c: D1 01 00 BF 27 01 B8 [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: D1 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: D1 01 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: D1 01 00 BF 27 00 B7 [14:53:07]Write to MH i2c: 01 00 00 C0 27 E7 [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]OFD Sender: No OFD packet to send [14:53:07]*** Cut start [14:53:07]*** Partial cut [14:53:07]*** CUTSNS_PIN = 1 [14:53:07]*** CUTSNS_PIN = 0 [14:53:08]*** Brake cut motor [14:53:08]Read from MH i2c: 01 [14:53:08]MH_I2C_Read... [14:53:08]*** Stop cut motor [14:53:08]*** Cut end [14:53:08]Read from MH i2c: 01 07 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: 01 07 00 C0 27 00 00 00 00 00 FF 0F FC [14:53:08]process_action close_receipt done [14:53:08]requested_data is exist [14:53:08]produce_requested_data [14:53:08]requested_item fm.sn is exist - process it [14:53:08]wFMCommunicate request_size=4 [14:53:08]MH_SAM_APDU [14:53:08]CAPDU: 80 11 00 00 [14:53:08]Write to MH i2c: E2 08 00 C1 27 80 11 00 00 00 00 00 00 62 [14:53:08]Write i2c OK [14:53:08]MH_I2C_Read... [14:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:08]Read from MH i2c: E2 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 17 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 17 00 C1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B4 [14:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:53:08]wFMCommunicate OK [14:53:08]requested_item fd.num is exist - process it [14:53:08]SAM_PROTO_GetFieldsCounters [14:53:08]wFMCommunicate request_size=4 [14:53:08]MH_SAM_APDU [14:53:08]CAPDU: 80 13 00 00 [14:53:08]Write to MH i2c: E2 08 00 C2 27 80 13 00 00 00 00 00 00 65 [14:53:08]Write i2c OK [14:53:08]MH_I2C_Read... [14:53:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:08]Read from MH i2c: E2 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 62 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 62 00 C2 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AC FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [14:53:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AC FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:08]wFMCommunicate OK [14:53:08]SAM_PROTO_GetFieldsCounters done [14:53:08]requested_item shift.num is exist - process it [14:53:08]requested_item shift.opened is exist - process it [14:53:08]req_shift_opened [14:53:08]FM_GetShiftState [14:53:08]SAM_PROTO_GetShiftState [14:53:08]wFMCommunicate request_size=4 [14:53:08]MH_SAM_APDU [14:53:08]CAPDU: 80 13 01 00 [14:53:08]Write to MH i2c: E2 08 00 C3 27 80 13 01 00 00 00 00 00 67 [14:53:08]Write i2c OK [14:53:08]MH_I2C_Read... [14:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:08]Read from MH i2c: E2 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 0E 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 0E 00 C3 27 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 A8 [14:53:08]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:53:08]wFMCommunicate OK [14:53:08]SAM_PROTO_GetShiftState done [14:53:08]FM_GetShiftState done [14:53:08]req_shift_opened done [14:53:08]requested_item shift.open_date is exist - process it [14:53:08]req_shift_open_date [14:53:08]req_shift_open_date done [14:53:08]produce_requested_data done [14:53:08]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64172,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [14:53:08]process_action_free close_receipt [14:53:08]json_value_free [14:53:08]json_value_free done [14:53:08]process_json_proto returns [14:53:08]Send response to host [14:53:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64172,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [14:53:08]free response buf [14:53:08]execute_script done [14:53:08]execute_script returns [14:53:08]free content buf [14:53:08]Sock 8.Close socket [14:53:08]Sock 8.Thread stoped [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:00]accept exits with 9 [14:57:00]New connection [14:57:00]New thread 3067276644 created [14:57:00]Thread 3067133284 joined [14:57:00]Waiting for new connection... [14:57:00] Sock 9.Parse request [14:57:00]Sock 9.Check first char [14:57:00]Sock 9.First char is OK [14:57:00]request: POST /json_proto HTTP/1.0 [14:57:00]Method: POST [14:57:00]URL: /json_proto [14:57:00]Method is POST - this is cgi request [14:57:00]url: /json_proto [14:57:00]query_string will be loaded in cgi processing [14:57:00]execute_cgi json_proto POST (null) [14:57:00]execute_cgi path=json_proto method=POST [14:57:00]POST find Content-Length [14:57:00]Host: 172.17.60.69:8080 [14:57:00]Content-Length: 733 [14:57:00]Content-Type: application/json [14:57:00] [14:57:00]POST finish read [14:57:00]Found Content-Length = 733 [14:57:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73703", "tax_sys" : 0, "items" : [ { "code": "0010420131003133", "name": "\u0423\u0433\u043E\u043B\u044C \u0434\u0440\u0435\u0432\u0435\u0441\u043D\u044B\u0439 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C 3\u043A\u0433", "price" : 395.00, "quantity" : 1.000, "sum" : 395.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:00]execute_script... [14:57: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)73703", "tax_sys" : 0, "items" : [ { "code": "0010420131003133", "name": "\u0423\u0433\u043E\u043B\u044C \u0434\u0440\u0435\u0432\u0435\u0441\u043D\u044B\u0439 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C 3\u043A\u0433", "price" : 395.00, "quantity" : 1.000, "sum" : 395.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:00]POST & json_proto [14:57:00]process_json_proto [14:57:00]json parsed OK: [14:57:00]protocol is kg_v1.0 [14:57:00]action value=close_receipt [14:57:00]process_action close_receipt [14:57:00]cmd_close_receipt [14:57:00]MH_GetDate [14:57:00]Write to MH i2c: F0 00 00 C4 27 DA [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: F0 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: F0 09 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: F0 09 00 C4 27 00 C0 7C 60 66 D2 83 5F 66 FF [14:57:00]GetLastDocTimeStamp 1717599188 [14:57:00]current date 1717599424 [14:57:00]FM_GetShiftState [14:57:00]SAM_PROTO_GetShiftState [14:57:00]wFMCommunicate request_size=4 [14:57:00]MH_SAM_APDU [14:57:00]CAPDU: 80 13 01 00 [14:57:00]Write to MH i2c: E2 08 00 C5 27 80 13 01 00 00 00 00 00 69 [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:00]Read from MH i2c: E2 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 0E 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 0E 00 C5 27 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 AA [14:57:00]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:57:00]wFMCommunicate OK [14:57:00]SAM_PROTO_GetShiftState done [14:57:00]FM_GetShiftState done [14:57:00]opened in 1717545925 [14:57:00]opened+sec_in_day 1717632325 [14:57:00]quantity*price = 39500 [14:57:00]sum+1 = 39501 [14:57:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 395.00 НСП 1% : 3.50 НДС 12% : 41.95 Наличными: 395.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 93 05.06.2024 14:57 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64173 ФПД: 249239381360824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T145704&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64173&fm=249239381360824&tin=02508201610067®Number=0000000000092737&sum=39500 0 [14:57:01]StoreToDocumentArchive [14:57:01]shift 375 fd 64173 [14:57:01]save to /storage/0375/doc_00064173 [14:57:01]save last doc name /storage/0375/doc_00064173 to /storage/kkm_last_doc_name [14:57:01]save OK [14:57:01]Clear old archive folders... [14:57:01]ProcessDocumentItem done err = 0, tmpTLVsize=306 [14:57:01]tlvbuf is 01106360 [14:57:01]SAM_PROTO_ClearQueue [14:57:01]wFMCommunicate request_size=4 [14:57:01]MH_SAM_APDU [14:57:01]CAPDU: 80 09 00 00 [14:57:01]Write to MH i2c: E2 08 00 D2 27 80 09 00 00 00 00 00 00 6B [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:01]Read from MH i2c: E2 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 03 00 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 03 00 D2 27 00 90 00 6D [14:57:01]RAPDU: 90 00 [14:57:01]wFMCommunicate OK [14:57:01]SAM_PROTO_ClearQueue done [14:57:01]KKMCreateOFDPacket [14:57:01]OFDProtocolAddRootSTLVToBuf [14:57:01]FM_MakeSignedData [14:57:01]FM_MakeSignedData [14:57:01]SAM_PROTO_SignData [14:57:01]wFMCommunicate request_size=4 [14:57:01]MH_SAM_APDU [14:57:01]CAPDU: 80 0D 01 02 [14:57:01]Write to MH i2c: E2 08 00 D3 27 80 0D 01 02 00 00 00 00 73 [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:01]Read from MH i2c: E2 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 03 00 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 03 00 D3 27 00 90 00 6E [14:57:01]RAPDU: 90 00 [14:57:01]wFMCommunicate OK [14:57:01]wFMCommunicate request_size=255 [14:57:01]MH_SAM_APDU [14:57:01]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 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 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C0 7C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 [14:57:01]Write to MH i2c: E2 02 01 D4 27 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 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 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C0 7C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 00 5E [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:01]Read from MH i2c: E2 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 03 00 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 03 00 D4 27 00 90 00 6F [14:57:01]RAPDU: 90 00 [14:57:01]wFMCommunicate OK [14:57:01]wFMCommunicate request_size=65 [14:57:01]MH_SAM_APDU [14:57:01]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AD FA 00 00 35 04 06 00 E2 AE 90 CA 40 B8 [14:57:01]Write to MH i2c: E2 44 00 D5 27 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AD FA 00 00 35 04 06 00 E2 AE 90 CA 40 B8 00 00 50 [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:01]Read from MH i2c: E2 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 03 00 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 03 00 D5 27 00 90 00 70 [14:57:01]RAPDU: 90 00 [14:57:01]wFMCommunicate OK [14:57:01]wFMCommunicate request_size=4 [14:57:01]MH_SAM_APDU [14:57:01]CAPDU: 80 0D 03 02 [14:57:01]Write to MH i2c: E2 08 00 D6 27 80 0D 03 02 00 00 00 00 78 [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:01]Read from MH i2c: E2 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 0B 00 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 0B 00 D6 27 00 AB 1E 6C 77 DF 40 E0 3F 90 00 63 [14:57:01]RAPDU: AB 1E 6C 77 DF 40 E0 3F 90 00 [14:57:01]wFMCommunicate OK [14:57:01]SAM_PROTO_SignData done [14:57:01]FM_MakeSignedData done [14:57:01]CreateOFDProtocolMessage [14:57:01]wFMCommunicate request_size=4 [14:57:01]MH_SAM_APDU [14:57:01]CAPDU: 80 11 00 00 [14:57:01]Write to MH i2c: E2 08 00 D7 27 80 11 00 00 00 00 00 00 78 [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:01]Read from MH i2c: E2 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 17 00 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 17 00 D7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CA [14:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:57:01]wFMCommunicate OK [14:57:01]CreateOFDProtocolMessage done [14:57:01]OFDSenderStorePacket 64173 [14:57:01]StoreOFDPacket docnum=64173 [14:57:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 46 01 00 00 69 13 3E 01 0E 28 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 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 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C0 7C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AD FA 00 00 35 04 06 00 E2 AE 90 CA 40 B8 AB 1E 6C 77 DF 40 E0 3F [14:57:01]CheckFolder [14:57:01]dirname=/storage/ofd_packets [14:57:01]CheckFolder done [14:57:01]ProducePacketName [14:57:01]name=ofd_packets/00064173 [14:57:01]NVStorageSaveData ofd_packets/00064173 [14:57:01]File name is /storage/ofd_packets/00064173 [14:57:01]Write 356 bytes [14:57:01]NVStorageSaveData done [14:57:02]OFDSenderStorePacket done [14:57:02]KKMCreateOFDPacket done [14:57:02]NVStorageSaveData kkm_last_timestamp [14:57:02]File name is /storage/kkm_last_timestamp [14:57:02]Write 4 bytes [14:57:02]NVStorageSaveData done [14:57:02]ExternCall_PrintAddStr [14:57:02]wPrintStart [14:57:02]Write to MH i2c: 01 00 00 D8 27 FF [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: 01 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: 01 07 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: 01 07 00 D8 27 00 00 00 00 00 FF 0F 14 [14:57:02]RasterBufferAndPrint [14:57:02]line Счет N : (3)73703 [14:57:02]line ИНН: 02508201610067 [14:57:02]line Контрольно-Кассовый Чек [14:57:02]line ПРОДАЖА [14:57:02]line Товар: 0010420131003133 [14:57:02]line Уголь древесный Партнер Нефть 3кг [14:57:02]line 1.000 * 395.00 [14:57:02]line = 395.00 [14:57:02]line НДС 12% НСП 1% [14:57:02]line > о реализуемом товаре [14:57:02]line ИТОГО: 395.00 [14:57:02]line НСП 1% : 3.50 [14:57:02]line НДС 12% : 41.95 [14:57:02]line Наличными: 395.00 [14:57:02]line Безнал.: 0.00 [14:57:02]line Место: АЗС № 117 "Партнер Нефть" [14:57:02]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:57:02]line СНО: Общий режим [14:57:02]line Чек 93 05.06.2024 14:57 [14:57:02]line Смена: 375 ФФД: 1.0 [14:57:02]line ЗНМ: 0300000031 [14:57:02]line РНМ: 0000000000092737 [14:57:02]line Версия ККМ: 001 [14:57:02]line ФМ: 0000000000875074 [14:57:02]line ФД: 64173 [14:57:02]line ФПД: 249239381360824 [14:57:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T145704&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64173&fm=249239381360824&tin=02508201610067®Number=0000000000092737&sum=39500 [14:57:02]line 0 [14:57:02]OFD Sender: Processing packet 64173 [packets to send 14, broken 13] [14:57:02]ProducePacketName [14:57:02]name=ofd_packets/00064173 [14:57:02]OFD Sender: To server: pG, [14:57:02]CommunicateWithHost lk.salyk.kg:30040 [14:57:02]ConnectInit lk.salyk.kg [14:57:02]written 0, free lines is 4095 [14:57:02]Connected sock=11 [14:57:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 46 01 00 00 69 13 3E 01 0E 28 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 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 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C0 7C 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AD FA 00 00 35 04 06 00 E2 AE 90 CA 40 B8 AB 1E 6C 77 DF 40 E0 3F [14:57:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C9 9A 47 00 00 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AD FA 00 00 F4 03 04 00 CB 28 60 66 B6 04 01 00 00 C0 47 40 7F 59 C9 6C AD [14:57:02]CommunicateWithHost err = 0 [14:57:02]CheckOFDResponse [14:57:02]1017 (14) - 77093643461234 [14:57:02]1041 (16) - 0000000000875074 [14:57:02]1040 (4) - 64173 [14:57:02]1012 (4) - 05.06.2024 08:58 [14:57:02]1206 (1) - 0 [14:57:02]OFD Sender: Remove packet 64173 [14:57:02]ProducePacketName [14:57:02]name=ofd_packets/00064173 [14:57:02]NVStorageDeleteData [14:57:02]Write to MH i2c: 01 00 00 01 28 29 [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: 01 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: 01 07 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: 01 07 00 01 28 00 00 00 00 00 CE 0C 0A [14:57:02]RasterBufferAndPrint [14:57:02]line [14:57:02]line [14:57:02]line [14:57:02]line [14:57:02]line [14:57:02]written 0, free lines is 3283 [14:57:02]MH_Cut [14:57:02]Write to MH i2c: D1 01 00 08 28 01 02 [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: D1 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: D1 01 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: D1 01 00 08 28 00 01 [14:57:02]Write to MH i2c: 01 00 00 09 28 31 [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:03]OFD Sender: No OFD packet to send [14:57:03]*** Cut start [14:57:03]*** Partial cut [14:57:03]*** CUTSNS_PIN = 1 [14:57:03]*** CUTSNS_PIN = 0 [14:57:03]*** Brake cut motor [14:57:04]Read from MH i2c: 01 [14:57:04]MH_I2C_Read... [14:57:04]*** Stop cut motor [14:57:04]*** Cut end [14:57:04]Read from MH i2c: 01 07 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: 01 07 00 09 28 00 00 00 00 00 FF 0F 46 [14:57:04]process_action close_receipt done [14:57:04]requested_data is exist [14:57:04]produce_requested_data [14:57:04]requested_item fm.sn is exist - process it [14:57:04]wFMCommunicate request_size=4 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 11 00 00 [14:57:04]Write to MH i2c: E2 08 00 0A 28 80 11 00 00 00 00 00 00 AC [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:04]Read from MH i2c: E2 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 17 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 17 00 0A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FE [14:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:57:04]wFMCommunicate OK [14:57:04]requested_item fd.num is exist - process it [14:57:04]SAM_PROTO_GetFieldsCounters [14:57:04]wFMCommunicate request_size=4 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 13 00 00 [14:57:04]Write to MH i2c: E2 08 00 0B 28 80 13 00 00 00 00 00 00 AF [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:04]Read from MH i2c: E2 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 62 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 62 00 0B 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AD FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [14:57:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AD FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:04]wFMCommunicate OK [14:57:04]SAM_PROTO_GetFieldsCounters done [14:57:04]requested_item shift.num is exist - process it [14:57:04]requested_item shift.opened is exist - process it [14:57:04]req_shift_opened [14:57:04]FM_GetShiftState [14:57:04]SAM_PROTO_GetShiftState [14:57:04]wFMCommunicate request_size=4 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 13 01 00 [14:57:04]Write to MH i2c: E2 08 00 0C 28 80 13 01 00 00 00 00 00 B1 [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:04]Read from MH i2c: E2 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 0E 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 0E 00 0C 28 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 F2 [14:57:04]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [14:57:04]wFMCommunicate OK [14:57:04]SAM_PROTO_GetShiftState done [14:57:04]FM_GetShiftState done [14:57:04]req_shift_opened done [14:57:04]requested_item shift.open_date is exist - process it [14:57:04]req_shift_open_date [14:57:04]req_shift_open_date done [14:57:04]produce_requested_data done [14:57:04]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64173,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [14:57:04]process_action_free close_receipt [14:57:04]json_value_free [14:57:04]json_value_free done [14:57:04]process_json_proto returns [14:57:04]Send response to host [14:57:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64173,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [14:57:04]free response buf [14:57:04]execute_script done [14:57:04]execute_script returns [14:57:04]free content buf [14:57:04]Sock 9.Close socket [14:57:04]Sock 9.Thread stoped [14:57:08]OFD Sender: No OFD packet to send [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]accept exits with 8 [15:00:38]New connection [15:00:38]New thread 3067133284 created [15:00:38]Thread 3067276644 joined [15:00:38]Waiting for new connection... [15:00:38] Sock 8.Parse request [15:00:38]Sock 8.Check first char [15:00:38]Sock 8.First char is OK [15:00:38]request: POST /json_proto HTTP/1.0 [15:00:38]Method: POST [15:00:38]URL: /json_proto [15:00:38]Method is POST - this is cgi request [15:00:38]url: /json_proto [15:00:38]query_string will be loaded in cgi processing [15:00:38]execute_cgi json_proto POST (null) [15:00:38]execute_cgi path=json_proto method=POST [15:00:38]POST find Content-Length [15:00:38]Host: 172.17.60.69:8080 [15:00:38]Content-Length: 829 [15:00:38]Content-Type: application/json [15:00:38] [15:00:38]POST finish read [15:00:38]Found Content-Length = 829 [15:00:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73704", "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 }]} ], "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" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:38]execute_script... [15:00:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73704", "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 }]} ], "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" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:38]POST & json_proto [15:00:38]process_json_proto [15:00:38]json parsed OK: [15:00:38]protocol is kg_v1.0 [15:00:38]action value=close_receipt [15:00:38]process_action close_receipt [15:00:38]cmd_close_receipt [15:00:38]MH_GetDate [15:00:38]Write to MH i2c: F0 00 00 0D 28 24 [15:00:38]Write i2c OK [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: F0 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: F0 09 00 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: F0 09 00 0D 28 00 9A 7D 60 66 D2 83 5F 66 24 [15:00:38]GetLastDocTimeStamp 1717599424 [15:00:38]current date 1717599642 [15:00:38]FM_GetShiftState [15:00:38]SAM_PROTO_GetShiftState [15:00:38]wFMCommunicate request_size=4 [15:00:38]MH_SAM_APDU [15:00:38]CAPDU: 80 13 01 00 [15:00:38]Write to MH i2c: E2 08 00 0E 28 80 13 01 00 00 00 00 00 B3 [15:00:38]Write i2c OK [15:00:38]MH_I2C_Read... [15:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:38]Read from MH i2c: E2 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: E2 0E 00 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: E2 0E 00 0E 28 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 F4 [15:00:38]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:00:38]wFMCommunicate OK [15:00:38]SAM_PROTO_GetShiftState done [15:00:38]FM_GetShiftState done [15:00:38]opened in 1717545925 [15:00:38]opened+sec_in_day 1717632325 [15:00:38]quantity*price = 11000 [15:00:38]sum+1 = 11001 [15:00:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 0.00 Безнал.: 110.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 94 05.06.2024 15:00 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64174 ФПД: 7194769883929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T150042&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64174&fm=7194769883929&tin=02508201610067®Number=0000000000092737&sum=11000 0 [15:00:39]StoreToDocumentArchive [15:00:39]shift 375 fd 64174 [15:00:39]save to /storage/0375/doc_00064174 [15:00:39]save last doc name /storage/0375/doc_00064174 to /storage/kkm_last_doc_name [15:00:39]save OK [15:00:39]Clear old archive folders... [15:00:39]ProcessDocumentItem done err = 0, tmpTLVsize=293 [15:00:39]tlvbuf is 0101FED0 [15:00:39]SAM_PROTO_ClearQueue [15:00:39]wFMCommunicate request_size=4 [15:00:39]MH_SAM_APDU [15:00:39]CAPDU: 80 09 00 00 [15:00:39]Write to MH i2c: E2 08 00 1B 28 80 09 00 00 00 00 00 00 B5 [15:00:39]Write i2c OK [15:00:39]MH_I2C_Read... [15:00:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:39]Read from MH i2c: E2 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 03 00 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 03 00 1B 28 00 90 00 B7 [15:00:39]RAPDU: 90 00 [15:00:39]wFMCommunicate OK [15:00:39]SAM_PROTO_ClearQueue done [15:00:39]KKMCreateOFDPacket [15:00:39]OFDProtocolAddRootSTLVToBuf [15:00:39]FM_MakeSignedData [15:00:39]FM_MakeSignedData [15:00:39]SAM_PROTO_SignData [15:00:39]wFMCommunicate request_size=4 [15:00:39]MH_SAM_APDU [15:00:39]CAPDU: 80 0D 01 02 [15:00:39]Write to MH i2c: E2 08 00 1C 28 80 0D 01 02 00 00 00 00 BD [15:00:39]Write i2c OK [15:00:39]MH_I2C_Read... [15:00:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:39]Read from MH i2c: E2 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 03 00 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 03 00 1C 28 00 90 00 B8 [15:00:39]RAPDU: 90 00 [15:00:39]wFMCommunicate OK [15:00:39]wFMCommunicate request_size=255 [15:00:39]MH_SAM_APDU [15:00:39]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 9A 7D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [15:00:39]Write to MH i2c: E2 02 01 1D 28 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 9A 7D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 8A [15:00:39]Write i2c OK [15:00:39]MH_I2C_Read... [15:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:39]Read from MH i2c: E2 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 03 00 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 03 00 1D 28 00 90 00 B9 [15:00:39]RAPDU: 90 00 [15:00:39]wFMCommunicate OK [15:00:39]wFMCommunicate request_size=52 [15:00:39]MH_SAM_APDU [15:00:39]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AE FA 00 00 35 04 06 00 06 8B 29 B4 03 19 [15:00:39]Write to MH i2c: E2 37 00 1E 28 80 0D 02 02 2F 00 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AE FA 00 00 35 04 06 00 06 8B 29 B4 03 19 00 00 B7 [15:00:39]Write i2c OK [15:00:39]MH_I2C_Read... [15:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:39]Read from MH i2c: E2 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 03 00 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 03 00 1E 28 00 90 00 BA [15:00:39]RAPDU: 90 00 [15:00:39]wFMCommunicate OK [15:00:39]wFMCommunicate request_size=4 [15:00:39]MH_SAM_APDU [15:00:39]CAPDU: 80 0D 03 02 [15:00:39]Write to MH i2c: E2 08 00 1F 28 80 0D 03 02 00 00 00 00 C2 [15:00:39]Write i2c OK [15:00:39]MH_I2C_Read... [15:00:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:39]Read from MH i2c: E2 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 0B 00 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 0B 00 1F 28 00 4F A7 AD 21 2F 44 9A 65 90 00 F9 [15:00:39]RAPDU: 4F A7 AD 21 2F 44 9A 65 90 00 [15:00:39]wFMCommunicate OK [15:00:39]SAM_PROTO_SignData done [15:00:39]FM_MakeSignedData done [15:00:39]CreateOFDProtocolMessage [15:00:39]wFMCommunicate request_size=4 [15:00:39]MH_SAM_APDU [15:00:39]CAPDU: 80 11 00 00 [15:00:39]Write to MH i2c: E2 08 00 20 28 80 11 00 00 00 00 00 00 C2 [15:00:39]Write i2c OK [15:00:39]MH_I2C_Read... [15:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:39]Read from MH i2c: E2 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 17 00 [15:00:39]MH_I2C_Read... [15:00:40]Read from MH i2c: E2 17 00 20 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 14 [15:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:00:40]wFMCommunicate OK [15:00:40]CreateOFDProtocolMessage done [15:00:40]OFDSenderStorePacket 64174 [15:00:40]StoreOFDPacket docnum=64174 [15:00:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 E6 02 31 01 13 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 9A 7D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AE FA 00 00 35 04 06 00 06 8B 29 B4 03 19 4F A7 AD 21 2F 44 9A 65 [15:00:40]CheckFolder [15:00:40]dirname=/storage/ofd_packets [15:00:40]CheckFolder done [15:00:40]ProducePacketName [15:00:40]name=ofd_packets/00064174 [15:00:40]NVStorageSaveData ofd_packets/00064174 [15:00:40]File name is /storage/ofd_packets/00064174 [15:00:40]Write 343 bytes [15:00:40]NVStorageSaveData done [15:00:40]OFDSenderStorePacket done [15:00:40]KKMCreateOFDPacket done [15:00:40]NVStorageSaveData kkm_last_timestamp [15:00:40]File name is /storage/kkm_last_timestamp [15:00:40]Write 4 bytes [15:00:40]NVStorageSaveData done [15:00:40]ExternCall_PrintAddStr [15:00:40]wPrintStart [15:00:40]Write to MH i2c: 01 00 00 21 28 49 [15:00:40]Write i2c OK [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: 01 [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: 01 07 00 [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: 01 07 00 21 28 00 00 00 00 00 FF 0F 5E [15:00:40]RasterBufferAndPrint [15:00:40]line Счет N : (3)73704 [15:00:40]line ИНН: 02508201610067 [15:00:40]line Контрольно-Кассовый Чек [15:00:40]line ПРОДАЖА [15:00:40]line Товар: 4870022003305 [15:00:40]line Напиток Gorilla эн нат ж/б 0,5/0,45л [15:00:40]line 1.000 * 110.00 [15:00:40]line = 110.00 [15:00:40]line НДС 12% НСП 1% [15:00:40]line > о реализуемом товаре [15:00:40]line ИТОГО: 110.00 [15:00:40]line НСП 1% : 0.97 [15:00:40]line НДС 12% : 11.68 [15:00:40]line Наличными: 0.00 [15:00:40]line Безнал.: 110.00 [15:00:40]line Место: АЗС № 117 "Партнер Нефть" [15:00:40]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:00:40]line СНО: Общий режим [15:00:40]line Чек 94 05.06.2024 15:00 [15:00:40]line Смена: 375 ФФД: 1.0 [15:00:40]line ЗНМ: 0300000031 [15:00:40]line РНМ: 0000000000092737 [15:00:40]line Версия ККМ: 001 [15:00:40]line Платежная система: O! деньги [15:00:40]line ФМ: 0000000000875074 [15:00:40]line ФД: 64174 [15:00:40]line ФПД: 7194769883929 [15:00:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T150042&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64174&fm=7194769883929&tin=02508201610067®Number=0000000000092737&sum=11000 [15:00:40]line 0 [15:00:40]OFD Sender: Processing packet 64174 [packets to send 14, broken 13] [15:00:40]ProducePacketName [15:00:40]name=ofd_packets/00064174 [15:00:40]OFD Sender: To server: pG, [15:00:40]CommunicateWithHost lk.salyk.kg:30040 [15:00:40]ConnectInit lk.salyk.kg [15:00:40]written 0, free lines is 4095 [15:00:40]Connected sock=10 [15:00:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 E6 02 31 01 13 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 9A 7D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AE FA 00 00 35 04 06 00 06 8B 29 B4 03 19 4F A7 AD 21 2F 44 9A 65 [15:00:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C7 9E 47 00 5F 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AE FA 00 00 F4 03 04 00 A5 29 60 66 B6 04 01 00 00 7F 45 07 01 0F F2 CF 20 [15:00:40]CommunicateWithHost err = 0 [15:00:40]CheckOFDResponse [15:00:40]1017 (14) - 77093643461234 [15:00:40]1041 (16) - 0000000000875074 [15:00:40]1040 (4) - 64174 [15:00:40]1012 (4) - 05.06.2024 09:02 [15:00:40]1206 (1) - 0 [15:00:40]OFD Sender: Remove packet 64174 [15:00:40]ProducePacketName [15:00:40]name=ofd_packets/00064174 [15:00:40]NVStorageDeleteData [15:00:40]Write to MH i2c: 01 00 00 4C 28 74 [15:00:40]Write i2c OK [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: 01 [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: 01 07 00 [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: 01 07 00 4C 28 00 00 00 00 00 C2 0C 49 [15:00:40]RasterBufferAndPrint [15:00:40]line [15:00:40]line [15:00:40]line [15:00:40]line [15:00:40]line [15:00:40]written 0, free lines is 3272 [15:00:40]MH_Cut [15:00:40]Write to MH i2c: D1 01 00 53 28 01 4D [15:00:40]Write i2c OK [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: D1 [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: D1 01 00 [15:00:40]MH_I2C_Read... [15:00:40]Read from MH i2c: D1 01 00 53 28 00 4C [15:00:40]Write to MH i2c: 01 00 00 54 28 7C [15:00:40]Write i2c OK [15:00:40]MH_I2C_Read... [15:00:41]OFD Sender: No OFD packet to send [15:00:41]*** Cut start [15:00:41]*** Partial cut [15:00:41]*** CUTSNS_PIN = 1 [15:00:41]*** CUTSNS_PIN = 0 [15:00:41]*** Brake cut motor [15:00:42]Read from MH i2c: 01 [15:00:42]MH_I2C_Read... [15:00:42]*** Stop cut motor [15:00:42]*** Cut end [15:00:42]Read from MH i2c: 01 07 00 [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: 01 07 00 54 28 00 00 00 00 00 FF 0F 91 [15:00:42]process_action close_receipt done [15:00:42]requested_data is exist [15:00:42]produce_requested_data [15:00:42]requested_item fm.sn is exist - process it [15:00:42]wFMCommunicate request_size=4 [15:00:42]MH_SAM_APDU [15:00:42]CAPDU: 80 11 00 00 [15:00:42]Write to MH i2c: E2 08 00 55 28 80 11 00 00 00 00 00 00 F7 [15:00:42]Write i2c OK [15:00:42]MH_I2C_Read... [15:00:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:42]Read from MH i2c: E2 [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: E2 17 00 [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: E2 17 00 55 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 49 [15:00:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:00:42]wFMCommunicate OK [15:00:42]requested_item fd.num is exist - process it [15:00:42]SAM_PROTO_GetFieldsCounters [15:00:42]wFMCommunicate request_size=4 [15:00:42]MH_SAM_APDU [15:00:42]CAPDU: 80 13 00 00 [15:00:42]Write to MH i2c: E2 08 00 56 28 80 13 00 00 00 00 00 00 FA [15:00:42]Write i2c OK [15:00:42]MH_I2C_Read... [15:00:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:42]Read from MH i2c: E2 [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: E2 62 00 [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: E2 62 00 56 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AE FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [15:00:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AE FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:42]wFMCommunicate OK [15:00:42]SAM_PROTO_GetFieldsCounters done [15:00:42]requested_item shift.num is exist - process it [15:00:42]requested_item shift.opened is exist - process it [15:00:42]req_shift_opened [15:00:42]FM_GetShiftState [15:00:42]SAM_PROTO_GetShiftState [15:00:42]wFMCommunicate request_size=4 [15:00:42]MH_SAM_APDU [15:00:42]CAPDU: 80 13 01 00 [15:00:42]Write to MH i2c: E2 08 00 57 28 80 13 01 00 00 00 00 00 FC [15:00:42]Write i2c OK [15:00:42]MH_I2C_Read... [15:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:42]Read from MH i2c: E2 [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: E2 0E 00 [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: E2 0E 00 57 28 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 3D [15:00:42]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:00:42]wFMCommunicate OK [15:00:42]SAM_PROTO_GetShiftState done [15:00:42]FM_GetShiftState done [15:00:42]req_shift_opened done [15:00:42]requested_item shift.open_date is exist - process it [15:00:42]req_shift_open_date [15:00:42]req_shift_open_date done [15:00:42]produce_requested_data done [15:00:42]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64174,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [15:00:42]process_action_free close_receipt [15:00:42]json_value_free [15:00:42]json_value_free done [15:00:42]process_json_proto returns [15:00:42]Send response to host [15:00:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64174,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [15:00:42]free response buf [15:00:42]execute_script done [15:00:42]execute_script returns [15:00:42]free content buf [15:00:42]Sock 8.Close socket [15:00:42]Sock 8.Thread stoped [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:29]accept exits with 9 [15:04:29]New connection [15:04:29]New thread 3067276644 created [15:04:29]Thread 3067133284 joined [15:04:29]Waiting for new connection... [15:04:29] Sock 9.Parse request [15:04:29]Sock 9.Check first char [15:04:29]Sock 9.First char is OK [15:04:29]request: POST /json_proto HTTP/1.0 [15:04:29]Method: POST [15:04:29]URL: /json_proto [15:04:29]Method is POST - this is cgi request [15:04:29]url: /json_proto [15:04:29]query_string will be loaded in cgi processing [15:04:29]execute_cgi json_proto POST (null) [15:04:29]execute_cgi path=json_proto method=POST [15:04:29]POST find Content-Length [15:04:29]Host: 172.17.60.69:8080 [15:04:29]Content-Length: 911 [15:04:29]Content-Type: application/json [15:04:29] [15:04:29]POST finish read [15:04:29]Found Content-Length = 911 [15:04:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73705", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 113.00, "quantity" : 1.000, "sum" : 113.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:29]execute_script... [15:04:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73705", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 113.00, "quantity" : 1.000, "sum" : 113.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:29]POST & json_proto [15:04:29]process_json_proto [15:04:29]json parsed OK: [15:04:29]protocol is kg_v1.0 [15:04:29]action value=close_receipt [15:04:29]process_action close_receipt [15:04:29]cmd_close_receipt [15:04:29]MH_GetDate [15:04:29]Write to MH i2c: F0 00 00 58 28 6F [15:04:29]Write i2c OK [15:04:29]MH_I2C_Read... [15:04:29]Read from MH i2c: F0 [15:04:29]MH_I2C_Read... [15:04:29]Read from MH i2c: F0 09 00 [15:04:29]MH_I2C_Read... [15:04:29]Read from MH i2c: F0 09 00 58 28 00 81 7E 60 66 D2 83 5F 66 57 [15:04:29]GetLastDocTimeStamp 1717599642 [15:04:29]current date 1717599873 [15:04:29]FM_GetShiftState [15:04:29]SAM_PROTO_GetShiftState [15:04:29]wFMCommunicate request_size=4 [15:04:29]MH_SAM_APDU [15:04:29]CAPDU: 80 13 01 00 [15:04:29]Write to MH i2c: E2 08 00 59 28 80 13 01 00 00 00 00 00 FE [15:04:29]Write i2c OK [15:04:29]MH_I2C_Read... [15:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:29]Read from MH i2c: E2 [15:04:29]MH_I2C_Read... [15:04:29]Read from MH i2c: E2 0E 00 [15:04:29]MH_I2C_Read... [15:04:29]Read from MH i2c: E2 0E 00 59 28 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 3F [15:04:29]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:04:29]wFMCommunicate OK [15:04:29]SAM_PROTO_GetShiftState done [15:04:29]FM_GetShiftState done [15:04:29]opened in 1717545925 [15:04:29]opened+sec_in_day 1717632325 [15:04:29]quantity*price = 11300 [15:04:29]sum+1 = 11301 [15:04:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 0.00 Безнал.: 113.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 95 05.06.2024 15:04 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64175 ФПД: 91143575786005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T150433&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64175&fm=91143575786005&tin=02508201610067®Number=0000000000092737&sum=11300 0 [15:04:30]StoreToDocumentArchive [15:04:30]shift 375 fd 64175 [15:04:30]save to /storage/0375/doc_00064175 [15:04:30]save last doc name /storage/0375/doc_00064175 to /storage/kkm_last_doc_name [15:04:30]save OK [15:04:30]Clear old archive folders... [15:04:30]ProcessDocumentItem done err = 0, tmpTLVsize=303 [15:04:30]tlvbuf is 01106480 [15:04:30]SAM_PROTO_ClearQueue [15:04:30]wFMCommunicate request_size=4 [15:04:30]MH_SAM_APDU [15:04:30]CAPDU: 80 09 00 00 [15:04:30]Write to MH i2c: E2 08 00 66 28 80 09 00 00 00 00 00 00 00 [15:04:30]Write i2c OK [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 [15:04:30]MH_I2C_Read... [15:04:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:30]Read from MH i2c: E2 03 00 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 03 00 66 28 00 90 00 02 [15:04:30]RAPDU: 90 00 [15:04:30]wFMCommunicate OK [15:04:30]SAM_PROTO_ClearQueue done [15:04:30]KKMCreateOFDPacket [15:04:30]OFDProtocolAddRootSTLVToBuf [15:04:30]FM_MakeSignedData [15:04:30]FM_MakeSignedData [15:04:30]SAM_PROTO_SignData [15:04:30]wFMCommunicate request_size=4 [15:04:30]MH_SAM_APDU [15:04:30]CAPDU: 80 0D 01 02 [15:04:30]Write to MH i2c: E2 08 00 67 28 80 0D 01 02 00 00 00 00 08 [15:04:30]Write i2c OK [15:04:30]MH_I2C_Read... [15:04:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:30]Read from MH i2c: E2 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 03 00 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 03 00 67 28 00 90 00 03 [15:04:30]RAPDU: 90 00 [15:04:30]wFMCommunicate OK [15:04:30]wFMCommunicate request_size=255 [15:04:30]MH_SAM_APDU [15:04:30]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 81 7E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D [15:04:30]Write to MH i2c: E2 02 01 68 28 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 81 7E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 00 00 6F [15:04:30]Write i2c OK [15:04:30]MH_I2C_Read... [15:04:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:30]Read from MH i2c: E2 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 03 00 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 03 00 68 28 00 90 00 04 [15:04:30]RAPDU: 90 00 [15:04:30]wFMCommunicate OK [15:04:30]wFMCommunicate request_size=62 [15:04:30]MH_SAM_APDU [15:04:30]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AF FA 00 00 35 04 06 00 52 E5 04 75 52 15 [15:04:30]Write to MH i2c: E2 41 00 69 28 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AF FA 00 00 35 04 06 00 52 E5 04 75 52 15 00 00 08 [15:04:30]Write i2c OK [15:04:30]MH_I2C_Read... [15:04:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:30]Read from MH i2c: E2 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 03 00 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 03 00 69 28 00 90 00 05 [15:04:30]RAPDU: 90 00 [15:04:30]wFMCommunicate OK [15:04:30]wFMCommunicate request_size=4 [15:04:30]MH_SAM_APDU [15:04:30]CAPDU: 80 0D 03 02 [15:04:30]Write to MH i2c: E2 08 00 6A 28 80 0D 03 02 00 00 00 00 0D [15:04:30]Write i2c OK [15:04:30]MH_I2C_Read... [15:04:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:30]Read from MH i2c: E2 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 0B 00 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 0B 00 6A 28 00 52 BA 6A A6 53 75 FF E9 90 00 DA [15:04:30]RAPDU: 52 BA 6A A6 53 75 FF E9 90 00 [15:04:30]wFMCommunicate OK [15:04:30]SAM_PROTO_SignData done [15:04:30]FM_MakeSignedData done [15:04:30]CreateOFDProtocolMessage [15:04:30]wFMCommunicate request_size=4 [15:04:30]MH_SAM_APDU [15:04:30]CAPDU: 80 11 00 00 [15:04:30]Write to MH i2c: E2 08 00 6B 28 80 11 00 00 00 00 00 00 0D [15:04:30]Write i2c OK [15:04:30]MH_I2C_Read... [15:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:30]Read from MH i2c: E2 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 17 00 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 17 00 6B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 5F [15:04:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:04:30]wFMCommunicate OK [15:04:30]CreateOFDProtocolMessage done [15:04:30]OFDSenderStorePacket 64175 [15:04:30]StoreOFDPacket docnum=64175 [15:04:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 43 01 00 00 78 8A 3B 01 5F 44 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 81 7E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AF FA 00 00 35 04 06 00 52 E5 04 75 52 15 52 BA 6A A6 53 75 FF E9 [15:04:30]CheckFolder [15:04:30]dirname=/storage/ofd_packets [15:04:30]CheckFolder done [15:04:30]ProducePacketName [15:04:30]name=ofd_packets/00064175 [15:04:30]NVStorageSaveData ofd_packets/00064175 [15:04:30]File name is /storage/ofd_packets/00064175 [15:04:30]Write 353 bytes [15:04:30]NVStorageSaveData done [15:04:30]OFDSenderStorePacket done [15:04:30]KKMCreateOFDPacket done [15:04:30]NVStorageSaveData kkm_last_timestamp [15:04:30]File name is /storage/kkm_last_timestamp [15:04:30]Write 4 bytes [15:04:30]NVStorageSaveData done [15:04:30]ExternCall_PrintAddStr [15:04:30]wPrintStart [15:04:30]Write to MH i2c: 01 00 00 6C 28 94 [15:04:30]Write i2c OK [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: 01 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: 01 07 00 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: 01 07 00 6C 28 00 00 00 00 00 FF 0F A9 [15:04:30]RasterBufferAndPrint [15:04:30]line Счет N : (3)73705 [15:04:30]line ИНН: 02508201610067 [15:04:30]line Контрольно-Кассовый Чек [15:04:30]line ПРОДАЖА [15:04:30]line Товар: 4870202521216 [15:04:30]line Напиток MAXI чай 1,2 зел.лимон (новый) [15:04:30]line 1.000 * 113.00 [15:04:30]line = 113.00 [15:04:30]line НДС 12% НСП 1% [15:04:30]line > о реализуемом товаре [15:04:30]line ИТОГО: 113.00 [15:04:30]line НСП 1% : 1.00 [15:04:30]line НДС 12% : 12.00 [15:04:30]line Наличными: 0.00 [15:04:30]line Безнал.: 113.00 [15:04:30]line Место: АЗС № 117 "Партнер Нефть" [15:04:30]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:04:30]line СНО: Общий режим [15:04:30]line Чек 95 05.06.2024 15:04 [15:04:30]line Смена: 375 ФФД: 1.0 [15:04:30]line ЗНМ: 0300000031 [15:04:30]line РНМ: 0000000000092737 [15:04:30]line Версия ККМ: 001 [15:04:30]line Платежная система: АКБ Кыргызстан [15:04:30]line ФМ: 0000000000875074 [15:04:30]line ФД: 64175 [15:04:30]line ФПД: 91143575786005 [15:04:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T150433&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64175&fm=91143575786005&tin=02508201610067®Number=0000000000092737&sum=11300 [15:04:31]line 0 [15:04:31]OFD Sender: Processing packet 64175 [packets to send 14, broken 13] [15:04:31]ProducePacketName [15:04:31]name=ofd_packets/00064175 [15:04:31]OFD Sender: To server: pG, [15:04:31]CommunicateWithHost lk.salyk.kg:30040 [15:04:31]ConnectInit lk.salyk.kg [15:04:31]written 0, free lines is 4095 [15:04:31]Connected sock=10 [15:04:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 43 01 00 00 78 8A 3B 01 5F 44 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 81 7E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AF FA 00 00 35 04 06 00 52 E5 04 75 52 15 52 BA 6A A6 53 75 FF E9 [15:04:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 A4 76 47 00 EA C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AF FA 00 00 F4 03 04 00 8C 2A 60 66 B6 04 01 00 00 9E E4 D6 63 77 8B 4A 30 [15:04:31]CommunicateWithHost err = 0 [15:04:31]CheckOFDResponse [15:04:31]1017 (14) - 77093643461234 [15:04:31]1041 (16) - 0000000000875074 [15:04:31]1040 (4) - 64175 [15:04:31]1012 (4) - 05.06.2024 09:06 [15:04:31]1206 (1) - 0 [15:04:31]OFD Sender: Remove packet 64175 [15:04:31]ProducePacketName [15:04:31]name=ofd_packets/00064175 [15:04:31]NVStorageDeleteData [15:04:31]Write to MH i2c: 01 00 00 97 28 BF [15:04:31]Write i2c OK [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: 01 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: 01 07 00 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: 01 07 00 97 28 00 00 00 00 00 C5 0C 97 [15:04:31]RasterBufferAndPrint [15:04:31]line [15:04:31]line [15:04:31]line [15:04:31]line [15:04:31]line [15:04:31]written 0, free lines is 3275 [15:04:31]MH_Cut [15:04:31]Write to MH i2c: D1 01 00 9E 28 01 98 [15:04:31]Write i2c OK [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: D1 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: D1 01 00 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: D1 01 00 9E 28 00 97 [15:04:31]Write to MH i2c: 01 00 00 9F 28 C7 [15:04:31]Write i2c OK [15:04:31]MH_I2C_Read... [15:04:32]OFD Sender: No OFD packet to send [15:04:32]*** Cut start [15:04:32]*** Partial cut [15:04:32]*** CUTSNS_PIN = 1 [15:04:32]*** CUTSNS_PIN = 0 [15:04:32]*** Brake cut motor [15:04:33]Read from MH i2c: 01 [15:04:33]MH_I2C_Read... [15:04:33]*** Stop cut motor [15:04:33]*** Cut end [15:04:33]Read from MH i2c: 01 07 00 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: 01 07 00 9F 28 00 00 00 00 00 FF 0F DC [15:04:33]process_action close_receipt done [15:04:33]requested_data is exist [15:04:33]produce_requested_data [15:04:33]requested_item fm.sn is exist - process it [15:04:33]wFMCommunicate request_size=4 [15:04:33]MH_SAM_APDU [15:04:33]CAPDU: 80 11 00 00 [15:04:33]Write to MH i2c: E2 08 00 A0 28 80 11 00 00 00 00 00 00 42 [15:04:33]Write i2c OK [15:04:33]MH_I2C_Read... [15:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:33]Read from MH i2c: E2 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 17 00 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 17 00 A0 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 94 [15:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:04:33]wFMCommunicate OK [15:04:33]requested_item fd.num is exist - process it [15:04:33]SAM_PROTO_GetFieldsCounters [15:04:33]wFMCommunicate request_size=4 [15:04:33]MH_SAM_APDU [15:04:33]CAPDU: 80 13 00 00 [15:04:33]Write to MH i2c: E2 08 00 A1 28 80 13 00 00 00 00 00 00 45 [15:04:33]Write i2c OK [15:04:33]MH_I2C_Read... [15:04:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:33]Read from MH i2c: E2 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 62 00 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 62 00 A1 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AF FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [15:04:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AF FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:33]wFMCommunicate OK [15:04:33]SAM_PROTO_GetFieldsCounters done [15:04:33]requested_item shift.num is exist - process it [15:04:33]requested_item shift.opened is exist - process it [15:04:33]req_shift_opened [15:04:33]FM_GetShiftState [15:04:33]SAM_PROTO_GetShiftState [15:04:33]wFMCommunicate request_size=4 [15:04:33]MH_SAM_APDU [15:04:33]CAPDU: 80 13 01 00 [15:04:33]Write to MH i2c: E2 08 00 A2 28 80 13 01 00 00 00 00 00 47 [15:04:33]Write i2c OK [15:04:33]MH_I2C_Read... [15:04:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:33]Read from MH i2c: E2 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 0E 00 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 0E 00 A2 28 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 88 [15:04:33]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:04:33]wFMCommunicate OK [15:04:33]SAM_PROTO_GetShiftState done [15:04:33]FM_GetShiftState done [15:04:33]req_shift_opened done [15:04:33]requested_item shift.open_date is exist - process it [15:04:33]req_shift_open_date [15:04:33]req_shift_open_date done [15:04:33]produce_requested_data done [15:04:33]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64175,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [15:04:33]process_action_free close_receipt [15:04:33]json_value_free [15:04:33]json_value_free done [15:04:33]process_json_proto returns [15:04:33]Send response to host [15:04:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64175,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [15:04:33]free response buf [15:04:33]execute_script done [15:04:33]execute_script returns [15:04:33]free content buf [15:04:33]Sock 9.Close socket [15:04:33]Sock 9.Thread stoped [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:31]accept exits with 8 [15:06:31]New connection [15:06:31]New thread 3067133284 created [15:06:31]Thread 3067276644 joined [15:06:31]Waiting for new connection... [15:06:31] Sock 8.Parse request [15:06:31]Sock 8.Check first char [15:06:31]Sock 8.First char is OK [15:06:31]request: POST /json_proto HTTP/1.0 [15:06:31]Method: POST [15:06:31]URL: /json_proto [15:06:31]Method is POST - this is cgi request [15:06:31]url: /json_proto [15:06:31]query_string will be loaded in cgi processing [15:06:31]execute_cgi json_proto POST (null) [15:06:31]execute_cgi path=json_proto method=POST [15:06:31]POST find Content-Length [15:06:31]Host: 172.17.60.69:8080 [15:06:31]Content-Length: 631 [15:06:31]Content-Type: application/json [15:06:31] [15:06:31]POST finish read [15:06:31]Found Content-Length = 631 [15:06:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73706", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:31]execute_script... [15:06: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)73706", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:31]POST & json_proto [15:06:31]process_json_proto [15:06:31]json parsed OK: [15:06:31]protocol is kg_v1.0 [15:06:31]action value=close_receipt [15:06:31]process_action close_receipt [15:06:31]cmd_close_receipt [15:06:31]MH_GetDate [15:06:31]Write to MH i2c: F0 00 00 A3 28 BA [15:06:31]Write i2c OK [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: F0 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: F0 09 00 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: F0 09 00 A3 28 00 FB 7E 60 66 D2 83 5F 66 1C [15:06:31]GetLastDocTimeStamp 1717599873 [15:06:31]current date 1717599995 [15:06:31]FM_GetShiftState [15:06:31]SAM_PROTO_GetShiftState [15:06:31]wFMCommunicate request_size=4 [15:06:31]MH_SAM_APDU [15:06:31]CAPDU: 80 13 01 00 [15:06:31]Write to MH i2c: E2 08 00 A4 28 80 13 01 00 00 00 00 00 49 [15:06:31]Write i2c OK [15:06:31]MH_I2C_Read... [15:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:31]Read from MH i2c: E2 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: E2 0E 00 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: E2 0E 00 A4 28 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 8A [15:06:31]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:06:31]wFMCommunicate OK [15:06:31]SAM_PROTO_GetShiftState done [15:06:31]FM_GetShiftState done [15:06:31]opened in 1717545925 [15:06:31]opened+sec_in_day 1717632325 [15:06:31]quantity*price = 4000 [15:06:31]sum+1 = 4001 [15:06:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 96 05.06.2024 15:06 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64176 ФПД: 116917473557368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T150635&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64176&fm=116917473557368&tin=02508201610067®Number=0000000000092737&sum=4000 0 [15:06:32]StoreToDocumentArchive [15:06:32]shift 375 fd 64176 [15:06:32]save to /storage/0375/doc_00064176 [15:06:32]save last doc name /storage/0375/doc_00064176 to /storage/kkm_last_doc_name [15:06:32]save OK [15:06:32]Clear old archive folders... [15:06:32]ProcessDocumentItem done err = 0, tmpTLVsize=271 [15:06:32]tlvbuf is 010200F0 [15:06:32]SAM_PROTO_ClearQueue [15:06:32]wFMCommunicate request_size=4 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 09 00 00 [15:06:32]Write to MH i2c: E2 08 00 B1 28 80 09 00 00 00 00 00 00 4B [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:32]Read from MH i2c: E2 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 03 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 03 00 B1 28 00 90 00 4D [15:06:32]RAPDU: 90 00 [15:06:32]wFMCommunicate OK [15:06:32]SAM_PROTO_ClearQueue done [15:06:32]KKMCreateOFDPacket [15:06:32]OFDProtocolAddRootSTLVToBuf [15:06:32]FM_MakeSignedData [15:06:32]FM_MakeSignedData [15:06:32]SAM_PROTO_SignData [15:06:32]wFMCommunicate request_size=4 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 0D 01 02 [15:06:32]Write to MH i2c: E2 08 00 B2 28 80 0D 01 02 00 00 00 00 53 [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:32]Read from MH i2c: E2 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 03 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 03 00 B2 28 00 90 00 4E [15:06:32]RAPDU: 90 00 [15:06:32]wFMCommunicate OK [15:06:32]wFMCommunicate request_size=255 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 FB 7E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [15:06:32]Write to MH i2c: E2 02 01 B3 28 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 FB 7E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 52 [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:32]Read from MH i2c: E2 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 03 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 03 00 B3 28 00 90 00 4F [15:06:32]RAPDU: 90 00 [15:06:32]wFMCommunicate OK [15:06:32]wFMCommunicate request_size=30 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 0D 02 02 19 30 38 37 35 30 37 34 10 04 04 00 B0 FA 00 00 35 04 06 00 6A 55 F8 7A BB 78 [15:06:32]Write to MH i2c: E2 21 00 B4 28 80 0D 02 02 19 00 30 38 37 35 30 37 34 10 04 04 00 B0 FA 00 00 35 04 06 00 6A 55 F8 7A BB 78 00 00 5C [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:32]Read from MH i2c: E2 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 03 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 03 00 B4 28 00 90 00 50 [15:06:32]RAPDU: 90 00 [15:06:32]wFMCommunicate OK [15:06:32]wFMCommunicate request_size=4 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 0D 03 02 [15:06:32]Write to MH i2c: E2 08 00 B5 28 80 0D 03 02 00 00 00 00 58 [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:32]Read from MH i2c: E2 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 0B 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 0B 00 B5 28 00 CB C9 79 54 E6 CB 18 29 90 00 AC [15:06:32]RAPDU: CB C9 79 54 E6 CB 18 29 90 00 [15:06:32]wFMCommunicate OK [15:06:32]SAM_PROTO_SignData done [15:06:32]FM_MakeSignedData done [15:06:32]CreateOFDProtocolMessage [15:06:32]wFMCommunicate request_size=4 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 11 00 00 [15:06:32]Write to MH i2c: E2 08 00 B6 28 80 11 00 00 00 00 00 00 58 [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:33]Read from MH i2c: E2 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 17 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 17 00 B6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AA [15:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:06:33]wFMCommunicate OK [15:06:33]CreateOFDProtocolMessage done [15:06:33]OFDSenderStorePacket 64176 [15:06:33]StoreOFDPacket docnum=64176 [15:06:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 5A F8 1B 01 E9 DC 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 FB 7E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B0 FA 00 00 35 04 06 00 6A 55 F8 7A BB 78 CB C9 79 54 E6 CB 18 29 [15:06:33]CheckFolder [15:06:33]dirname=/storage/ofd_packets [15:06:33]CheckFolder done [15:06:33]ProducePacketName [15:06:33]name=ofd_packets/00064176 [15:06:33]NVStorageSaveData ofd_packets/00064176 [15:06:33]File name is /storage/ofd_packets/00064176 [15:06:33]Write 321 bytes [15:06:33]NVStorageSaveData done [15:06:33]OFDSenderStorePacket done [15:06:33]KKMCreateOFDPacket done [15:06:33]NVStorageSaveData kkm_last_timestamp [15:06:33]File name is /storage/kkm_last_timestamp [15:06:33]Write 4 bytes [15:06:33]NVStorageSaveData done [15:06:33]ExternCall_PrintAddStr [15:06:33]wPrintStart [15:06:33]Write to MH i2c: 01 00 00 B7 28 DF [15:06:33]Write i2c OK [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: 01 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: 01 07 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: 01 07 00 B7 28 00 00 00 00 00 FF 0F F4 [15:06:33]RasterBufferAndPrint [15:06:33]line Счет N : (3)73706 [15:06:33]line ИНН: 02508201610067 [15:06:33]line Контрольно-Кассовый Чек [15:06:33]line ПРОДАЖА [15:06:33]line Товар: 4700000160211 [15:06:33]line Вода Легенда 0,5л [15:06:33]line 1.000 * 40.00 [15:06:33]line = 40.00 [15:06:33]line НДС 12% НСП 1% [15:06:33]line > о реализуемом товаре [15:06:33]line ИТОГО: 40.00 [15:06:33]line НСП 1% : 0.35 [15:06:33]line НДС 12% : 4.25 [15:06:33]line Наличными: 40.00 [15:06:33]line Безнал.: 0.00 [15:06:33]line Место: АЗС № 117 "Партнер Нефть" [15:06:33]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:06:33]line СНО: Общий режим [15:06:33]line Чек 96 05.06.2024 15:06 [15:06:33]line Смена: 375 ФФД: 1.0 [15:06:33]line ЗНМ: 0300000031 [15:06:33]line РНМ: 0000000000092737 [15:06:33]line Версия ККМ: 001 [15:06:33]line ФМ: 0000000000875074 [15:06:33]line ФД: 64176 [15:06:33]line ФПД: 116917473557368 [15:06:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T150635&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64176&fm=116917473557368&tin=02508201610067®Number=0000000000092737&sum=4000 [15:06:33]line 0 [15:06:33]OFD Sender: Processing packet 64176 [packets to send 14, broken 13] [15:06:33]ProducePacketName [15:06:33]name=ofd_packets/00064176 [15:06:33]OFD Sender: To server: pG, [15:06:33]CommunicateWithHost lk.salyk.kg:30040 [15:06:33]ConnectInit lk.salyk.kg [15:06:33]written 0, free lines is 4095 [15:06:33]Connected sock=10 [15:06:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 5A F8 1B 01 E9 DC 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 FB 7E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B0 FA 00 00 35 04 06 00 6A 55 F8 7A BB 78 CB C9 79 54 E6 CB 18 29 [15:06:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 0E 8A 47 00 32 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B0 FA 00 00 F4 03 04 00 06 2B 60 66 B6 04 01 00 00 E9 C0 AD 22 D5 5F 50 81 [15:06:33]CommunicateWithHost err = 0 [15:06:33]CheckOFDResponse [15:06:33]1017 (14) - 77093643461234 [15:06:33]1041 (16) - 0000000000875074 [15:06:33]1040 (4) - 64176 [15:06:33]1012 (4) - 05.06.2024 09:08 [15:06:33]1206 (1) - 0 [15:06:33]OFD Sender: Remove packet 64176 [15:06:33]ProducePacketName [15:06:33]name=ofd_packets/00064176 [15:06:33]NVStorageDeleteData [15:06:33]Write to MH i2c: 01 00 00 DF 28 07 [15:06:33]Write i2c OK [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: 01 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: 01 07 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: 01 07 00 DF 28 00 00 00 00 00 F6 0C 10 [15:06:33]RasterBufferAndPrint [15:06:33]line [15:06:33]line [15:06:33]line [15:06:33]line [15:06:33]line [15:06:33]written 0, free lines is 3324 [15:06:33]MH_Cut [15:06:33]Write to MH i2c: D1 01 00 E6 28 01 E0 [15:06:33]Write i2c OK [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: D1 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: D1 01 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: D1 01 00 E6 28 00 DF [15:06:33]Write to MH i2c: 01 00 00 E7 28 0F [15:06:33]Write i2c OK [15:06:33]MH_I2C_Read... [15:06:34]OFD Sender: No OFD packet to send [15:06:34]*** Cut start [15:06:34]*** Partial cut [15:06:34]*** CUTSNS_PIN = 1 [15:06:34]*** CUTSNS_PIN = 0 [15:06:34]*** Brake cut motor [15:06:35]Read from MH i2c: 01 [15:06:35]MH_I2C_Read... [15:06:35]*** Stop cut motor [15:06:35]*** Cut end [15:06:35]Read from MH i2c: 01 07 00 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: 01 07 00 E7 28 00 00 00 00 00 FF 0F 24 [15:06:35]process_action close_receipt done [15:06:35]requested_data is exist [15:06:35]produce_requested_data [15:06:35]requested_item fm.sn is exist - process it [15:06:35]wFMCommunicate request_size=4 [15:06:35]MH_SAM_APDU [15:06:35]CAPDU: 80 11 00 00 [15:06:35]Write to MH i2c: E2 08 00 E8 28 80 11 00 00 00 00 00 00 8A [15:06:35]Write i2c OK [15:06:35]MH_I2C_Read... [15:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:35]Read from MH i2c: E2 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: E2 17 00 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: E2 17 00 E8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DC [15:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:06:35]wFMCommunicate OK [15:06:35]requested_item fd.num is exist - process it [15:06:35]SAM_PROTO_GetFieldsCounters [15:06:35]wFMCommunicate request_size=4 [15:06:35]MH_SAM_APDU [15:06:35]CAPDU: 80 13 00 00 [15:06:35]Write to MH i2c: E2 08 00 E9 28 80 13 00 00 00 00 00 00 8D [15:06:35]Write i2c OK [15:06:35]MH_I2C_Read... [15:06:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:35]Read from MH i2c: E2 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: E2 62 00 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: E2 62 00 E9 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B0 FA 00 00 0E 04 04 00 77 01 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 F2 [15:06:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B0 FA 00 00 0E 04 04 00 77 01 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 [15:06:35]wFMCommunicate OK [15:06:35]SAM_PROTO_GetFieldsCounters done [15:06:35]requested_item shift.num is exist - process it [15:06:35]requested_item shift.opened is exist - process it [15:06:35]req_shift_opened [15:06:35]FM_GetShiftState [15:06:35]SAM_PROTO_GetShiftState [15:06:35]wFMCommunicate request_size=4 [15:06:35]MH_SAM_APDU [15:06:35]CAPDU: 80 13 01 00 [15:06:35]Write to MH i2c: E2 08 00 EA 28 80 13 01 00 00 00 00 00 8F [15:06:35]Write i2c OK [15:06:35]MH_I2C_Read... [15:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:35]Read from MH i2c: E2 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: E2 0E 00 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: E2 0E 00 EA 28 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 D0 [15:06:35]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:06:35]wFMCommunicate OK [15:06:35]SAM_PROTO_GetShiftState done [15:06:35]FM_GetShiftState done [15:06:35]req_shift_opened done [15:06:35]requested_item shift.open_date is exist - process it [15:06:35]req_shift_open_date [15:06:35]req_shift_open_date done [15:06:35]produce_requested_data done [15:06:35]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64176,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [15:06:35]process_action_free close_receipt [15:06:35]json_value_free [15:06:35]json_value_free done [15:06:35]process_json_proto returns [15:06:35]Send response to host [15:06:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64176,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [15:06:35]free response buf [15:06:35]execute_script done [15:06:35]execute_script returns [15:06:35]free content buf [15:06:35]Sock 8.Close socket [15:06:35]Sock 8.Thread stoped [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:17]accept exits with 9 [15:17:17]New connection [15:17:17]New thread 3067276644 created [15:17:17]Thread 3067133284 joined [15:17:17]Waiting for new connection... [15:17:17] Sock 9.Parse request [15:17:17]Sock 9.Check first char [15:17:17]Sock 9.First char is OK [15:17:17]request: POST /json_proto HTTP/1.0 [15:17:17]Method: POST [15:17:17]URL: /json_proto [15:17:17]Method is POST - this is cgi request [15:17:17]url: /json_proto [15:17:17]query_string will be loaded in cgi processing [15:17:17]execute_cgi json_proto POST (null) [15:17:17]execute_cgi path=json_proto method=POST [15:17:17]POST find Content-Length [15:17:17]Host: 172.17.60.69:8080 [15:17:17]Content-Length: 1319 [15:17:17]Content-Type: application/json [15:17:17] [15:17:17]POST finish read [15:17:17]Found Content-Length = 1319 [15:17:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73707", "tax_sys" : 0, "items" : [ { "code": "4650075420409", "name": "\u0421\u043E\u043A Rich \u0412\u0438\u0448\u043D\u044F 0,2", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "80050124", "name": "\u0414\u0440\u0430\u0436\u0435 tic tac \u043C\u044F\u0442\u0430 16\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:17]execute_script... [15:17: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)73707", "tax_sys" : 0, "items" : [ { "code": "4650075420409", "name": "\u0421\u043E\u043A Rich \u0412\u0438\u0448\u043D\u044F 0,2", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "80050124", "name": "\u0414\u0440\u0430\u0436\u0435 tic tac \u043C\u044F\u0442\u0430 16\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:17]POST & json_proto [15:17:17]process_json_proto [15:17:17]json parsed OK: [15:17:17]protocol is kg_v1.0 [15:17:17]action value=close_receipt [15:17:17]process_action close_receipt [15:17:17]cmd_close_receipt [15:17:17]MH_GetDate [15:17:17]Write to MH i2c: F0 00 00 EB 28 02 [15:17:17]Write i2c OK [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: F0 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: F0 09 00 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: F0 09 00 EB 28 00 81 81 60 66 D2 83 5F 66 ED [15:17:17]GetLastDocTimeStamp 1717599995 [15:17:17]current date 1717600641 [15:17:17]FM_GetShiftState [15:17:17]SAM_PROTO_GetShiftState [15:17:17]wFMCommunicate request_size=4 [15:17:17]MH_SAM_APDU [15:17:17]CAPDU: 80 13 01 00 [15:17:17]Write to MH i2c: E2 08 00 EC 28 80 13 01 00 00 00 00 00 91 [15:17:17]Write i2c OK [15:17:17]MH_I2C_Read... [15:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:17]Read from MH i2c: E2 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 0E 00 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 0E 00 EC 28 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 D2 [15:17:17]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:17:17]wFMCommunicate OK [15:17:17]SAM_PROTO_GetShiftState done [15:17:17]FM_GetShiftState done [15:17:17]opened in 1717545925 [15:17:17]opened+sec_in_day 1717632325 [15:17:17]quantity*price = 8500 [15:17:17]sum+1 = 8501 [15:17:17]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 80050124 Драже tic tac мята 16г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.94 НДС 12% : 23.36 Наличными: 0.00 Безнал.: 220.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 97 05.06.2024 15:17 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64177 ФПД: 151725690190804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T151722&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64177&fm=151725690190804&tin=02508201610067®Number=0000000000092737&sum=22000 0 [15:17:18]StoreToDocumentArchive [15:17:18]shift 375 fd 64177 [15:17:18]save to /storage/0375/doc_00064177 [15:17:18]save last doc name /storage/0375/doc_00064177 to /storage/kkm_last_doc_name [15:17:18]save OK [15:17:18]Clear old archive folders... [15:17:18]ProcessDocumentItem done err = 0, tmpTLVsize=476 [15:17:18]tlvbuf is 01106020 [15:17:18]SAM_PROTO_ClearQueue [15:17:18]wFMCommunicate request_size=4 [15:17:18]MH_SAM_APDU [15:17:18]CAPDU: 80 09 00 00 [15:17:18]Write to MH i2c: E2 08 00 F9 28 80 09 00 00 00 00 00 00 93 [15:17:18]Write i2c OK [15:17:18]MH_I2C_Read... [15:17:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:18]Read from MH i2c: E2 [15:17:18]MH_I2C_Read... [15:17:18]Read from MH i2c: E2 03 00 [15:17:18]MH_I2C_Read... [15:17:18]Read from MH i2c: E2 03 00 F9 28 00 90 00 95 [15:17:18]RAPDU: 90 00 [15:17:18]wFMCommunicate OK [15:17:18]SAM_PROTO_ClearQueue done [15:17:18]KKMCreateOFDPacket [15:17:18]OFDProtocolAddRootSTLVToBuf [15:17:18]FM_MakeSignedData [15:17:18]FM_MakeSignedData [15:17:18]SAM_PROTO_SignData [15:17:18]wFMCommunicate request_size=4 [15:17:18]MH_SAM_APDU [15:17:18]CAPDU: 80 0D 01 02 [15:17:18]Write to MH i2c: E2 08 00 FA 28 80 0D 01 02 00 00 00 00 9B [15:17:18]Write i2c OK [15:17:18]MH_I2C_Read... [15:17:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:18]Read from MH i2c: E2 [15:17:18]MH_I2C_Read... [15:17:18]Read from MH i2c: E2 03 00 [15:17:18]MH_I2C_Read... [15:17:18]Read from MH i2c: E2 03 00 FA 28 00 90 00 96 [15:17:18]RAPDU: 90 00 [15:17:18]wFMCommunicate OK [15:17:18]wFMCommunicate request_size=255 [15:17:18]MH_SAM_APDU [15:17:18]CAPDU: 80 0D 02 02 FA 03 00 DC 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 [15:17:19]Write to MH i2c: E2 02 01 FB 28 80 0D 02 02 FA 00 03 00 DC 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 00 00 34 [15:17:19]Write i2c OK [15:17:19]MH_I2C_Read... [15:17:19]Read from MH i2c: E2 [15:17:19]MH_I2C_Read... [15:17:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:19]Read from MH i2c: E2 03 00 [15:17:19]MH_I2C_Read... [15:17:19]Read from MH i2c: E2 03 00 FB 28 00 90 00 97 [15:17:19]RAPDU: 90 00 [15:17:19]wFMCommunicate OK [15:17:19]wFMCommunicate request_size=235 [15:17:19]MH_SAM_APDU [15:17:19]CAPDU: 80 0D 02 02 E6 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 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 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 61 00 00 00 F4 03 04 00 82 81 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B1 FA 00 00 35 04 06 00 89 FE 63 DD FB D4 [15:17:19]Write to MH i2c: E2 EE 00 FC 28 80 0D 02 02 E6 00 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 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 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 61 00 00 00 F4 03 04 00 82 81 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B1 FA 00 00 35 04 06 00 89 FE 63 DD FB D4 00 00 4C [15:17:19]Write i2c OK [15:17:19]MH_I2C_Read... [15:17:19]OFD Sender: No OFD packet to send [15:17:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:19]Read from MH i2c: E2 [15:17:19]MH_I2C_Read... [15:17:19]Read from MH i2c: E2 03 00 [15:17:19]MH_I2C_Read... [15:17:19]Read from MH i2c: E2 03 00 FC 28 00 90 00 98 [15:17:19]RAPDU: 90 00 [15:17:19]wFMCommunicate OK [15:17:19]wFMCommunicate request_size=4 [15:17:19]MH_SAM_APDU [15:17:19]CAPDU: 80 0D 03 02 [15:17:19]Write to MH i2c: E2 08 00 FD 28 80 0D 03 02 00 00 00 00 A0 [15:17:19]Write i2c OK [15:17:19]MH_I2C_Read... [15:17:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:19]Read from MH i2c: E2 [15:17:19]MH_I2C_Read... [15:17:19]Read from MH i2c: E2 0B 00 [15:17:19]MH_I2C_Read... [15:17:19]Read from MH i2c: E2 0B 00 FD 28 00 B5 87 08 E7 67 82 28 67 90 00 44 [15:17:19]RAPDU: B5 87 08 E7 67 82 28 67 90 00 [15:17:19]wFMCommunicate OK [15:17:19]SAM_PROTO_SignData done [15:17:19]FM_MakeSignedData done [15:17:19]CreateOFDProtocolMessage [15:17:19]wFMCommunicate request_size=4 [15:17:19]MH_SAM_APDU [15:17:19]CAPDU: 80 11 00 00 [15:17:19]Write to MH i2c: E2 08 00 FE 28 80 11 00 00 00 00 00 00 A0 [15:17:19]Write i2c OK [15:17:19]MH_I2C_Read... [15:17:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:19]Read from MH i2c: E2 [15:17:19]MH_I2C_Read... [15:17:19]Read from MH i2c: E2 17 00 [15:17:19]MH_I2C_Read... [15:17:19]Read from MH i2c: E2 17 00 FE 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F2 [15:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:17:19]wFMCommunicate OK [15:17:19]CreateOFDProtocolMessage done [15:17:19]OFDSenderStorePacket 64177 [15:17:19]StoreOFDPacket docnum=64177 [15:17:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 F0 01 00 00 0C C3 E8 01 7C 05 5A 03 01 00 03 00 DC 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 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 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 61 00 00 00 F4 03 04 00 82 81 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B1 FA 00 00 35 04 06 00 89 FE 63 DD FB D4 B5 87 08 E7 67 82 28 67 [15:17:19]CheckFolder [15:17:19]dirname=/storage/ofd_packets [15:17:19]CheckFolder done [15:17:19]ProducePacketName [15:17:19]name=ofd_packets/00064177 [15:17:19]NVStorageSaveData ofd_packets/00064177 [15:17:19]File name is /storage/ofd_packets/00064177 [15:17:19]Write 526 bytes [15:17:19]NVStorageSaveData done [15:17:19]OFDSenderStorePacket done [15:17:19]KKMCreateOFDPacket done [15:17:19]NVStorageSaveData kkm_last_timestamp [15:17:19]File name is /storage/kkm_last_timestamp [15:17:19]Write 4 bytes [15:17:19]NVStorageSaveData done [15:17:19]ExternCall_PrintAddStr [15:17:19]wPrintStart [15:17:19]Write to MH i2c: 01 00 00 FF 28 27 [15:17:19]Write i2c OK [15:17:19]MH_I2C_Read... [15:17:19]Read from MH i2c: 01 [15:17:19]MH_I2C_Read... [15:17:19]Read from MH i2c: 01 07 00 [15:17:19]MH_I2C_Read... [15:17:19]Read from MH i2c: 01 07 00 FF 28 00 00 00 00 00 FF 0F 3C [15:17:19]RasterBufferAndPrint [15:17:19]line Счет N : (3)73707 [15:17:19]line ИНН: 02508201610067 [15:17:19]line Контрольно-Кассовый Чек [15:17:19]line ПРОДАЖА [15:17:19]line Товар: 4650075420409 [15:17:19]line Сок Rich Вишня 0,2 [15:17:19]line 1.000 * 85.00 [15:17:19]line = 85.00 [15:17:19]line НДС 12% НСП 1% [15:17:19]line > о реализуемом товаре [15:17:19]line Товар: 80050124 [15:17:19]line Драже tic tac мята 16г [15:17:19]line 1.000 * 65.00 [15:17:19]line = 65.00 [15:17:19]line НДС 12% НСП 1% [15:17:19]line > о реализуемом товаре [15:17:19]line Товар: 4607065000790 [15:17:19]line Шок M&M`s с арахисом 45г [15:17:19]line 1.000 * 70.00 [15:17:19]line = 70.00 [15:17:19]line НДС 12% НСП 1% [15:17:19]line > о реализуемом товаре [15:17:19]line ИТОГО: 220.00 [15:17:19]line НСП 1% : 1.94 [15:17:19]line НДС 12% : 23.36 [15:17:19]line Наличными: 0.00 [15:17:19]line Безнал.: 220.00 [15:17:19]line Место: АЗС № 117 "Партнер Нефть" [15:17:19]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:17:19]line СНО: Общий режим [15:17:19]line Чек 97 05.06.2024 15:17 [15:17:19]line Смена: 375 ФФД: 1.0 [15:17:19]line ЗНМ: 0300000031 [15:17:19]line РНМ: 0000000000092737 [15:17:19]line Версия ККМ: 001 [15:17:19]line Платежная система: АКБ Кыргызстан [15:17:19]line ФМ: 0000000000875074 [15:17:19]line ФД: 64177 [15:17:19]line ФПД: 151725690190804 [15:17:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T151722&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64177&fm=151725690190804&tin=02508201610067®Number=0000000000092737&sum=22000 [15:17:19]line 0 [15:17:19]written 0, free lines is 4095 [15:17:20]OFD Sender: Processing packet 64177 [packets to send 14, broken 13] [15:17:20]ProducePacketName [15:17:20]name=ofd_packets/00064177 [15:17:20]OFD Sender: To server: pG, [15:17:20]CommunicateWithHost lk.salyk.kg:30040 [15:17:20]ConnectInit lk.salyk.kg [15:17:20]Connected sock=10 [15:17:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 F0 01 00 00 0C C3 E8 01 7C 05 5A 03 01 00 03 00 DC 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 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 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 61 00 00 00 F4 03 04 00 82 81 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B1 FA 00 00 35 04 06 00 89 FE 63 DD FB D4 B5 87 08 E7 67 82 28 67 [15:17:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 F7 83 47 00 4E 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B1 FA 00 00 F4 03 04 00 8D 2D 60 66 B6 04 01 00 00 44 8B 7F 59 19 FD 10 AB [15:17:20]CommunicateWithHost err = 0 [15:17:20]CheckOFDResponse [15:17:20]1017 (14) - 77093643461234 [15:17:20]1041 (16) - 0000000000875074 [15:17:20]1040 (4) - 64177 [15:17:20]1012 (4) - 05.06.2024 09:19 [15:17:20]1206 (1) - 0 [15:17:20]OFD Sender: Remove packet 64177 [15:17:20]ProducePacketName [15:17:20]name=ofd_packets/00064177 [15:17:20]NVStorageDeleteData [15:17:20]Write to MH i2c: 01 00 00 35 29 5E [15:17:20]Write i2c OK [15:17:20]MH_I2C_Read... [15:17:20]Read from MH i2c: 01 [15:17:20]MH_I2C_Read... [15:17:20]Read from MH i2c: 01 07 00 [15:17:20]MH_I2C_Read... [15:17:20]Read from MH i2c: 01 07 00 35 29 00 00 00 00 00 1C 0C 8D [15:17:20]RasterBufferAndPrint [15:17:20]line [15:17:20]line [15:17:20]line [15:17:20]line [15:17:20]line [15:17:20]written 0, free lines is 3107 [15:17:20]MH_Cut [15:17:20]Write to MH i2c: D1 01 00 3C 29 01 37 [15:17:20]Write i2c OK [15:17:20]MH_I2C_Read... [15:17:20]Read from MH i2c: D1 [15:17:20]MH_I2C_Read... [15:17:20]Read from MH i2c: D1 01 00 [15:17:20]MH_I2C_Read... [15:17:20]Read from MH i2c: D1 01 00 3C 29 00 36 [15:17:20]Write to MH i2c: 01 00 00 3D 29 66 [15:17:20]Write i2c OK [15:17:20]MH_I2C_Read... [15:17:20]OFD Sender: No OFD packet to send [15:17:21]*** Cut start [15:17:21]*** Partial cut [15:17:21]*** CUTSNS_PIN = 1 [15:17:21]*** CUTSNS_PIN = 0 [15:17:21]*** Brake cut motor [15:17:22]Read from MH i2c: 01 [15:17:22]MH_I2C_Read... [15:17:22]*** Stop cut motor [15:17:22]*** Cut end [15:17:22]Read from MH i2c: 01 07 00 [15:17:22]MH_I2C_Read... [15:17:22]Read from MH i2c: 01 07 00 3D 29 00 00 00 00 00 FF 0F 7B [15:17:22]process_action close_receipt done [15:17:22]requested_data is exist [15:17:22]produce_requested_data [15:17:22]requested_item fm.sn is exist - process it [15:17:22]wFMCommunicate request_size=4 [15:17:22]MH_SAM_APDU [15:17:22]CAPDU: 80 11 00 00 [15:17:22]Write to MH i2c: E2 08 00 3E 29 80 11 00 00 00 00 00 00 E1 [15:17:22]Write i2c OK [15:17:22]MH_I2C_Read... [15:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:22]Read from MH i2c: E2 [15:17:22]MH_I2C_Read... [15:17:22]Read from MH i2c: E2 17 00 [15:17:22]MH_I2C_Read... [15:17:22]Read from MH i2c: E2 17 00 3E 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 33 [15:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:17:22]wFMCommunicate OK [15:17:22]requested_item fd.num is exist - process it [15:17:22]SAM_PROTO_GetFieldsCounters [15:17:22]wFMCommunicate request_size=4 [15:17:22]MH_SAM_APDU [15:17:22]CAPDU: 80 13 00 00 [15:17:22]Write to MH i2c: E2 08 00 3F 29 80 13 00 00 00 00 00 00 E4 [15:17:22]Write i2c OK [15:17:22]MH_I2C_Read... [15:17:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:22]Read from MH i2c: E2 [15:17:22]MH_I2C_Read... [15:17:22]Read from MH i2c: E2 62 00 [15:17:22]MH_I2C_Read... [15:17:22]Read from MH i2c: E2 62 00 3F 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B1 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [15:17:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B1 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:22]wFMCommunicate OK [15:17:22]SAM_PROTO_GetFieldsCounters done [15:17:22]requested_item shift.num is exist - process it [15:17:22]requested_item shift.opened is exist - process it [15:17:22]req_shift_opened [15:17:22]FM_GetShiftState [15:17:22]SAM_PROTO_GetShiftState [15:17:22]wFMCommunicate request_size=4 [15:17:22]MH_SAM_APDU [15:17:22]CAPDU: 80 13 01 00 [15:17:22]Write to MH i2c: E2 08 00 40 29 80 13 01 00 00 00 00 00 E6 [15:17:22]Write i2c OK [15:17:22]MH_I2C_Read... [15:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:22]Read from MH i2c: E2 [15:17:22]MH_I2C_Read... [15:17:22]Read from MH i2c: E2 0E 00 [15:17:22]MH_I2C_Read... [15:17:22]Read from MH i2c: E2 0E 00 40 29 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 27 [15:17:22]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:17:22]wFMCommunicate OK [15:17:22]SAM_PROTO_GetShiftState done [15:17:22]FM_GetShiftState done [15:17:22]req_shift_opened done [15:17:22]requested_item shift.open_date is exist - process it [15:17:22]req_shift_open_date [15:17:22]req_shift_open_date done [15:17:22]produce_requested_data done [15:17:22]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64177,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [15:17:22]process_action_free close_receipt [15:17:22]json_value_free [15:17:22]json_value_free done [15:17:22]process_json_proto returns [15:17:22]Send response to host [15:17:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64177,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [15:17:22]free response buf [15:17:22]execute_script done [15:17:22]execute_script returns [15:17:22]free content buf [15:17:22]Sock 9.Close socket [15:17:22]Sock 9.Thread stoped [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:52]accept exits with 8 [15:19:52]New connection [15:19:52]New thread 3067133284 created [15:19:52]Thread 3067276644 joined [15:19:52]Waiting for new connection... [15:19:52] Sock 8.Parse request [15:19:52]Sock 8.Check first char [15:19:52]Sock 8.First char is OK [15:19:52]request: POST /json_proto HTTP/1.0 [15:19:52]Method: POST [15:19:52]URL: /json_proto [15:19:52]Method is POST - this is cgi request [15:19:52]url: /json_proto [15:19:52]query_string will be loaded in cgi processing [15:19:52]execute_cgi json_proto POST (null) [15:19:52]execute_cgi path=json_proto method=POST [15:19:52]POST find Content-Length [15:19:52]Host: 172.17.60.69:8080 [15:19:52]Content-Length: 909 [15:19:52]Content-Type: application/json [15:19:52] [15:19:52]POST finish read [15:19:52]Found Content-Length = 909 [15:19:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73708", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:52]execute_script... [15:19:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73708", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:52]POST & json_proto [15:19:52]process_json_proto [15:19:52]json parsed OK: [15:19:52]protocol is kg_v1.0 [15:19:52]action value=close_receipt [15:19:52]process_action close_receipt [15:19:52]cmd_close_receipt [15:19:52]MH_GetDate [15:19:52]Write to MH i2c: F0 00 00 41 29 59 [15:19:52]Write i2c OK [15:19:52]MH_I2C_Read... [15:19:52]Read from MH i2c: F0 [15:19:52]MH_I2C_Read... [15:19:52]Read from MH i2c: F0 09 00 [15:19:52]MH_I2C_Read... [15:19:52]Read from MH i2c: F0 09 00 41 29 00 1C 82 60 66 D2 83 5F 66 E0 [15:19:52]GetLastDocTimeStamp 1717600642 [15:19:52]current date 1717600796 [15:19:52]FM_GetShiftState [15:19:52]SAM_PROTO_GetShiftState [15:19:52]wFMCommunicate request_size=4 [15:19:52]MH_SAM_APDU [15:19:52]CAPDU: 80 13 01 00 [15:19:52]Write to MH i2c: E2 08 00 42 29 80 13 01 00 00 00 00 00 E8 [15:19:52]Write i2c OK [15:19:52]MH_I2C_Read... [15:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:52]Read from MH i2c: E2 [15:19:52]MH_I2C_Read... [15:19:52]Read from MH i2c: E2 0E 00 [15:19:52]MH_I2C_Read... [15:19:52]Read from MH i2c: E2 0E 00 42 29 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 29 [15:19:52]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:19:52]wFMCommunicate OK [15:19:52]SAM_PROTO_GetShiftState done [15:19:52]FM_GetShiftState done [15:19:52]opened in 1717545925 [15:19:52]opened+sec_in_day 1717632325 [15:19:52]quantity*price = 4000 [15:19:52]sum+1 = 4001 [15:19:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 98 05.06.2024 15:19 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64178 ФПД: 70564816287239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T151956&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64178&fm=70564816287239&tin=02508201610067®Number=0000000000092737&sum=16500 0 [15:19:53]StoreToDocumentArchive [15:19:53]shift 375 fd 64178 [15:19:53]save to /storage/0375/doc_00064178 [15:19:53]save last doc name /storage/0375/doc_00064178 to /storage/kkm_last_doc_name [15:19:53]save OK [15:19:53]Clear old archive folders... [15:19:53]ProcessDocumentItem done err = 0, tmpTLVsize=390 [15:19:53]tlvbuf is B6FA7C60 [15:19:53]SAM_PROTO_ClearQueue [15:19:53]wFMCommunicate request_size=4 [15:19:53]MH_SAM_APDU [15:19:53]CAPDU: 80 09 00 00 [15:19:53]Write to MH i2c: E2 08 00 4F 29 80 09 00 00 00 00 00 00 EA [15:19:53]Write i2c OK [15:19:53]MH_I2C_Read... [15:19:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:53]Read from MH i2c: E2 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 03 00 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 03 00 4F 29 00 90 00 EC [15:19:53]RAPDU: 90 00 [15:19:53]wFMCommunicate OK [15:19:53]SAM_PROTO_ClearQueue done [15:19:53]KKMCreateOFDPacket [15:19:53]OFDProtocolAddRootSTLVToBuf [15:19:53]FM_MakeSignedData [15:19:53]FM_MakeSignedData [15:19:53]SAM_PROTO_SignData [15:19:53]wFMCommunicate request_size=4 [15:19:53]MH_SAM_APDU [15:19:53]CAPDU: 80 0D 01 02 [15:19:53]Write to MH i2c: E2 08 00 50 29 80 0D 01 02 00 00 00 00 F2 [15:19:53]Write i2c OK [15:19:53]MH_I2C_Read... [15:19:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:53]Read from MH i2c: E2 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 03 00 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 03 00 50 29 00 90 00 ED [15:19:53]RAPDU: 90 00 [15:19:53]wFMCommunicate OK [15:19:53]wFMCommunicate request_size=255 [15:19:53]MH_SAM_APDU [15:19:53]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 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 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 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 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 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [15:19:53]Write to MH i2c: E2 02 01 51 29 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 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 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 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 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 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 2F [15:19:53]Write i2c OK [15:19:53]MH_I2C_Read... [15:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:54]Read from MH i2c: E2 [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: E2 03 00 [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: E2 03 00 51 29 00 90 00 EE [15:19:54]RAPDU: 90 00 [15:19:54]wFMCommunicate OK [15:19:54]wFMCommunicate request_size=149 [15:19:54]MH_SAM_APDU [15:19:54]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1C 82 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B2 FA 00 00 35 04 06 00 40 2D A6 CE F6 07 [15:19:54]Write to MH i2c: E2 98 00 52 29 80 0D 02 02 90 00 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1C 82 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B2 FA 00 00 35 04 06 00 40 2D A6 CE F6 07 00 00 31 [15:19:54]Write i2c OK [15:19:54]MH_I2C_Read... [15:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:54]Read from MH i2c: E2 [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: E2 03 00 [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: E2 03 00 52 29 00 90 00 EF [15:19:54]RAPDU: 90 00 [15:19:54]wFMCommunicate OK [15:19:54]wFMCommunicate request_size=4 [15:19:54]MH_SAM_APDU [15:19:54]CAPDU: 80 0D 03 02 [15:19:54]Write to MH i2c: E2 08 00 53 29 80 0D 03 02 00 00 00 00 F7 [15:19:54]Write i2c OK [15:19:54]MH_I2C_Read... [15:19:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:54]Read from MH i2c: E2 [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: E2 0B 00 [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: E2 0B 00 53 29 00 89 79 F2 1B 13 1F 71 E8 90 00 92 [15:19:54]RAPDU: 89 79 F2 1B 13 1F 71 E8 90 00 [15:19:54]wFMCommunicate OK [15:19:54]SAM_PROTO_SignData done [15:19:54]FM_MakeSignedData done [15:19:54]CreateOFDProtocolMessage [15:19:54]wFMCommunicate request_size=4 [15:19:54]MH_SAM_APDU [15:19:54]CAPDU: 80 11 00 00 [15:19:54]Write to MH i2c: E2 08 00 54 29 80 11 00 00 00 00 00 00 F7 [15:19:54]Write i2c OK [15:19:54]MH_I2C_Read... [15:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:54]Read from MH i2c: E2 [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: E2 17 00 [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: E2 17 00 54 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 49 [15:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:19:54]wFMCommunicate OK [15:19:54]CreateOFDProtocolMessage done [15:19:54]OFDSenderStorePacket 64178 [15:19:54]StoreOFDPacket docnum=64178 [15:19:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 9A 01 00 00 DA 6D 92 01 46 E5 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 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 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 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 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 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1C 82 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B2 FA 00 00 35 04 06 00 40 2D A6 CE F6 07 89 79 F2 1B 13 1F 71 E8 [15:19:54]CheckFolder [15:19:54]dirname=/storage/ofd_packets [15:19:54]CheckFolder done [15:19:54]ProducePacketName [15:19:54]name=ofd_packets/00064178 [15:19:54]NVStorageSaveData ofd_packets/00064178 [15:19:54]File name is /storage/ofd_packets/00064178 [15:19:54]Write 440 bytes [15:19:54]NVStorageSaveData done [15:19:54]OFDSenderStorePacket done [15:19:54]KKMCreateOFDPacket done [15:19:54]NVStorageSaveData kkm_last_timestamp [15:19:54]File name is /storage/kkm_last_timestamp [15:19:54]Write 4 bytes [15:19:54]NVStorageSaveData done [15:19:54]ExternCall_PrintAddStr [15:19:54]wPrintStart [15:19:54]Write to MH i2c: 01 00 00 55 29 7E [15:19:54]Write i2c OK [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: 01 [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: 01 07 00 [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: 01 07 00 55 29 00 00 00 00 00 FF 0F 93 [15:19:54]RasterBufferAndPrint [15:19:54]line Счет N : (3)73708 [15:19:54]line ИНН: 02508201610067 [15:19:54]line Контрольно-Кассовый Чек [15:19:54]line ПРОДАЖА [15:19:54]line Товар: 4700000310036 [15:19:54]line Вода Жалалабат 27 0,5л [15:19:54]line 1.000 * 40.00 [15:19:54]line = 40.00 [15:19:54]line НДС 12% НСП 1% [15:19:54]line > о реализуемом товаре [15:19:54]line Товар: 2000036220012 [15:19:54]line Кофе Капучино XL(GABB TRADE) [15:19:54]line 1.000 * 125.00 [15:19:54]line = 125.00 [15:19:54]line НДС 12% НСП 1% [15:19:54]line > о реализуемом товаре [15:19:54]line ИТОГО: 165.00 [15:19:54]line НСП 1% : 1.46 [15:19:54]line НДС 12% : 17.52 [15:19:54]line Наличными: 165.00 [15:19:54]line Безнал.: 0.00 [15:19:54]line Место: АЗС № 117 "Партнер Нефть" [15:19:54]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:19:54]line СНО: Общий режим [15:19:54]line Чек 98 05.06.2024 15:19 [15:19:54]line Смена: 375 ФФД: 1.0 [15:19:54]line ЗНМ: 0300000031 [15:19:54]line РНМ: 0000000000092737 [15:19:54]line Версия ККМ: 001 [15:19:54]line ФМ: 0000000000875074 [15:19:54]line ФД: 64178 [15:19:54]line ФПД: 70564816287239 [15:19:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T151956&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64178&fm=70564816287239&tin=02508201610067®Number=0000000000092737&sum=16500 [15:19:54]line 0 [15:19:54]OFD Sender: Processing packet 64178 [packets to send 14, broken 13] [15:19:54]ProducePacketName [15:19:54]name=ofd_packets/00064178 [15:19:54]OFD Sender: To server: pG, [15:19:54]CommunicateWithHost lk.salyk.kg:30040 [15:19:54]ConnectInit lk.salyk.kg [15:19:54]written 0, free lines is 4095 [15:19:54]Connected sock=10 [15:19:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 9A 01 00 00 DA 6D 92 01 46 E5 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 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 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 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 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 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1C 82 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B2 FA 00 00 35 04 06 00 40 2D A6 CE F6 07 89 79 F2 1B 13 1F 71 E8 [15:19:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 CF 93 47 00 4F 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B2 FA 00 00 F4 03 04 00 28 2E 60 66 B6 04 01 00 00 97 51 DC BD A6 B8 BA 51 [15:19:54]CommunicateWithHost err = 0 [15:19:54]CheckOFDResponse [15:19:54]1017 (14) - 77093643461234 [15:19:54]1041 (16) - 0000000000875074 [15:19:54]1040 (4) - 64178 [15:19:54]1012 (4) - 05.06.2024 09:21 [15:19:54]1206 (1) - 0 [15:19:54]OFD Sender: Remove packet 64178 [15:19:54]ProducePacketName [15:19:54]name=ofd_packets/00064178 [15:19:54]NVStorageDeleteData [15:19:55]Write to MH i2c: 01 00 00 84 29 AD [15:19:55]Write i2c OK [15:19:55]MH_I2C_Read... [15:19:55]Read from MH i2c: 01 [15:19:55]MH_I2C_Read... [15:19:55]Read from MH i2c: 01 07 00 [15:19:55]MH_I2C_Read... [15:19:55]Read from MH i2c: 01 07 00 84 29 00 00 00 00 00 8D 0C 4D [15:19:55]RasterBufferAndPrint [15:19:55]line [15:19:55]line [15:19:55]line [15:19:55]line [15:19:55]line [15:19:55]written 0, free lines is 3220 [15:19:55]MH_Cut [15:19:55]Write to MH i2c: D1 01 00 8B 29 01 86 [15:19:55]Write i2c OK [15:19:55]MH_I2C_Read... [15:19:55]Read from MH i2c: D1 [15:19:55]MH_I2C_Read... [15:19:55]Read from MH i2c: D1 01 00 [15:19:55]MH_I2C_Read... [15:19:55]Read from MH i2c: D1 01 00 8B 29 00 85 [15:19:55]Write to MH i2c: 01 00 00 8C 29 B5 [15:19:55]Write i2c OK [15:19:55]MH_I2C_Read... [15:19:55]OFD Sender: No OFD packet to send [15:19:56]*** Cut start [15:19:56]*** Partial cut [15:19:56]*** CUTSNS_PIN = 1 [15:19:56]*** CUTSNS_PIN = 0 [15:19:56]*** Brake cut motor [15:19:56]Read from MH i2c: 01 [15:19:56]MH_I2C_Read... [15:19:56]*** Stop cut motor [15:19:56]*** Cut end [15:19:56]Read from MH i2c: 01 07 00 [15:19:56]MH_I2C_Read... [15:19:56]Read from MH i2c: 01 07 00 8C 29 00 00 00 00 00 FF 0F CA [15:19:56]process_action close_receipt done [15:19:56]requested_data is exist [15:19:56]produce_requested_data [15:19:56]requested_item fm.sn is exist - process it [15:19:56]wFMCommunicate request_size=4 [15:19:56]MH_SAM_APDU [15:19:56]CAPDU: 80 11 00 00 [15:19:56]Write to MH i2c: E2 08 00 8D 29 80 11 00 00 00 00 00 00 30 [15:19:56]Write i2c OK [15:19:56]MH_I2C_Read... [15:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:56]Read from MH i2c: E2 [15:19:56]MH_I2C_Read... [15:19:56]Read from MH i2c: E2 17 00 [15:19:56]MH_I2C_Read... [15:19:56]Read from MH i2c: E2 17 00 8D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 82 [15:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:19:56]wFMCommunicate OK [15:19:56]requested_item fd.num is exist - process it [15:19:56]SAM_PROTO_GetFieldsCounters [15:19:56]wFMCommunicate request_size=4 [15:19:56]MH_SAM_APDU [15:19:56]CAPDU: 80 13 00 00 [15:19:56]Write to MH i2c: E2 08 00 8E 29 80 13 00 00 00 00 00 00 33 [15:19:56]Write i2c OK [15:19:56]MH_I2C_Read... [15:19:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:56]Read from MH i2c: E2 [15:19:56]MH_I2C_Read... [15:19:56]Read from MH i2c: E2 62 00 [15:19:56]MH_I2C_Read... [15:19:56]Read from MH i2c: E2 62 00 8E 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B2 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [15:19:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B2 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:56]wFMCommunicate OK [15:19:56]SAM_PROTO_GetFieldsCounters done [15:19:56]requested_item shift.num is exist - process it [15:19:56]requested_item shift.opened is exist - process it [15:19:56]req_shift_opened [15:19:56]FM_GetShiftState [15:19:56]SAM_PROTO_GetShiftState [15:19:56]wFMCommunicate request_size=4 [15:19:56]MH_SAM_APDU [15:19:56]CAPDU: 80 13 01 00 [15:19:56]Write to MH i2c: E2 08 00 8F 29 80 13 01 00 00 00 00 00 35 [15:19:56]Write i2c OK [15:19:56]MH_I2C_Read... [15:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:56]Read from MH i2c: E2 [15:19:56]MH_I2C_Read... [15:19:56]Read from MH i2c: E2 0E 00 [15:19:56]MH_I2C_Read... [15:19:56]Read from MH i2c: E2 0E 00 8F 29 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 76 [15:19:56]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:19:56]wFMCommunicate OK [15:19:56]SAM_PROTO_GetShiftState done [15:19:56]FM_GetShiftState done [15:19:56]req_shift_opened done [15:19:56]requested_item shift.open_date is exist - process it [15:19:56]req_shift_open_date [15:19:56]req_shift_open_date done [15:19:56]produce_requested_data done [15:19:56]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64178,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [15:19:56]process_action_free close_receipt [15:19:56]json_value_free [15:19:56]json_value_free done [15:19:56]process_json_proto returns [15:19:56]Send response to host [15:19:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64178,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [15:19:56]free response buf [15:19:56]execute_script done [15:19:56]execute_script returns [15:19:56]free content buf [15:19:56]Sock 8.Close socket [15:19:56]Sock 8.Thread stoped [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:20:56]accept exits with 9 [15:20:56]New connection [15:20:56]New thread 3067276644 created [15:20:56]Thread 3067133284 joined [15:20:56]Waiting for new connection... [15:20:56] Sock 9.Parse request [15:20:56]Sock 9.Check first char [15:20:56]Sock 9.First char is OK [15:20:56]request: POST /json_proto HTTP/1.0 [15:20:56]Method: POST [15:20:56]URL: /json_proto [15:20:56]Method is POST - this is cgi request [15:20:56]url: /json_proto [15:20:56]query_string will be loaded in cgi processing [15:20:56]execute_cgi json_proto POST (null) [15:20:56]execute_cgi path=json_proto method=POST [15:20:56]POST find Content-Length [15:20:56]Host: 172.17.60.69:8080 [15:20:56]Content-Length: 631 [15:20:56]Content-Type: application/json [15:20:56] [15:20:56]POST finish read [15:20:56]Found Content-Length = 631 [15:20:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73709", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:56]execute_script... [15:20: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)73709", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:56]POST & json_proto [15:20:56]process_json_proto [15:20:56]json parsed OK: [15:20:56]protocol is kg_v1.0 [15:20:56]action value=close_receipt [15:20:56]process_action close_receipt [15:20:56]cmd_close_receipt [15:20:56]MH_GetDate [15:20:56]Write to MH i2c: F0 00 00 90 29 A8 [15:20:56]Write i2c OK [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: F0 [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: F0 09 00 [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: F0 09 00 90 29 00 5C 82 60 66 D2 83 5F 66 6F [15:20:56]GetLastDocTimeStamp 1717600796 [15:20:56]current date 1717600860 [15:20:56]FM_GetShiftState [15:20:56]SAM_PROTO_GetShiftState [15:20:56]wFMCommunicate request_size=4 [15:20:56]MH_SAM_APDU [15:20:56]CAPDU: 80 13 01 00 [15:20:56]Write to MH i2c: E2 08 00 91 29 80 13 01 00 00 00 00 00 37 [15:20:56]Write i2c OK [15:20:56]MH_I2C_Read... [15:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:56]Read from MH i2c: E2 [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: E2 0E 00 [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: E2 0E 00 91 29 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 78 [15:20:56]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:20:56]wFMCommunicate OK [15:20:56]SAM_PROTO_GetShiftState done [15:20:56]FM_GetShiftState done [15:20:56]opened in 1717545925 [15:20:56]opened+sec_in_day 1717632325 [15:20:56]quantity*price = 4000 [15:20:56]sum+1 = 4001 [15:20:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 99 05.06.2024 15:21 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64179 ФПД: 212683963288509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T152100&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64179&fm=212683963288509&tin=02508201610067®Number=0000000000092737&sum=4000 0 [15:20:57]StoreToDocumentArchive [15:20:57]shift 375 fd 64179 [15:20:57]save to /storage/0375/doc_00064179 [15:20:57]save last doc name /storage/0375/doc_00064179 to /storage/kkm_last_doc_name [15:20:57]save OK [15:20:57]Clear old archive folders... [15:20:57]ProcessDocumentItem done err = 0, tmpTLVsize=271 [15:20:57]tlvbuf is 0110F1A0 [15:20:57]SAM_PROTO_ClearQueue [15:20:57]wFMCommunicate request_size=4 [15:20:57]MH_SAM_APDU [15:20:57]CAPDU: 80 09 00 00 [15:20:57]Write to MH i2c: E2 08 00 9E 29 80 09 00 00 00 00 00 00 39 [15:20:57]Write i2c OK [15:20:57]MH_I2C_Read... [15:20:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:57]Read from MH i2c: E2 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 03 00 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 03 00 9E 29 00 90 00 3B [15:20:57]RAPDU: 90 00 [15:20:57]wFMCommunicate OK [15:20:57]SAM_PROTO_ClearQueue done [15:20:57]KKMCreateOFDPacket [15:20:57]OFDProtocolAddRootSTLVToBuf [15:20:57]FM_MakeSignedData [15:20:57]FM_MakeSignedData [15:20:57]SAM_PROTO_SignData [15:20:57]wFMCommunicate request_size=4 [15:20:57]MH_SAM_APDU [15:20:57]CAPDU: 80 0D 01 02 [15:20:57]Write to MH i2c: E2 08 00 9F 29 80 0D 01 02 00 00 00 00 41 [15:20:57]Write i2c OK [15:20:57]MH_I2C_Read... [15:20:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:57]Read from MH i2c: E2 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 03 00 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 03 00 9F 29 00 90 00 3C [15:20:57]RAPDU: 90 00 [15:20:57]wFMCommunicate OK [15:20:57]wFMCommunicate request_size=255 [15:20:57]MH_SAM_APDU [15:20:57]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 5C 82 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [15:20:57]Write to MH i2c: E2 02 01 A0 29 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 5C 82 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 A8 [15:20:57]Write i2c OK [15:20:57]MH_I2C_Read... [15:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:58]Read from MH i2c: E2 [15:20:58]MH_I2C_Read... [15:20:58]Read from MH i2c: E2 03 00 [15:20:58]MH_I2C_Read... [15:20:58]Read from MH i2c: E2 03 00 A0 29 00 90 00 3D [15:20:58]RAPDU: 90 00 [15:20:58]wFMCommunicate OK [15:20:58]wFMCommunicate request_size=30 [15:20:58]MH_SAM_APDU [15:20:58]CAPDU: 80 0D 02 02 19 30 38 37 35 30 37 34 10 04 04 00 B3 FA 00 00 35 04 06 00 C1 6F 58 14 CB BD [15:20:58]Write to MH i2c: E2 21 00 A1 29 80 0D 02 02 19 00 30 38 37 35 30 37 34 10 04 04 00 B3 FA 00 00 35 04 06 00 C1 6F 58 14 CB BD 00 00 0D [15:20:58]Write i2c OK [15:20:58]MH_I2C_Read... [15:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:58]Read from MH i2c: E2 [15:20:58]MH_I2C_Read... [15:20:58]Read from MH i2c: E2 03 00 [15:20:58]MH_I2C_Read... [15:20:58]Read from MH i2c: E2 03 00 A1 29 00 90 00 3E [15:20:58]RAPDU: 90 00 [15:20:58]wFMCommunicate OK [15:20:58]wFMCommunicate request_size=4 [15:20:58]MH_SAM_APDU [15:20:58]CAPDU: 80 0D 03 02 [15:20:58]Write to MH i2c: E2 08 00 A2 29 80 0D 03 02 00 00 00 00 46 [15:20:58]Write i2c OK [15:20:58]MH_I2C_Read... [15:20:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:58]Read from MH i2c: E2 [15:20:58]MH_I2C_Read... [15:20:58]Read from MH i2c: E2 0B 00 [15:20:58]MH_I2C_Read... [15:20:58]Read from MH i2c: E2 0B 00 A2 29 00 9D 59 CF 2B 36 A0 FB 88 90 00 90 [15:20:58]RAPDU: 9D 59 CF 2B 36 A0 FB 88 90 00 [15:20:58]wFMCommunicate OK [15:20:58]SAM_PROTO_SignData done [15:20:58]FM_MakeSignedData done [15:20:58]CreateOFDProtocolMessage [15:20:58]wFMCommunicate request_size=4 [15:20:58]MH_SAM_APDU [15:20:58]CAPDU: 80 11 00 00 [15:20:58]Write to MH i2c: E2 08 00 A3 29 80 11 00 00 00 00 00 00 46 [15:20:58]Write i2c OK [15:20:58]MH_I2C_Read... [15:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:58]Read from MH i2c: E2 [15:20:58]MH_I2C_Read... [15:20:58]Read from MH i2c: E2 17 00 [15:20:58]MH_I2C_Read... [15:20:58]Read from MH i2c: E2 17 00 A3 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 98 [15:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:20:58]wFMCommunicate OK [15:20:58]CreateOFDProtocolMessage done [15:20:58]OFDSenderStorePacket 64179 [15:20:58]StoreOFDPacket docnum=64179 [15:20:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 07 0A 1B 01 AD 7A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 5C 82 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B3 FA 00 00 35 04 06 00 C1 6F 58 14 CB BD 9D 59 CF 2B 36 A0 FB 88 [15:20:58]CheckFolder [15:20:58]dirname=/storage/ofd_packets [15:20:58]CheckFolder done [15:20:58]ProducePacketName [15:20:58]name=ofd_packets/00064179 [15:20:58]NVStorageSaveData ofd_packets/00064179 [15:20:58]File name is /storage/ofd_packets/00064179 [15:20:58]Write 321 bytes [15:20:58]NVStorageSaveData done [15:20:58]OFDSenderStorePacket done [15:20:58]KKMCreateOFDPacket done [15:20:58]NVStorageSaveData kkm_last_timestamp [15:20:58]File name is /storage/kkm_last_timestamp [15:20:58]Write 4 bytes [15:20:58]NVStorageSaveData done [15:20:58]ExternCall_PrintAddStr [15:20:58]wPrintStart [15:20:58]Write to MH i2c: 01 00 00 A4 29 CD [15:20:58]Write i2c OK [15:20:58]MH_I2C_Read... [15:20:58]Read from MH i2c: 01 [15:20:58]MH_I2C_Read... [15:20:58]Read from MH i2c: 01 07 00 [15:20:58]MH_I2C_Read... [15:20:58]Read from MH i2c: 01 07 00 A4 29 00 00 00 00 00 FF 0F E2 [15:20:58]RasterBufferAndPrint [15:20:58]line Счет N : (3)73709 [15:20:58]line ИНН: 02508201610067 [15:20:58]line Контрольно-Кассовый Чек [15:20:58]line ПРОДАЖА [15:20:58]line Товар: 4700000160211 [15:20:58]line Вода Легенда 0,5л [15:20:58]line 1.000 * 40.00 [15:20:58]line = 40.00 [15:20:58]line НДС 12% НСП 1% [15:20:58]line > о реализуемом товаре [15:20:58]line ИТОГО: 40.00 [15:20:58]line НСП 1% : 0.35 [15:20:58]line НДС 12% : 4.25 [15:20:58]line Наличными: 40.00 [15:20:58]line Безнал.: 0.00 [15:20:58]line Место: АЗС № 117 "Партнер Нефть" [15:20:58]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:20:58]line СНО: Общий режим [15:20:58]line Чек 99 05.06.2024 15:21 [15:20:58]line Смена: 375 ФФД: 1.0 [15:20:58]line ЗНМ: 0300000031 [15:20:58]line РНМ: 0000000000092737 [15:20:58]line Версия ККМ: 001 [15:20:58]line ФМ: 0000000000875074 [15:20:58]line ФД: 64179 [15:20:58]line ФПД: 212683963288509 [15:20:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T152100&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64179&fm=212683963288509&tin=02508201610067®Number=0000000000092737&sum=4000 [15:20:58]line 0 [15:20:58]OFD Sender: Processing packet 64179 [packets to send 14, broken 13] [15:20:58]ProducePacketName [15:20:58]name=ofd_packets/00064179 [15:20:58]OFD Sender: To server: pG, [15:20:58]CommunicateWithHost lk.salyk.kg:30040 [15:20:58]ConnectInit lk.salyk.kg [15:20:58]written 0, free lines is 4095 [15:20:58]Connected sock=10 [15:20:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 07 0A 1B 01 AD 7A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 5C 82 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B3 FA 00 00 35 04 06 00 C1 6F 58 14 CB BD 9D 59 CF 2B 36 A0 FB 88 [15:20:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C7 B5 47 00 94 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B3 FA 00 00 F4 03 04 00 67 2E 60 66 B6 04 01 00 00 F7 6F BB C6 06 6F 8F 4A [15:20:58]CommunicateWithHost err = 0 [15:20:58]CheckOFDResponse [15:20:58]1017 (14) - 77093643461234 [15:20:58]1041 (16) - 0000000000875074 [15:20:58]1040 (4) - 64179 [15:20:58]1012 (4) - 05.06.2024 09:22 [15:20:58]1206 (1) - 0 [15:20:58]OFD Sender: Remove packet 64179 [15:20:58]ProducePacketName [15:20:58]name=ofd_packets/00064179 [15:20:58]NVStorageDeleteData [15:20:58]Write to MH i2c: 01 00 00 CC 29 F5 [15:20:58]Write i2c OK [15:20:58]MH_I2C_Read... [15:20:58]Read from MH i2c: 01 [15:20:58]MH_I2C_Read... [15:20:58]Read from MH i2c: 01 07 00 [15:20:58]MH_I2C_Read... [15:20:58]Read from MH i2c: 01 07 00 CC 29 00 00 00 00 00 F6 0C FE [15:20:58]RasterBufferAndPrint [15:20:58]line [15:20:58]line [15:20:58]line [15:20:58]line [15:20:58]line [15:20:58]written 0, free lines is 3324 [15:20:59]MH_Cut [15:20:59]Write to MH i2c: D1 01 00 D3 29 01 CE [15:20:59]Write i2c OK [15:20:59]MH_I2C_Read... [15:20:59]Read from MH i2c: D1 [15:20:59]MH_I2C_Read... [15:20:59]Read from MH i2c: D1 01 00 [15:20:59]MH_I2C_Read... [15:20:59]Read from MH i2c: D1 01 00 D3 29 00 CD [15:20:59]Write to MH i2c: 01 00 00 D4 29 FD [15:20:59]Write i2c OK [15:20:59]MH_I2C_Read... [15:20:59]OFD Sender: No OFD packet to send [15:20:59]*** Cut start [15:20:59]*** Partial cut [15:20:59]*** CUTSNS_PIN = 1 [15:20:59]*** CUTSNS_PIN = 0 [15:21:00]*** Brake cut motor [15:21:00]Read from MH i2c: 01 [15:21:00]MH_I2C_Read... [15:21:00]*** Stop cut motor [15:21:00]*** Cut end [15:21:00]Read from MH i2c: 01 07 00 [15:21:00]MH_I2C_Read... [15:21:00]Read from MH i2c: 01 07 00 D4 29 00 00 00 00 00 FF 0F 12 [15:21:00]process_action close_receipt done [15:21:00]requested_data is exist [15:21:00]produce_requested_data [15:21:00]requested_item fm.sn is exist - process it [15:21:00]wFMCommunicate request_size=4 [15:21:00]MH_SAM_APDU [15:21:00]CAPDU: 80 11 00 00 [15:21:00]Write to MH i2c: E2 08 00 D5 29 80 11 00 00 00 00 00 00 78 [15:21:00]Write i2c OK [15:21:00]MH_I2C_Read... [15:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:00]Read from MH i2c: E2 [15:21:00]MH_I2C_Read... [15:21:00]Read from MH i2c: E2 17 00 [15:21:00]MH_I2C_Read... [15:21:00]Read from MH i2c: E2 17 00 D5 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CA [15:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:21:00]wFMCommunicate OK [15:21:00]requested_item fd.num is exist - process it [15:21:00]SAM_PROTO_GetFieldsCounters [15:21:00]wFMCommunicate request_size=4 [15:21:00]MH_SAM_APDU [15:21:00]CAPDU: 80 13 00 00 [15:21:00]Write to MH i2c: E2 08 00 D6 29 80 13 00 00 00 00 00 00 7B [15:21:00]Write i2c OK [15:21:00]MH_I2C_Read... [15:21:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:00]Read from MH i2c: E2 [15:21:00]MH_I2C_Read... [15:21:00]Read from MH i2c: E2 62 00 [15:21:00]MH_I2C_Read... [15:21:00]Read from MH i2c: E2 62 00 D6 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B3 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [15:21:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B3 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:00]wFMCommunicate OK [15:21:00]SAM_PROTO_GetFieldsCounters done [15:21:00]requested_item shift.num is exist - process it [15:21:00]requested_item shift.opened is exist - process it [15:21:00]req_shift_opened [15:21:00]FM_GetShiftState [15:21:00]SAM_PROTO_GetShiftState [15:21:00]wFMCommunicate request_size=4 [15:21:00]MH_SAM_APDU [15:21:00]CAPDU: 80 13 01 00 [15:21:00]Write to MH i2c: E2 08 00 D7 29 80 13 01 00 00 00 00 00 7D [15:21:00]Write i2c OK [15:21:00]MH_I2C_Read... [15:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:00]Read from MH i2c: E2 [15:21:00]MH_I2C_Read... [15:21:00]Read from MH i2c: E2 0E 00 [15:21:00]MH_I2C_Read... [15:21:00]Read from MH i2c: E2 0E 00 D7 29 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 BE [15:21:00]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:21:00]wFMCommunicate OK [15:21:00]SAM_PROTO_GetShiftState done [15:21:00]FM_GetShiftState done [15:21:00]req_shift_opened done [15:21:00]requested_item shift.open_date is exist - process it [15:21:00]req_shift_open_date [15:21:00]req_shift_open_date done [15:21:00]produce_requested_data done [15:21:00]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64179,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [15:21:00]process_action_free close_receipt [15:21:00]json_value_free [15:21:00]json_value_free done [15:21:00]process_json_proto returns [15:21:00]Send response to host [15:21:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64179,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [15:21:00]free response buf [15:21:00]execute_script done [15:21:00]execute_script returns [15:21:00]free content buf [15:21:00]Sock 9.Close socket [15:21:00]Sock 9.Thread stoped [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:33]accept exits with 8 [15:24:33]New connection [15:24:33]New thread 3067133284 created [15:24:33]Thread 3067276644 joined [15:24:33]Waiting for new connection... [15:24:33] Sock 8.Parse request [15:24:33]Sock 8.Check first char [15:24:33]Sock 8.First char is OK [15:24:33]request: POST /json_proto HTTP/1.0 [15:24:33]Method: POST [15:24:33]URL: /json_proto [15:24:33]Method is POST - this is cgi request [15:24:33]url: /json_proto [15:24:33]query_string will be loaded in cgi processing [15:24:33]execute_cgi json_proto POST (null) [15:24:33]execute_cgi path=json_proto method=POST [15:24:33]POST find Content-Length [15:24:33]Host: 172.17.60.69:8080 [15:24:33]Content-Length: 1050 [15:24:33]Content-Type: application/json [15:24:33] [15:24:33]POST finish read [15:24:33]Found Content-Length = 1050 [15:24:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73710", "tax_sys" : 0, "items" : [ { "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" : 5.000, "sum" : 1300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860103356604", "name": "\u041F\u0438\u0432\u043E \u041C\u0438\u043B\u043B\u0435\u0440 \u0414\u0436\u0435\u043D\u044C\u044E\u043D \u0414\u0440\u0430\u0444\u0442 0,33\u043B \u0441\u0442", "price" : 190.00, "quantity" : 2.000, "sum" : 380.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1680.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:33]execute_script... [15:24: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)73710", "tax_sys" : 0, "items" : [ { "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" : 5.000, "sum" : 1300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860103356604", "name": "\u041F\u0438\u0432\u043E \u041C\u0438\u043B\u043B\u0435\u0440 \u0414\u0436\u0435\u043D\u044C\u044E\u043D \u0414\u0440\u0430\u0444\u0442 0,33\u043B \u0441\u0442", "price" : 190.00, "quantity" : 2.000, "sum" : 380.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1680.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:33]POST & json_proto [15:24:33]process_json_proto [15:24:33]json parsed OK: [15:24:33]protocol is kg_v1.0 [15:24:33]action value=close_receipt [15:24:33]process_action close_receipt [15:24:33]cmd_close_receipt [15:24:33]MH_GetDate [15:24:33]Write to MH i2c: F0 00 00 D8 29 F0 [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: F0 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: F0 09 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: F0 09 00 D8 29 00 35 83 60 66 D2 83 5F 66 91 [15:24:33]GetLastDocTimeStamp 1717600860 [15:24:33]current date 1717601077 [15:24:33]FM_GetShiftState [15:24:33]SAM_PROTO_GetShiftState [15:24:33]wFMCommunicate request_size=4 [15:24:33]MH_SAM_APDU [15:24:33]CAPDU: 80 13 01 00 [15:24:33]Write to MH i2c: E2 08 00 D9 29 80 13 01 00 00 00 00 00 7F [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:33]Read from MH i2c: E2 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 0E 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 0E 00 D9 29 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 C0 [15:24:33]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:24:33]wFMCommunicate OK [15:24:33]SAM_PROTO_GetShiftState done [15:24:33]FM_GetShiftState done [15:24:33]opened in 1717545925 [15:24:33]opened+sec_in_day 1717632325 [15:24:33]quantity*price = 130000 [15:24:33]sum+1 = 130001 [15:24:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860103356604 Пиво Миллер Дженьюн Драфт 0,33л ст 2.000 * 190.00 = 380.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1680.00 НСП 1% : 14.86 НДС 12% : 178.40 Наличными: 1680.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 100 05.06.2024 15:24 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64180 ФПД: 189552430977304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T152437&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64180&fm=189552430977304&tin=02508201610067®Number=0000000000092737&sum=168000 0 [15:24:34]StoreToDocumentArchive [15:24:34]shift 375 fd 64180 [15:24:34]save to /storage/0375/doc_00064180 [15:24:34]save last doc name /storage/0375/doc_00064180 to /storage/kkm_last_doc_name [15:24:34]save OK [15:24:34]Clear old archive folders... [15:24:34]ProcessDocumentItem done err = 0, tmpTLVsize=431 [15:24:34]tlvbuf is 0110EB30 [15:24:34]SAM_PROTO_ClearQueue [15:24:34]wFMCommunicate request_size=4 [15:24:34]MH_SAM_APDU [15:24:34]CAPDU: 80 09 00 00 [15:24:34]Write to MH i2c: E2 08 00 E6 29 80 09 00 00 00 00 00 00 81 [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:34]Read from MH i2c: E2 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: E2 03 00 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: E2 03 00 E6 29 00 90 00 83 [15:24:34]RAPDU: 90 00 [15:24:34]wFMCommunicate OK [15:24:34]SAM_PROTO_ClearQueue done [15:24:34]KKMCreateOFDPacket [15:24:34]OFDProtocolAddRootSTLVToBuf [15:24:34]FM_MakeSignedData [15:24:34]FM_MakeSignedData [15:24:34]SAM_PROTO_SignData [15:24:34]wFMCommunicate request_size=4 [15:24:34]MH_SAM_APDU [15:24:34]CAPDU: 80 0D 01 02 [15:24:34]Write to MH i2c: E2 08 00 E7 29 80 0D 01 02 00 00 00 00 89 [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:34]Read from MH i2c: E2 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: E2 03 00 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: E2 03 00 E7 29 00 90 00 84 [15:24:34]RAPDU: 90 00 [15:24:34]wFMCommunicate OK [15:24:34]wFMCommunicate request_size=255 [15:24:34]MH_SAM_APDU [15:24:34]CAPDU: 80 0D 02 02 FA 03 00 AF 01 1E 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 88 13 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 D0 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 30 34 06 04 3B 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 70 [15:24:34]Write to MH i2c: E2 02 01 E8 29 80 0D 02 02 FA 00 03 00 AF 01 1E 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 88 13 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 D0 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 30 34 06 04 3B 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 70 00 00 4F [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 E8 29 00 90 00 85 [15:24:35]RAPDU: 90 00 [15:24:35]wFMCommunicate OK [15:24:35]wFMCommunicate request_size=190 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 0D 02 02 B9 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 45 00 00 00 00 07 04 06 00 40 90 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 35 83 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B4 FA 00 00 35 04 06 00 AC 65 9D 50 91 18 [15:24:35]Write to MH i2c: E2 C1 00 E9 29 80 0D 02 02 B9 00 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 45 00 00 00 00 07 04 06 00 40 90 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 35 83 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B4 FA 00 00 35 04 06 00 AC 65 9D 50 91 18 00 00 A5 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 03 00 E9 29 00 90 00 86 [15:24:35]RAPDU: 90 00 [15:24:35]wFMCommunicate OK [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 0D 03 02 [15:24:35]Write to MH i2c: E2 08 00 EA 29 80 0D 03 02 00 00 00 00 8E [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 0B 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 0B 00 EA 29 00 D7 1D 21 7A A6 AB 73 3B 90 00 1D [15:24:35]RAPDU: D7 1D 21 7A A6 AB 73 3B 90 00 [15:24:35]wFMCommunicate OK [15:24:35]SAM_PROTO_SignData done [15:24:35]FM_MakeSignedData done [15:24:35]CreateOFDProtocolMessage [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 11 00 00 [15:24:35]Write to MH i2c: E2 08 00 EB 29 80 11 00 00 00 00 00 00 8E [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 17 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 17 00 EB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E0 [15:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:24:35]wFMCommunicate OK [15:24:35]CreateOFDProtocolMessage done [15:24:35]OFDSenderStorePacket 64180 [15:24:35]StoreOFDPacket docnum=64180 [15:24:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 C3 01 00 00 AB A2 BB 01 F4 C6 5A 03 01 00 03 00 AF 01 1E 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 88 13 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 D0 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 30 34 06 04 3B 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 70 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 45 00 00 00 00 07 04 06 00 40 90 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 35 83 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B4 FA 00 00 35 04 06 00 AC 65 9D 50 91 18 D7 1D 21 7A A6 AB 73 3B [15:24:35]CheckFolder [15:24:35]dirname=/storage/ofd_packets [15:24:35]CheckFolder done [15:24:35]ProducePacketName [15:24:35]name=ofd_packets/00064180 [15:24:35]NVStorageSaveData ofd_packets/00064180 [15:24:35]File name is /storage/ofd_packets/00064180 [15:24:35]Write 481 bytes [15:24:35]NVStorageSaveData done [15:24:35]OFDSenderStorePacket done [15:24:35]KKMCreateOFDPacket done [15:24:35]NVStorageSaveData kkm_last_timestamp [15:24:35]File name is /storage/kkm_last_timestamp [15:24:35]Write 4 bytes [15:24:35]NVStorageSaveData done [15:24:35]ExternCall_PrintAddStr [15:24:35]wPrintStart [15:24:35]Write to MH i2c: 01 00 00 EC 29 15 [15:24:35]OFD Sender: Processing packet 64180 [packets to send 14, broken 13] [15:24:35]ProducePacketName [15:24:35]name=ofd_packets/00064180 [15:24:35]OFD Sender: To server: pG, [15:24:35]CommunicateWithHost lk.salyk.kg:30040 [15:24:35]ConnectInit lk.salyk.kg [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: 01 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: 01 07 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: 01 07 00 EC 29 00 00 00 00 00 FF 0F 2A [15:24:35]RasterBufferAndPrint [15:24:35]line Счет N : (3)73710 [15:24:35]line ИНН: 02508201610067 [15:24:35]line Контрольно-Кассовый Чек [15:24:35]line ПРОДАЖА [15:24:35]line Товар: 4860103356611 [15:24:35]line Пиво Миллер Дженьюн Драфт 0,5л ст [15:24:35]line 5.000 * 260.00 [15:24:35]line = 1300.00 [15:24:35]line НДС 12% НСП 1% [15:24:35]line > о реализуемом товаре [15:24:35]line Товар: 4860103356604 [15:24:35]line Пиво Миллер Дженьюн Драфт 0,33л ст [15:24:35]line 2.000 * 190.00 [15:24:35]line = 380.00 [15:24:35]line НДС 12% НСП 1% [15:24:35]line > о реализуемом товаре [15:24:35]line ИТОГО: 1680.00 [15:24:35]line НСП 1% : 14.86 [15:24:35]line НДС 12% : 178.40 [15:24:35]line Наличными: 1680.00 [15:24:35]line Безнал.: 0.00 [15:24:35]line Место: АЗС № 117 "Партнер Нефть" [15:24:35]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:24:35]line СНО: Общий режим [15:24:35]line Чек 100 05.06.2024 15:24 [15:24:35]line Смена: 375 ФФД: 1.0 [15:24:35]line ЗНМ: 0300000031 [15:24:35]line РНМ: 0000000000092737 [15:24:35]line Версия ККМ: 001 [15:24:35]line ФМ: 0000000000875074 [15:24:35]line ФД: 64180 [15:24:35]line ФПД: 189552430977304 [15:24:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T152437&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64180&fm=189552430977304&tin=02508201610067®Number=0000000000092737&sum=168000 [15:24:35]line 0 [15:24:35]written 0, free lines is 4095 [15:24:35]Connected sock=10 [15:24:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 C3 01 00 00 AB A2 BB 01 F4 C6 5A 03 01 00 03 00 AF 01 1E 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 88 13 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 D0 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 30 34 06 04 3B 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 70 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 45 00 00 00 00 07 04 06 00 40 90 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 35 83 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B4 FA 00 00 35 04 06 00 AC 65 9D 50 91 18 D7 1D 21 7A A6 AB 73 3B [15:24:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C5 F3 47 00 2B 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B4 FA 00 00 F4 03 04 00 41 2F 60 66 B6 04 01 00 00 AF 9D AE 26 63 DE 5D CB [15:24:35]CommunicateWithHost err = 0 [15:24:35]CheckOFDResponse [15:24:35]1017 (14) - 77093643461234 [15:24:35]1041 (16) - 0000000000875074 [15:24:35]1040 (4) - 64180 [15:24:35]1012 (4) - 05.06.2024 09:26 [15:24:35]1206 (1) - 0 [15:24:35]OFD Sender: Remove packet 64180 [15:24:35]ProducePacketName [15:24:35]name=ofd_packets/00064180 [15:24:35]NVStorageDeleteData [15:24:36]Write to MH i2c: 01 00 00 1C 2A 46 [15:24:36]Write i2c OK [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: 01 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: 01 07 00 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: 01 07 00 1C 2A 00 00 00 00 00 7B 0C D4 [15:24:36]RasterBufferAndPrint [15:24:36]line [15:24:36]line [15:24:36]line [15:24:36]line [15:24:36]line [15:24:36]written 0, free lines is 3204 [15:24:36]MH_Cut [15:24:36]Write to MH i2c: D1 01 00 23 2A 01 1F [15:24:36]Write i2c OK [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: D1 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: D1 01 00 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: D1 01 00 23 2A 00 1E [15:24:36]Write to MH i2c: 01 00 00 24 2A 4E [15:24:36]Write i2c OK [15:24:36]MH_I2C_Read... [15:24:36]OFD Sender: No OFD packet to send [15:24:37]*** Cut start [15:24:37]*** Partial cut [15:24:37]*** CUTSNS_PIN = 1 [15:24:37]*** CUTSNS_PIN = 0 [15:24:37]*** Brake cut motor [15:24:37]Read from MH i2c: 01 [15:24:37]MH_I2C_Read... [15:24:37]*** Stop cut motor [15:24:37]*** Cut end [15:24:37]Read from MH i2c: 01 07 00 [15:24:37]MH_I2C_Read... [15:24:37]Read from MH i2c: 01 07 00 24 2A 00 00 00 00 00 FF 0F 63 [15:24:37]process_action close_receipt done [15:24:37]requested_data is exist [15:24:37]produce_requested_data [15:24:37]requested_item fm.sn is exist - process it [15:24:37]wFMCommunicate request_size=4 [15:24:37]MH_SAM_APDU [15:24:37]CAPDU: 80 11 00 00 [15:24:37]Write to MH i2c: E2 08 00 25 2A 80 11 00 00 00 00 00 00 C9 [15:24:37]Write i2c OK [15:24:37]MH_I2C_Read... [15:24:37]Read from MH i2c: E2 [15:24:37]MH_I2C_Read... [15:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:37]Read from MH i2c: E2 17 00 [15:24:37]MH_I2C_Read... [15:24:37]Read from MH i2c: E2 17 00 25 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1B [15:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:24:37]wFMCommunicate OK [15:24:37]requested_item fd.num is exist - process it [15:24:37]SAM_PROTO_GetFieldsCounters [15:24:37]wFMCommunicate request_size=4 [15:24:37]MH_SAM_APDU [15:24:37]CAPDU: 80 13 00 00 [15:24:37]Write to MH i2c: E2 08 00 26 2A 80 13 00 00 00 00 00 00 CC [15:24:37]Write i2c OK [15:24:37]MH_I2C_Read... [15:24:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:37]Read from MH i2c: E2 [15:24:37]MH_I2C_Read... [15:24:37]Read from MH i2c: E2 62 00 [15:24:37]MH_I2C_Read... [15:24:37]Read from MH i2c: E2 62 00 26 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B4 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [15:24:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B4 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:37]wFMCommunicate OK [15:24:37]SAM_PROTO_GetFieldsCounters done [15:24:37]requested_item shift.num is exist - process it [15:24:37]requested_item shift.opened is exist - process it [15:24:37]req_shift_opened [15:24:37]FM_GetShiftState [15:24:37]SAM_PROTO_GetShiftState [15:24:37]wFMCommunicate request_size=4 [15:24:37]MH_SAM_APDU [15:24:37]CAPDU: 80 13 01 00 [15:24:37]Write to MH i2c: E2 08 00 27 2A 80 13 01 00 00 00 00 00 CE [15:24:37]Write i2c OK [15:24:37]MH_I2C_Read... [15:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:37]Read from MH i2c: E2 [15:24:37]MH_I2C_Read... [15:24:37]Read from MH i2c: E2 0E 00 [15:24:37]MH_I2C_Read... [15:24:37]Read from MH i2c: E2 0E 00 27 2A 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 0F [15:24:37]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:24:37]wFMCommunicate OK [15:24:37]SAM_PROTO_GetShiftState done [15:24:37]FM_GetShiftState done [15:24:37]req_shift_opened done [15:24:37]requested_item shift.open_date is exist - process it [15:24:37]req_shift_open_date [15:24:37]req_shift_open_date done [15:24:37]produce_requested_data done [15:24:37]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64180,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [15:24:37]process_action_free close_receipt [15:24:37]json_value_free [15:24:37]json_value_free done [15:24:37]process_json_proto returns [15:24:37]Send response to host [15:24:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64180,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [15:24:37]free response buf [15:24:37]execute_script done [15:24:37]execute_script returns [15:24:37]free content buf [15:24:37]Sock 8.Close socket [15:24:37]Sock 8.Thread stoped [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:34]accept exits with 9 [15:47:34]New connection [15:47:34]New thread 3067276644 created [15:47:34]Thread 3067133284 joined [15:47:34]Waiting for new connection... [15:47:34] Sock 9.Parse request [15:47:34]Sock 9.Check first char [15:47:34]Sock 9.First char is OK [15:47:34]request: POST /json_proto HTTP/1.0 [15:47:34]Method: POST [15:47:34]URL: /json_proto [15:47:34]Method is POST - this is cgi request [15:47:34]url: /json_proto [15:47:34]query_string will be loaded in cgi processing [15:47:34]execute_cgi json_proto POST (null) [15:47:34]execute_cgi path=json_proto method=POST [15:47:34]POST find Content-Length [15:47:34]Host: 172.17.60.69:8080 [15:47:34]Content-Length: 881 [15:47:34]Content-Type: application/json [15:47:34] [15:47:34]POST finish read [15:47:34]Found Content-Length = 881 [15:47:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73711", "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": "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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:34]execute_script... [15:47: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)73711", "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": "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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:34]POST & json_proto [15:47:34]process_json_proto [15:47:34]json parsed OK: [15:47:34]protocol is kg_v1.0 [15:47:34]action value=close_receipt [15:47:34]process_action close_receipt [15:47:34]cmd_close_receipt [15:47:34]MH_GetDate [15:47:34]Write to MH i2c: F0 00 00 28 2A 41 [15:47:34]Write i2c OK [15:47:34]MH_I2C_Read... [15:47:34]Read from MH i2c: F0 [15:47:34]MH_I2C_Read... [15:47:34]Read from MH i2c: F0 09 00 [15:47:34]MH_I2C_Read... [15:47:34]Read from MH i2c: F0 09 00 28 2A 00 9A 88 60 66 D2 83 5F 66 4C [15:47:34]GetLastDocTimeStamp 1717601077 [15:47:34]current date 1717602458 [15:47:34]FM_GetShiftState [15:47:34]SAM_PROTO_GetShiftState [15:47:34]wFMCommunicate request_size=4 [15:47:34]MH_SAM_APDU [15:47:34]CAPDU: 80 13 01 00 [15:47:34]Write to MH i2c: E2 08 00 29 2A 80 13 01 00 00 00 00 00 D0 [15:47:34]Write i2c OK [15:47:34]MH_I2C_Read... [15:47:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:34]Read from MH i2c: E2 [15:47:34]MH_I2C_Read... [15:47:34]Read from MH i2c: E2 0E 00 [15:47:34]MH_I2C_Read... [15:47:34]Read from MH i2c: E2 0E 00 29 2A 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 11 [15:47:34]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:47:34]wFMCommunicate OK [15:47:34]SAM_PROTO_GetShiftState done [15:47:34]FM_GetShiftState done [15:47:34]opened in 1717545925 [15:47:34]opened+sec_in_day 1717632325 [15:47:34]quantity*price = 5000 [15:47:34]sum+1 = 5001 [15:47:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 101 05.06.2024 15:47 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64181 ФПД: 176075921165391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T154738&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64181&fm=176075921165391&tin=02508201610067®Number=0000000000092737&sum=19000 0 [15:47:35]StoreToDocumentArchive [15:47:35]shift 375 fd 64181 [15:47:35]save to /storage/0375/doc_00064181 [15:47:35]save last doc name /storage/0375/doc_00064181 to /storage/kkm_last_doc_name [15:47:35]save OK [15:47:35]Clear old archive folders... [15:47:35]ProcessDocumentItem done err = 0, tmpTLVsize=378 [15:47:35]tlvbuf is 01120670 [15:47:35]SAM_PROTO_ClearQueue [15:47:35]wFMCommunicate request_size=4 [15:47:35]MH_SAM_APDU [15:47:35]CAPDU: 80 09 00 00 [15:47:35]Write to MH i2c: E2 08 00 36 2A 80 09 00 00 00 00 00 00 D2 [15:47:35]Write i2c OK [15:47:35]MH_I2C_Read... [15:47:35]Read from MH i2c: E2 [15:47:35]MH_I2C_Read... [15:47:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:35]Read from MH i2c: E2 03 00 [15:47:35]MH_I2C_Read... [15:47:35]Read from MH i2c: E2 03 00 36 2A 00 90 00 D4 [15:47:35]RAPDU: 90 00 [15:47:35]wFMCommunicate OK [15:47:35]SAM_PROTO_ClearQueue done [15:47:35]KKMCreateOFDPacket [15:47:35]OFDProtocolAddRootSTLVToBuf [15:47:35]FM_MakeSignedData [15:47:35]FM_MakeSignedData [15:47:35]SAM_PROTO_SignData [15:47:35]wFMCommunicate request_size=4 [15:47:35]MH_SAM_APDU [15:47:35]CAPDU: 80 0D 01 02 [15:47:35]Write to MH i2c: E2 08 00 37 2A 80 0D 01 02 00 00 00 00 DA [15:47:35]Write i2c OK [15:47:35]MH_I2C_Read... [15:47:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:35]Read from MH i2c: E2 [15:47:35]MH_I2C_Read... [15:47:35]Read from MH i2c: E2 03 00 [15:47:35]MH_I2C_Read... [15:47:35]Read from MH i2c: E2 03 00 37 2A 00 90 00 D5 [15:47:35]RAPDU: 90 00 [15:47:35]wFMCommunicate OK [15:47:35]wFMCommunicate request_size=255 [15:47:35]MH_SAM_APDU [15:47:35]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 [15:47:35]Write to MH i2c: E2 02 01 38 2A 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 00 00 29 [15:47:35]Write i2c OK [15:47:35]MH_I2C_Read... [15:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:36]Read from MH i2c: E2 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 03 00 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 03 00 38 2A 00 90 00 D6 [15:47:36]RAPDU: 90 00 [15:47:36]wFMCommunicate OK [15:47:36]wFMCommunicate request_size=137 [15:47:36]MH_SAM_APDU [15:47:36]CAPDU: 80 0D 02 02 84 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 65 00 00 00 F4 03 04 00 9A 88 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B5 FA 00 00 35 04 06 00 A0 23 DE BC 0C 4F [15:47:36]Write to MH i2c: E2 8C 00 39 2A 80 0D 02 02 84 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 65 00 00 00 F4 03 04 00 9A 88 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B5 FA 00 00 35 04 06 00 A0 23 DE BC 0C 4F 00 00 AB [15:47:36]Write i2c OK [15:47:36]MH_I2C_Read... [15:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:36]Read from MH i2c: E2 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 03 00 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 03 00 39 2A 00 90 00 D7 [15:47:36]RAPDU: 90 00 [15:47:36]wFMCommunicate OK [15:47:36]wFMCommunicate request_size=4 [15:47:36]MH_SAM_APDU [15:47:36]CAPDU: 80 0D 03 02 [15:47:36]Write to MH i2c: E2 08 00 3A 2A 80 0D 03 02 00 00 00 00 DF [15:47:36]Write i2c OK [15:47:36]MH_I2C_Read... [15:47:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:36]Read from MH i2c: E2 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 0B 00 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 0B 00 3A 2A 00 FC E4 99 D3 D0 F0 F9 1B 90 00 00 [15:47:36]RAPDU: FC E4 99 D3 D0 F0 F9 1B 90 00 [15:47:36]wFMCommunicate OK [15:47:36]SAM_PROTO_SignData done [15:47:36]FM_MakeSignedData done [15:47:36]CreateOFDProtocolMessage [15:47:36]wFMCommunicate request_size=4 [15:47:36]MH_SAM_APDU [15:47:36]CAPDU: 80 11 00 00 [15:47:36]Write to MH i2c: E2 08 00 3B 2A 80 11 00 00 00 00 00 00 DF [15:47:36]Write i2c OK [15:47:36]MH_I2C_Read... [15:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:36]Read from MH i2c: E2 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 17 00 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 17 00 3B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 31 [15:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:47:36]wFMCommunicate OK [15:47:36]CreateOFDProtocolMessage done [15:47:36]OFDSenderStorePacket 64181 [15:47:36]StoreOFDPacket docnum=64181 [15:47:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 8E 01 00 00 AE 26 86 01 A0 DB 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 65 00 00 00 F4 03 04 00 9A 88 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B5 FA 00 00 35 04 06 00 A0 23 DE BC 0C 4F FC E4 99 D3 D0 F0 F9 1B [15:47:36]CheckFolder [15:47:36]dirname=/storage/ofd_packets [15:47:36]CheckFolder done [15:47:36]ProducePacketName [15:47:36]name=ofd_packets/00064181 [15:47:36]NVStorageSaveData ofd_packets/00064181 [15:47:36]File name is /storage/ofd_packets/00064181 [15:47:36]Write 428 bytes [15:47:36]NVStorageSaveData done [15:47:36]OFDSenderStorePacket done [15:47:36]KKMCreateOFDPacket done [15:47:36]NVStorageSaveData kkm_last_timestamp [15:47:36]File name is /storage/kkm_last_timestamp [15:47:36]Write 4 bytes [15:47:36]NVStorageSaveData done [15:47:36]ExternCall_PrintAddStr [15:47:36]wPrintStart [15:47:36]Write to MH i2c: 01 00 00 3C 2A 66 [15:47:36]Write i2c OK [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: 01 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: 01 07 00 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: 01 07 00 3C 2A 00 00 00 00 00 FF 0F 7B [15:47:36]RasterBufferAndPrint [15:47:36]line Счет N : (3)73711 [15:47:36]line ИНН: 02508201610067 [15:47:36]line Контрольно-Кассовый Чек [15:47:36]line ПРОДАЖА [15:47:36]line Товар: 5449000005489 [15:47:36]line Вода Бонаква 1л б/г [15:47:36]line 1.000 * 50.00 [15:47:36]line = 50.00 [15:47:36]line НДС 12% НСП 1% [15:47:36]line > о реализуемом товаре [15:47:36]line Товар: 48747059 [15:47:36]line Сигареты Winston Legend Blue [15:47:36]line 1.000 * 140.00 [15:47:36]line = 140.00 [15:47:36]line НДС 12% НСП 1% [15:47:36]line > о реализуемом товаре [15:47:36]line ИТОГО: 190.00 [15:47:36]line НСП 1% : 1.68 [15:47:36]line НДС 12% : 20.18 [15:47:36]line Наличными: 190.00 [15:47:36]line Безнал.: 0.00 [15:47:36]line Место: АЗС № 117 "Партнер Нефть" [15:47:36]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:47:36]line СНО: Общий режим [15:47:36]line Чек 101 05.06.2024 15:47 [15:47:36]line Смена: 375 ФФД: 1.0 [15:47:36]line ЗНМ: 0300000031 [15:47:36]line РНМ: 0000000000092737 [15:47:36]line Версия ККМ: 001 [15:47:36]line ФМ: 0000000000875074 [15:47:36]line ФД: 64181 [15:47:36]line ФПД: 176075921165391 [15:47:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T154738&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64181&fm=176075921165391&tin=02508201610067®Number=0000000000092737&sum=19000 [15:47:36]line 0 [15:47:36]written 0, free lines is 4095 [15:47:36]OFD Sender: Processing packet 64181 [packets to send 14, broken 13] [15:47:36]ProducePacketName [15:47:36]name=ofd_packets/00064181 [15:47:36]OFD Sender: To server: pG, [15:47:36]CommunicateWithHost lk.salyk.kg:30040 [15:47:36]ConnectInit lk.salyk.kg [15:47:36]Connected sock=10 [15:47:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 8E 01 00 00 AE 26 86 01 A0 DB 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 65 00 00 00 F4 03 04 00 9A 88 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B5 FA 00 00 35 04 06 00 A0 23 DE BC 0C 4F FC E4 99 D3 D0 F0 F9 1B [15:47:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 2D 60 47 00 51 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B5 FA 00 00 F4 03 04 00 A5 34 60 66 B6 04 01 00 00 92 79 E6 FD D6 A8 D3 51 [15:47:36]CommunicateWithHost err = 0 [15:47:36]CheckOFDResponse [15:47:36]1017 (14) - 77093643461234 [15:47:36]1041 (16) - 0000000000875074 [15:47:36]1040 (4) - 64181 [15:47:36]1012 (4) - 05.06.2024 09:49 [15:47:36]1206 (1) - 0 [15:47:36]OFD Sender: Remove packet 64181 [15:47:36]ProducePacketName [15:47:36]name=ofd_packets/00064181 [15:47:36]NVStorageDeleteData [15:47:36]Write to MH i2c: 01 00 00 6B 2A 95 [15:47:36]Write i2c OK [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: 01 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: 01 07 00 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: 01 07 00 6B 2A 00 00 00 00 00 76 0C 1E [15:47:36]RasterBufferAndPrint [15:47:36]line [15:47:36]line [15:47:36]line [15:47:36]line [15:47:36]line [15:47:36]written 0, free lines is 3199 [15:47:36]MH_Cut [15:47:36]Write to MH i2c: D1 01 00 72 2A 01 6E [15:47:36]Write i2c OK [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: D1 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: D1 01 00 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: D1 01 00 72 2A 00 6D [15:47:36]Write to MH i2c: 01 00 00 73 2A 9D [15:47:36]Write i2c OK [15:47:36]MH_I2C_Read... [15:47:37]OFD Sender: No OFD packet to send [15:47:37]*** Cut start [15:47:37]*** Partial cut [15:47:37]*** CUTSNS_PIN = 1 [15:47:37]*** CUTSNS_PIN = 0 [15:47:38]*** Brake cut motor [15:47:38]Read from MH i2c: 01 [15:47:38]MH_I2C_Read... [15:47:38]*** Stop cut motor [15:47:38]*** Cut end [15:47:38]Read from MH i2c: 01 07 00 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: 01 07 00 73 2A 00 00 00 00 00 FF 0F B2 [15:47:38]process_action close_receipt done [15:47:38]requested_data is exist [15:47:38]produce_requested_data [15:47:38]requested_item fm.sn is exist - process it [15:47:38]wFMCommunicate request_size=4 [15:47:38]MH_SAM_APDU [15:47:38]CAPDU: 80 11 00 00 [15:47:38]Write to MH i2c: E2 08 00 74 2A 80 11 00 00 00 00 00 00 18 [15:47:38]Write i2c OK [15:47:38]MH_I2C_Read... [15:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:38]Read from MH i2c: E2 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 17 00 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 17 00 74 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6A [15:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:47:38]wFMCommunicate OK [15:47:38]requested_item fd.num is exist - process it [15:47:38]SAM_PROTO_GetFieldsCounters [15:47:38]wFMCommunicate request_size=4 [15:47:38]MH_SAM_APDU [15:47:38]CAPDU: 80 13 00 00 [15:47:38]Write to MH i2c: E2 08 00 75 2A 80 13 00 00 00 00 00 00 1B [15:47:38]Write i2c OK [15:47:38]MH_I2C_Read... [15:47:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:38]Read from MH i2c: E2 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 62 00 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 62 00 75 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B5 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [15:47:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B5 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:38]wFMCommunicate OK [15:47:38]SAM_PROTO_GetFieldsCounters done [15:47:38]requested_item shift.num is exist - process it [15:47:38]requested_item shift.opened is exist - process it [15:47:38]req_shift_opened [15:47:38]FM_GetShiftState [15:47:38]SAM_PROTO_GetShiftState [15:47:38]wFMCommunicate request_size=4 [15:47:38]MH_SAM_APDU [15:47:38]CAPDU: 80 13 01 00 [15:47:38]Write to MH i2c: E2 08 00 76 2A 80 13 01 00 00 00 00 00 1D [15:47:38]Write i2c OK [15:47:38]MH_I2C_Read... [15:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:38]Read from MH i2c: E2 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 0E 00 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 0E 00 76 2A 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 5E [15:47:38]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:47:38]wFMCommunicate OK [15:47:38]SAM_PROTO_GetShiftState done [15:47:38]FM_GetShiftState done [15:47:38]req_shift_opened done [15:47:38]requested_item shift.open_date is exist - process it [15:47:38]req_shift_open_date [15:47:38]req_shift_open_date done [15:47:38]produce_requested_data done [15:47:38]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64181,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [15:47:38]process_action_free close_receipt [15:47:38]json_value_free [15:47:38]json_value_free done [15:47:38]process_json_proto returns [15:47:38]Send response to host [15:47:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64181,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [15:47:38]free response buf [15:47:38]execute_script done [15:47:38]execute_script returns [15:47:38]free content buf [15:47:38]Sock 9.Close socket [15:47:38]Sock 9.Thread stoped [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]accept exits with 8 [15:55:02]New connection [15:55:02]New thread 3067133284 created [15:55:02]Thread 3067276644 joined [15:55:02]Waiting for new connection... [15:55:02] Sock 8.Parse request [15:55:02]Sock 8.Check first char [15:55:02]Sock 8.First char is OK [15:55:02]request: POST /json_proto HTTP/1.0 [15:55:02]Method: POST [15:55:02]URL: /json_proto [15:55:02]Method is POST - this is cgi request [15:55:02]url: /json_proto [15:55:02]query_string will be loaded in cgi processing [15:55:02]execute_cgi json_proto POST (null) [15:55:02]execute_cgi path=json_proto method=POST [15:55:02]POST find Content-Length [15:55:02]Host: 172.17.60.69:8080 [15:55:02]Content-Length: 659 [15:55:02]Content-Type: application/json [15:55:02] [15:55:02]POST finish read [15:55:02]Found Content-Length = 659 [15:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73712", "tax_sys" : 0, "items" : [ { "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:02]execute_script... [15:55: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)73712", "tax_sys" : 0, "items" : [ { "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:02]POST & json_proto [15:55:02]process_json_proto [15:55:02]json parsed OK: [15:55:02]protocol is kg_v1.0 [15:55:02]action value=close_receipt [15:55:02]process_action close_receipt [15:55:02]cmd_close_receipt [15:55:02]MH_GetDate [15:55:02]Write to MH i2c: F0 00 00 77 2A 90 [15:55:02]Write i2c OK [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: F0 [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: F0 09 00 [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: F0 09 00 77 2A 00 5A 8A 60 66 D2 83 5F 66 5D [15:55:02]GetLastDocTimeStamp 1717602458 [15:55:02]current date 1717602906 [15:55:02]FM_GetShiftState [15:55:02]SAM_PROTO_GetShiftState [15:55:02]wFMCommunicate request_size=4 [15:55:02]MH_SAM_APDU [15:55:02]CAPDU: 80 13 01 00 [15:55:02]Write to MH i2c: E2 08 00 78 2A 80 13 01 00 00 00 00 00 1F [15:55:02]Write i2c OK [15:55:02]MH_I2C_Read... [15:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:02]Read from MH i2c: E2 [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: E2 0E 00 [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: E2 0E 00 78 2A 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 60 [15:55:02]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:55:02]wFMCommunicate OK [15:55:02]SAM_PROTO_GetShiftState done [15:55:02]FM_GetShiftState done [15:55:02]opened in 1717545925 [15:55:02]opened+sec_in_day 1717632325 [15:55:02]quantity*price = 4900 [15:55:02]sum+1 = 4901 [15:55:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 102 05.06.2024 15:55 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64182 ФПД: 233620956294175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T155506&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64182&fm=233620956294175&tin=02508201610067®Number=0000000000092737&sum=4900 0 [15:55:03]StoreToDocumentArchive [15:55:03]shift 375 fd 64182 [15:55:03]save to /storage/0375/doc_00064182 [15:55:03]save last doc name /storage/0375/doc_00064182 to /storage/kkm_last_doc_name [15:55:03]save OK [15:55:03]Clear old archive folders... [15:55:03]ProcessDocumentItem done err = 0, tmpTLVsize=291 [15:55:03]tlvbuf is B6FA7960 [15:55:03]SAM_PROTO_ClearQueue [15:55:03]wFMCommunicate request_size=4 [15:55:03]MH_SAM_APDU [15:55:03]CAPDU: 80 09 00 00 [15:55:03]Write to MH i2c: E2 08 00 85 2A 80 09 00 00 00 00 00 00 21 [15:55:03]Write i2c OK [15:55:03]MH_I2C_Read... [15:55:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:03]Read from MH i2c: E2 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 85 2A 00 90 00 23 [15:55:03]RAPDU: 90 00 [15:55:03]wFMCommunicate OK [15:55:03]SAM_PROTO_ClearQueue done [15:55:03]KKMCreateOFDPacket [15:55:03]OFDProtocolAddRootSTLVToBuf [15:55:03]FM_MakeSignedData [15:55:03]FM_MakeSignedData [15:55:03]SAM_PROTO_SignData [15:55:03]wFMCommunicate request_size=4 [15:55:03]MH_SAM_APDU [15:55:03]CAPDU: 80 0D 01 02 [15:55:03]Write to MH i2c: E2 08 00 86 2A 80 0D 01 02 00 00 00 00 29 [15:55:03]Write i2c OK [15:55:03]MH_I2C_Read... [15:55:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:03]Read from MH i2c: E2 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 86 2A 00 90 00 24 [15:55:03]RAPDU: 90 00 [15:55:03]wFMCommunicate OK [15:55:03]wFMCommunicate request_size=255 [15:55:03]MH_SAM_APDU [15:55:03]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5A 8A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [15:55:03]Write to MH i2c: E2 02 01 87 2A 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5A 8A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 63 [15:55:03]Write i2c OK [15:55:03]MH_I2C_Read... [15:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:03]Read from MH i2c: E2 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 87 2A 00 90 00 25 [15:55:03]RAPDU: 90 00 [15:55:03]wFMCommunicate OK [15:55:03]wFMCommunicate request_size=50 [15:55:03]MH_SAM_APDU [15:55:03]CAPDU: 80 0D 02 02 2D 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B6 FA 00 00 35 04 06 00 D4 7A 1E 1C AC 1F [15:55:03]Write to MH i2c: E2 35 00 88 2A 80 0D 02 02 2D 00 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B6 FA 00 00 35 04 06 00 D4 7A 1E 1C AC 1F 00 00 90 [15:55:03]Write i2c OK [15:55:03]MH_I2C_Read... [15:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:03]Read from MH i2c: E2 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 88 2A 00 90 00 26 [15:55:03]RAPDU: 90 00 [15:55:03]wFMCommunicate OK [15:55:03]wFMCommunicate request_size=4 [15:55:03]MH_SAM_APDU [15:55:03]CAPDU: 80 0D 03 02 [15:55:03]Write to MH i2c: E2 08 00 89 2A 80 0D 03 02 00 00 00 00 2E [15:55:03]Write i2c OK [15:55:03]MH_I2C_Read... [15:55:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:03]Read from MH i2c: E2 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 0B 00 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 0B 00 89 2A 00 31 02 BA 2B 18 88 FD C9 90 00 AD [15:55:03]RAPDU: 31 02 BA 2B 18 88 FD C9 90 00 [15:55:03]wFMCommunicate OK [15:55:03]SAM_PROTO_SignData done [15:55:03]FM_MakeSignedData done [15:55:03]CreateOFDProtocolMessage [15:55:03]wFMCommunicate request_size=4 [15:55:03]MH_SAM_APDU [15:55:03]CAPDU: 80 11 00 00 [15:55:03]Write to MH i2c: E2 08 00 8A 2A 80 11 00 00 00 00 00 00 2E [15:55:03]Write i2c OK [15:55:03]MH_I2C_Read... [15:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:04]Read from MH i2c: E2 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: E2 17 00 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: E2 17 00 8A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 80 [15:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:55:04]wFMCommunicate OK [15:55:04]CreateOFDProtocolMessage done [15:55:04]OFDSenderStorePacket 64182 [15:55:04]StoreOFDPacket docnum=64182 [15:55:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 37 01 00 00 0D 47 2F 01 50 8B 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5A 8A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B6 FA 00 00 35 04 06 00 D4 7A 1E 1C AC 1F 31 02 BA 2B 18 88 FD C9 [15:55:04]CheckFolder [15:55:04]dirname=/storage/ofd_packets [15:55:04]CheckFolder done [15:55:04]ProducePacketName [15:55:04]name=ofd_packets/00064182 [15:55:04]NVStorageSaveData ofd_packets/00064182 [15:55:04]File name is /storage/ofd_packets/00064182 [15:55:04]Write 341 bytes [15:55:04]NVStorageSaveData done [15:55:04]OFDSenderStorePacket done [15:55:04]KKMCreateOFDPacket done [15:55:04]NVStorageSaveData kkm_last_timestamp [15:55:04]File name is /storage/kkm_last_timestamp [15:55:04]Write 4 bytes [15:55:04]NVStorageSaveData done [15:55:04]ExternCall_PrintAddStr [15:55:04]wPrintStart [15:55:04]Write to MH i2c: 01 00 00 8B 2A B5 [15:55:04]Write i2c OK [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: 01 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: 01 07 00 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: 01 07 00 8B 2A 00 00 00 00 00 FF 0F CA [15:55:04]RasterBufferAndPrint [15:55:04]line Счет N : (3)73712 [15:55:04]line ИНН: 02508201610067 [15:55:04]line Контрольно-Кассовый Чек [15:55:04]line ПРОДАЖА [15:55:04]line Товар: 46227720 [15:55:04]line Р/ж mentos pure fresh виноград ролл 15,5 [15:55:04]line 1.000 * 49.00 [15:55:04]line = 49.00 [15:55:04]line НДС 12% НСП 1% [15:55:04]line > о реализуемом товаре [15:55:04]line ИТОГО: 49.00 [15:55:04]line НСП 1% : 0.43 [15:55:04]line НДС 12% : 5.20 [15:55:04]line Наличными: 49.00 [15:55:04]line Безнал.: 0.00 [15:55:04]line Место: АЗС № 117 "Партнер Нефть" [15:55:04]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:55:04]line СНО: Общий режим [15:55:04]line Чек 102 05.06.2024 15:55 [15:55:04]line Смена: 375 ФФД: 1.0 [15:55:04]line ЗНМ: 0300000031 [15:55:04]line РНМ: 0000000000092737 [15:55:04]line Версия ККМ: 001 [15:55:04]line ФМ: 0000000000875074 [15:55:04]line ФД: 64182 [15:55:04]line ФПД: 233620956294175 [15:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T155506&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64182&fm=233620956294175&tin=02508201610067®Number=0000000000092737&sum=4900 [15:55:04]OFD Sender: Processing packet 64182 [packets to send 14, broken 13] [15:55:04]ProducePacketName [15:55:04]name=ofd_packets/00064182 [15:55:04]OFD Sender: To server: pG, [15:55:04]CommunicateWithHost lk.salyk.kg:30040 [15:55:04]ConnectInit lk.salyk.kg [15:55:04]line 0 [15:55:04]written 0, free lines is 4095 [15:55:04]Connected sock=10 [15:55:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 37 01 00 00 0D 47 2F 01 50 8B 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5A 8A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B6 FA 00 00 35 04 06 00 D4 7A 1E 1C AC 1F 31 02 BA 2B 18 88 FD C9 [15:55:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 49 C8 47 00 5F 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B6 FA 00 00 F4 03 04 00 65 36 60 66 B6 04 01 00 00 D1 DB 3B 4D 29 90 66 3F [15:55:04]CommunicateWithHost err = 0 [15:55:04]CheckOFDResponse [15:55:04]1017 (14) - 77093643461234 [15:55:04]1041 (16) - 0000000000875074 [15:55:04]1040 (4) - 64182 [15:55:04]1012 (4) - 05.06.2024 09:56 [15:55:04]1206 (1) - 0 [15:55:04]OFD Sender: Remove packet 64182 [15:55:04]ProducePacketName [15:55:04]name=ofd_packets/00064182 [15:55:04]NVStorageDeleteData [15:55:04]Write to MH i2c: 01 00 00 B4 2A DE [15:55:04]Write i2c OK [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: 01 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: 01 07 00 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: 01 07 00 B4 2A 00 00 00 00 00 F1 0C E2 [15:55:04]RasterBufferAndPrint [15:55:04]line [15:55:04]line [15:55:04]line [15:55:04]line [15:55:04]line [15:55:04]written 0, free lines is 3319 [15:55:04]MH_Cut [15:55:04]Write to MH i2c: D1 01 00 BB 2A 01 B7 [15:55:04]Write i2c OK [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: D1 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: D1 01 00 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: D1 01 00 BB 2A 00 B6 [15:55:04]Write to MH i2c: 01 00 00 BC 2A E6 [15:55:04]Write i2c OK [15:55:04]MH_I2C_Read... [15:55:05]OFD Sender: No OFD packet to send [15:55:05]*** Cut start [15:55:05]*** Partial cut [15:55:05]*** CUTSNS_PIN = 1 [15:55:05]*** CUTSNS_PIN = 0 [15:55:05]*** Brake cut motor [15:55:06]Read from MH i2c: 01 [15:55:06]MH_I2C_Read... [15:55:06]*** Stop cut motor [15:55:06]*** Cut end [15:55:06]Read from MH i2c: 01 07 00 [15:55:06]MH_I2C_Read... [15:55:06]Read from MH i2c: 01 07 00 BC 2A 00 00 00 00 00 FF 0F FB [15:55:06]process_action close_receipt done [15:55:06]requested_data is exist [15:55:06]produce_requested_data [15:55:06]requested_item fm.sn is exist - process it [15:55:06]wFMCommunicate request_size=4 [15:55:06]MH_SAM_APDU [15:55:06]CAPDU: 80 11 00 00 [15:55:06]Write to MH i2c: E2 08 00 BD 2A 80 11 00 00 00 00 00 00 61 [15:55:06]Write i2c OK [15:55:06]MH_I2C_Read... [15:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:06]Read from MH i2c: E2 [15:55:06]MH_I2C_Read... [15:55:06]Read from MH i2c: E2 17 00 [15:55:06]MH_I2C_Read... [15:55:06]Read from MH i2c: E2 17 00 BD 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B3 [15:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:55:06]wFMCommunicate OK [15:55:06]requested_item fd.num is exist - process it [15:55:06]SAM_PROTO_GetFieldsCounters [15:55:06]wFMCommunicate request_size=4 [15:55:06]MH_SAM_APDU [15:55:06]CAPDU: 80 13 00 00 [15:55:06]Write to MH i2c: E2 08 00 BE 2A 80 13 00 00 00 00 00 00 64 [15:55:06]Write i2c OK [15:55:06]MH_I2C_Read... [15:55:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:06]Read from MH i2c: E2 [15:55:06]MH_I2C_Read... [15:55:06]Read from MH i2c: E2 62 00 [15:55:06]MH_I2C_Read... [15:55:06]Read from MH i2c: E2 62 00 BE 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B6 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [15:55:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B6 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:06]wFMCommunicate OK [15:55:06]SAM_PROTO_GetFieldsCounters done [15:55:06]requested_item shift.num is exist - process it [15:55:06]requested_item shift.opened is exist - process it [15:55:06]req_shift_opened [15:55:06]FM_GetShiftState [15:55:06]SAM_PROTO_GetShiftState [15:55:06]wFMCommunicate request_size=4 [15:55:06]MH_SAM_APDU [15:55:06]CAPDU: 80 13 01 00 [15:55:06]Write to MH i2c: E2 08 00 BF 2A 80 13 01 00 00 00 00 00 66 [15:55:06]Write i2c OK [15:55:06]MH_I2C_Read... [15:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:06]Read from MH i2c: E2 [15:55:06]MH_I2C_Read... [15:55:06]Read from MH i2c: E2 0E 00 [15:55:06]MH_I2C_Read... [15:55:06]Read from MH i2c: E2 0E 00 BF 2A 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 A7 [15:55:06]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:55:06]wFMCommunicate OK [15:55:06]SAM_PROTO_GetShiftState done [15:55:06]FM_GetShiftState done [15:55:06]req_shift_opened done [15:55:06]requested_item shift.open_date is exist - process it [15:55:06]req_shift_open_date [15:55:06]req_shift_open_date done [15:55:06]produce_requested_data done [15:55:06]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64182,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [15:55:06]process_action_free close_receipt [15:55:06]json_value_free [15:55:06]json_value_free done [15:55:06]process_json_proto returns [15:55:06]Send response to host [15:55:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64182,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [15:55:06]free response buf [15:55:06]execute_script done [15:55:06]execute_script returns [15:55:06]free content buf [15:55:06]Sock 8.Close socket [15:55:06]Sock 8.Thread stoped [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:34]accept exits with 9 [15:56:34]New connection [15:56:34]New thread 3067276644 created [15:56:34]Thread 3067133284 joined [15:56:34]Waiting for new connection... [15:56:34] Sock 9.Parse request [15:56:34]Sock 9.Check first char [15:56:34]Sock 9.First char is OK [15:56:34]request: POST /json_proto HTTP/1.0 [15:56:34]Method: POST [15:56:34]URL: /json_proto [15:56:34]Method is POST - this is cgi request [15:56:34]url: /json_proto [15:56:34]query_string will be loaded in cgi processing [15:56:34]execute_cgi json_proto POST (null) [15:56:34]execute_cgi path=json_proto method=POST [15:56:34]POST find Content-Length [15:56:34]Host: 172.17.60.69:8080 [15:56:34]Content-Length: 620 [15:56:34]Content-Type: application/json [15:56:34] [15:56:34]POST finish read [15:56:34]Found Content-Length = 620 [15:56:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73713", "tax_sys" : 0, "items" : [ { "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:34]execute_script... [15: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)73713", "tax_sys" : 0, "items" : [ { "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:34]POST & json_proto [15:56:34]process_json_proto [15:56:34]json parsed OK: [15:56:34]protocol is kg_v1.0 [15:56:34]action value=close_receipt [15:56:34]process_action close_receipt [15:56:34]cmd_close_receipt [15:56:34]MH_GetDate [15:56:34]Write to MH i2c: F0 00 00 C0 2A D9 [15:56:34]Write i2c OK [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: F0 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: F0 09 00 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: F0 09 00 C0 2A 00 B6 8A 60 66 D2 83 5F 66 02 [15:56:34]GetLastDocTimeStamp 1717602906 [15:56:34]current date 1717602998 [15:56:34]FM_GetShiftState [15:56:34]SAM_PROTO_GetShiftState [15:56:34]wFMCommunicate request_size=4 [15:56:34]MH_SAM_APDU [15:56:34]CAPDU: 80 13 01 00 [15:56:34]Write to MH i2c: E2 08 00 C1 2A 80 13 01 00 00 00 00 00 68 [15:56:34]Write i2c OK [15:56:34]MH_I2C_Read... [15:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:34]Read from MH i2c: E2 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 0E 00 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 0E 00 C1 2A 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 A9 [15:56:34]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:56:34]wFMCommunicate OK [15:56:34]SAM_PROTO_GetShiftState done [15:56:34]FM_GetShiftState done [15:56:34]opened in 1717545925 [15:56:34]opened+sec_in_day 1717632325 [15:56:34]quantity*price = 14000 [15:56:34]sum+1 = 14001 [15:56:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 103 05.06.2024 15:56 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64183 ФПД: 119453222762880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T155638&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64183&fm=119453222762880&tin=02508201610067®Number=0000000000092737&sum=14000 0 [15:56:35]StoreToDocumentArchive [15:56:35]shift 375 fd 64183 [15:56:35]save to /storage/0375/doc_00064183 [15:56:35]save last doc name /storage/0375/doc_00064183 to /storage/kkm_last_doc_name [15:56:35]save OK [15:56:35]Clear old archive folders... [15:56:35]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:56:35]tlvbuf is 0110EEC0 [15:56:35]SAM_PROTO_ClearQueue [15:56:35]wFMCommunicate request_size=4 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 09 00 00 [15:56:35]Write to MH i2c: E2 08 00 CE 2A 80 09 00 00 00 00 00 00 6A [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 03 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 03 00 CE 2A 00 90 00 6C [15:56:35]RAPDU: 90 00 [15:56:35]wFMCommunicate OK [15:56:35]SAM_PROTO_ClearQueue done [15:56:35]KKMCreateOFDPacket [15:56:35]OFDProtocolAddRootSTLVToBuf [15:56:35]FM_MakeSignedData [15:56:35]FM_MakeSignedData [15:56:35]SAM_PROTO_SignData [15:56:35]wFMCommunicate request_size=4 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 0D 01 02 [15:56:35]Write to MH i2c: E2 08 00 CF 2A 80 0D 01 02 00 00 00 00 72 [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 03 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 03 00 CF 2A 00 90 00 6D [15:56:35]RAPDU: 90 00 [15:56:35]wFMCommunicate OK [15:56:35]wFMCommunicate request_size=255 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 67 00 00 00 F4 03 04 00 B6 8A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [15:56:35]Write to MH i2c: E2 02 01 D0 2A 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 67 00 00 00 F4 03 04 00 B6 8A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 3B [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 03 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 03 00 D0 2A 00 90 00 6E [15:56:35]RAPDU: 90 00 [15:56:35]wFMCommunicate OK [15:56:35]wFMCommunicate request_size=32 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 B7 FA 00 00 35 04 06 00 6C A4 5E E8 F9 80 [15:56:35]Write to MH i2c: E2 23 00 D1 2A 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 B7 FA 00 00 35 04 06 00 6C A4 5E E8 F9 80 00 00 51 [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 03 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 03 00 D1 2A 00 90 00 6F [15:56:35]RAPDU: 90 00 [15:56:35]wFMCommunicate OK [15:56:35]wFMCommunicate request_size=4 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 0D 03 02 [15:56:35]Write to MH i2c: E2 08 00 D2 2A 80 0D 03 02 00 00 00 00 77 [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 0B 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 0B 00 D2 2A 00 B8 F4 16 A5 82 C2 25 A0 90 00 E8 [15:56:35]RAPDU: B8 F4 16 A5 82 C2 25 A0 90 00 [15:56:35]wFMCommunicate OK [15:56:35]SAM_PROTO_SignData done [15:56:35]FM_MakeSignedData done [15:56:35]CreateOFDProtocolMessage [15:56:35]wFMCommunicate request_size=4 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 11 00 00 [15:56:35]Write to MH i2c: E2 08 00 D3 2A 80 11 00 00 00 00 00 00 77 [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 17 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 17 00 D3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C9 [15:56:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:56:35]wFMCommunicate OK [15:56:35]CreateOFDProtocolMessage done [15:56:35]OFDSenderStorePacket 64183 [15:56:35]StoreOFDPacket docnum=64183 [15:56:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 5B CA 1D 01 A4 7B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 67 00 00 00 F4 03 04 00 B6 8A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B7 FA 00 00 35 04 06 00 6C A4 5E E8 F9 80 B8 F4 16 A5 82 C2 25 A0 [15:56:35]CheckFolder [15:56:35]dirname=/storage/ofd_packets [15:56:35]CheckFolder done [15:56:35]ProducePacketName [15:56:35]name=ofd_packets/00064183 [15:56:35]NVStorageSaveData ofd_packets/00064183 [15:56:35]File name is /storage/ofd_packets/00064183 [15:56:35]Write 323 bytes [15:56:35]NVStorageSaveData done [15:56:35]OFDSenderStorePacket done [15:56:35]KKMCreateOFDPacket done [15:56:35]NVStorageSaveData kkm_last_timestamp [15:56:35]File name is /storage/kkm_last_timestamp [15:56:35]Write 4 bytes [15:56:35]NVStorageSaveData done [15:56:35]ExternCall_PrintAddStr [15:56:35]wPrintStart [15:56:35]Write to MH i2c: 01 00 00 D4 2A FE [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: 01 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: 01 07 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: 01 07 00 D4 2A 00 00 00 00 00 FF 0F 13 [15:56:35]RasterBufferAndPrint [15:56:35]line Счет N : (3)73713 [15:56:35]line ИНН: 02508201610067 [15:56:35]line Контрольно-Кассовый Чек [15:56:35]line ПРОДАЖА [15:56:35]line Товар: 48747059 [15:56:35]line Сигареты Winston Legend Blue [15:56:35]line 1.000 * 140.00 [15:56:35]line = 140.00 [15:56:35]line НДС 12% НСП 1% [15:56:35]line > о реализуемом товаре [15:56:35]line ИТОГО: 140.00 [15:56:35]line НСП 1% : 1.24 [15:56:35]line НДС 12% : 14.87 [15:56:35]line Наличными: 140.00 [15:56:35]line Безнал.: 0.00 [15:56:35]line Место: АЗС № 117 "Партнер Нефть" [15:56:35]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:56:35]line СНО: Общий режим [15:56:35]line Чек 103 05.06.2024 15:56 [15:56:35]line Смена: 375 ФФД: 1.0 [15:56:35]line ЗНМ: 0300000031 [15:56:35]line РНМ: 0000000000092737 [15:56:35]line Версия ККМ: 001 [15:56:35]line ФМ: 0000000000875074 [15:56:35]line ФД: 64183 [15:56:35]line ФПД: 119453222762880 [15:56:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T155638&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64183&fm=119453222762880&tin=02508201610067®Number=0000000000092737&sum=14000 [15:56:35]line 0 [15:56:35]written 0, free lines is 4095 [15:56:35]OFD Sender: Processing packet 64183 [packets to send 14, broken 13] [15:56:35]ProducePacketName [15:56:35]name=ofd_packets/00064183 [15:56:35]OFD Sender: To server: pG, [15:56:35]CommunicateWithHost lk.salyk.kg:30040 [15:56:35]ConnectInit lk.salyk.kg [15:56:35]Connected sock=10 [15:56:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 5B CA 1D 01 A4 7B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 67 00 00 00 F4 03 04 00 B6 8A 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B7 FA 00 00 35 04 06 00 6C A4 5E E8 F9 80 B8 F4 16 A5 82 C2 25 A0 [15:56:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 47 66 47 00 9B 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B7 FA 00 00 F4 03 04 00 C1 36 60 66 B6 04 01 00 00 5F 79 8B 40 80 CF D6 F8 [15:56:36]CommunicateWithHost err = 0 [15:56:36]CheckOFDResponse [15:56:36]1017 (14) - 77093643461234 [15:56:36]1041 (16) - 0000000000875074 [15:56:36]1040 (4) - 64183 [15:56:36]1012 (4) - 05.06.2024 09:58 [15:56:36]1206 (1) - 0 [15:56:36]OFD Sender: Remove packet 64183 [15:56:36]ProducePacketName [15:56:36]name=ofd_packets/00064183 [15:56:36]NVStorageDeleteData [15:56:36]Write to MH i2c: 01 00 00 FD 2A 27 [15:56:36]Write i2c OK [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: 01 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: 01 07 00 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: 01 07 00 FD 2A 00 00 00 00 00 DB 0C 15 [15:56:36]RasterBufferAndPrint [15:56:36]line [15:56:36]line [15:56:36]line [15:56:36]line [15:56:36]line [15:56:36]written 0, free lines is 3297 [15:56:36]MH_Cut [15:56:36]Write to MH i2c: D1 01 00 04 2B 01 01 [15:56:36]Write i2c OK [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: D1 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: D1 01 00 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: D1 01 00 04 2B 00 00 [15:56:36]Write to MH i2c: 01 00 00 05 2B 30 [15:56:36]Write i2c OK [15:56:36]MH_I2C_Read... [15:56:36]OFD Sender: No OFD packet to send [15:56:37]*** Cut start [15:56:37]*** Partial cut [15:56:37]*** CUTSNS_PIN = 1 [15:56:37]*** CUTSNS_PIN = 0 [15:56:37]*** Brake cut motor [15:56:37]Read from MH i2c: 01 [15:56:37]MH_I2C_Read... [15:56:37]*** Stop cut motor [15:56:37]*** Cut end [15:56:37]Read from MH i2c: 01 07 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: 01 07 00 05 2B 00 00 00 00 00 FF 0F 45 [15:56:37]process_action close_receipt done [15:56:37]requested_data is exist [15:56:37]produce_requested_data [15:56:37]requested_item fm.sn is exist - process it [15:56:37]wFMCommunicate request_size=4 [15:56:37]MH_SAM_APDU [15:56:37]CAPDU: 80 11 00 00 [15:56:37]Write to MH i2c: E2 08 00 06 2B 80 11 00 00 00 00 00 00 AB [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 17 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 17 00 06 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FD [15:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:56:37]wFMCommunicate OK [15:56:37]requested_item fd.num is exist - process it [15:56:37]SAM_PROTO_GetFieldsCounters [15:56:37]wFMCommunicate request_size=4 [15:56:37]MH_SAM_APDU [15:56:37]CAPDU: 80 13 00 00 [15:56:37]Write to MH i2c: E2 08 00 07 2B 80 13 00 00 00 00 00 00 AE [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 62 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 62 00 07 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B7 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [15:56:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B7 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:37]wFMCommunicate OK [15:56:37]SAM_PROTO_GetFieldsCounters done [15:56:37]requested_item shift.num is exist - process it [15:56:37]requested_item shift.opened is exist - process it [15:56:37]req_shift_opened [15:56:37]FM_GetShiftState [15:56:37]SAM_PROTO_GetShiftState [15:56:37]wFMCommunicate request_size=4 [15:56:37]MH_SAM_APDU [15:56:37]CAPDU: 80 13 01 00 [15:56:37]Write to MH i2c: E2 08 00 08 2B 80 13 01 00 00 00 00 00 B0 [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 0E 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 0E 00 08 2B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 F1 [15:56:37]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:56:37]wFMCommunicate OK [15:56:37]SAM_PROTO_GetShiftState done [15:56:37]FM_GetShiftState done [15:56:37]req_shift_opened done [15:56:37]requested_item shift.open_date is exist - process it [15:56:37]req_shift_open_date [15:56:37]req_shift_open_date done [15:56:37]produce_requested_data done [15:56:37]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64183,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [15:56:37]process_action_free close_receipt [15:56:37]json_value_free [15:56:37]json_value_free done [15:56:37]process_json_proto returns [15:56:37]Send response to host [15:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64183,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [15:56:37]free response buf [15:56:37]execute_script done [15:56:37]execute_script returns [15:56:37]free content buf [15:56:37]Sock 9.Close socket [15:56:37]Sock 9.Thread stoped [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:00]accept exits with 8 [15:58:00]New connection [15:58:00]New thread 3067133284 created [15:58:00]Thread 3067276644 joined [15:58:00]Waiting for new connection... [15:58:00] Sock 8.Parse request [15:58:00]Sock 8.Check first char [15:58:00]Sock 8.First char is OK [15:58:00]request: POST /json_proto HTTP/1.0 [15:58:00]Method: POST [15:58:00]URL: /json_proto [15:58:00]Method is POST - this is cgi request [15:58:00]url: /json_proto [15:58:00]query_string will be loaded in cgi processing [15:58:00]execute_cgi json_proto POST (null) [15:58:00]execute_cgi path=json_proto method=POST [15:58:00]POST find Content-Length [15:58:00]Host: 172.17.60.69:8080 [15:58:00]Content-Length: 932 [15:58:00]Content-Type: application/json [15:58:00] [15:58:00]POST finish read [15:58:00]Found Content-Length = 932 [15:58:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73714", "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" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032750018", "name": "\u041A\u0440\u0443\u0430\u0441\u0441\u0430\u043D DC \u0448\u043E\u043A\u043E\u043B\u0430\u0434 75\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 162.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:00]execute_script... [15:58: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)73714", "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" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032750018", "name": "\u041A\u0440\u0443\u0430\u0441\u0441\u0430\u043D DC \u0448\u043E\u043A\u043E\u043B\u0430\u0434 75\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 162.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:00]POST & json_proto [15:58:00]process_json_proto [15:58:00]json parsed OK: [15:58:00]protocol is kg_v1.0 [15:58:00]action value=close_receipt [15:58:00]process_action close_receipt [15:58:00]cmd_close_receipt [15:58:00]MH_GetDate [15:58:00]Write to MH i2c: F0 00 00 09 2B 23 [15:58:00]Write i2c OK [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: F0 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: F0 09 00 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: F0 09 00 09 2B 00 0C 8B 60 66 D2 83 5F 66 A3 [15:58:00]GetLastDocTimeStamp 1717602998 [15:58:00]current date 1717603084 [15:58:00]FM_GetShiftState [15:58:00]SAM_PROTO_GetShiftState [15:58:00]wFMCommunicate request_size=4 [15:58:00]MH_SAM_APDU [15:58:00]CAPDU: 80 13 01 00 [15:58:00]Write to MH i2c: E2 08 00 0A 2B 80 13 01 00 00 00 00 00 B2 [15:58:00]Write i2c OK [15:58:00]MH_I2C_Read... [15:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:00]Read from MH i2c: E2 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 0E 00 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 0E 00 0A 2B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 F3 [15:58:00]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:58:00]wFMCommunicate OK [15:58:00]SAM_PROTO_GetShiftState done [15:58:00]FM_GetShiftState done [15:58:00]opened in 1717545925 [15:58:00]opened+sec_in_day 1717632325 [15:58:00]quantity*price = 11300 [15:58:00]sum+1 = 11301 [15:58:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032750018 Круассан DC шоколад 75г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 162.00 НСП 1% : 1.43 НДС 12% : 17.20 Наличными: 162.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 104 05.06.2024 15:58 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64184 ФПД: 76001846988275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T155804&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64184&fm=76001846988275&tin=02508201610067®Number=0000000000092737&sum=16200 0 [15:58:01]StoreToDocumentArchive [15:58:01]shift 375 fd 64184 [15:58:01]save to /storage/0375/doc_00064184 [15:58:01]save last doc name /storage/0375/doc_00064184 to /storage/kkm_last_doc_name [15:58:01]save OK [15:58:01]Clear old archive folders... [15:58:01]ProcessDocumentItem done err = 0, tmpTLVsize=389 [15:58:01]tlvbuf is 00FAE180 [15:58:01]SAM_PROTO_ClearQueue [15:58:01]wFMCommunicate request_size=4 [15:58:01]MH_SAM_APDU [15:58:01]CAPDU: 80 09 00 00 [15:58:01]Write to MH i2c: E2 08 00 17 2B 80 09 00 00 00 00 00 00 B4 [15:58:01]Write i2c OK [15:58:01]MH_I2C_Read... [15:58:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:01]Read from MH i2c: E2 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: E2 03 00 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: E2 03 00 17 2B 00 90 00 B6 [15:58:01]RAPDU: 90 00 [15:58:01]wFMCommunicate OK [15:58:01]SAM_PROTO_ClearQueue done [15:58:01]KKMCreateOFDPacket [15:58:01]OFDProtocolAddRootSTLVToBuf [15:58:01]FM_MakeSignedData [15:58:01]FM_MakeSignedData [15:58:01]SAM_PROTO_SignData [15:58:01]wFMCommunicate request_size=4 [15:58:01]MH_SAM_APDU [15:58:01]CAPDU: 80 0D 01 02 [15:58:01]Write to MH i2c: E2 08 00 18 2B 80 0D 01 02 00 00 00 00 BC [15:58:01]Write i2c OK [15:58:01]MH_I2C_Read... [15:58:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:01]Read from MH i2c: E2 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: E2 03 00 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: E2 03 00 18 2B 00 90 00 B7 [15:58:01]RAPDU: 90 00 [15:58:01]wFMCommunicate OK [15:58:01]wFMCommunicate request_size=255 [15:58:01]MH_SAM_APDU [15:58:01]CAPDU: 80 0D 02 02 FA 03 00 85 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 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 32 30 30 30 30 33 32 37 35 30 30 31 38 06 04 27 00 D0 9A D1 80 D1 83 D0 B0 D1 81 D1 81 D0 B0 D0 BD 20 44 43 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 37 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 3F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [15:58:01]Write to MH i2c: E2 02 01 19 2B 80 0D 02 02 FA 00 03 00 85 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 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 32 30 30 30 30 33 32 37 35 30 30 31 38 06 04 27 00 D0 9A D1 80 D1 83 D0 B0 D1 81 D1 81 D0 B0 D0 BD 20 44 43 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 37 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 3F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 3A [15:58:01]Write i2c OK [15:58:01]MH_I2C_Read... [15:58:01]OFD Sender: No OFD packet to send [15:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 19 2B 00 90 00 B8 [15:58:02]RAPDU: 90 00 [15:58:02]wFMCommunicate OK [15:58:02]wFMCommunicate request_size=148 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 8F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 06 00 00 00 00 07 04 06 00 48 3F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 0C 8B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B8 FA 00 00 35 04 06 00 45 1F 8F 17 8D F3 [15:58:02]Write to MH i2c: E2 97 00 1A 2B 80 0D 02 02 8F 00 01 F7 03 06 00 8F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 06 00 00 00 00 07 04 06 00 48 3F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 0C 8B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B8 FA 00 00 35 04 06 00 45 1F 8F 17 8D F3 00 00 5A [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 1A 2B 00 90 00 B9 [15:58:02]RAPDU: 90 00 [15:58:02]wFMCommunicate OK [15:58:02]wFMCommunicate request_size=4 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 0D 03 02 [15:58:02]Write to MH i2c: E2 08 00 1B 2B 80 0D 03 02 00 00 00 00 C1 [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 0B 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 0B 00 1B 2B 00 86 05 4C 2C 9A 59 10 92 90 00 5A [15:58:02]RAPDU: 86 05 4C 2C 9A 59 10 92 90 00 [15:58:02]wFMCommunicate OK [15:58:02]SAM_PROTO_SignData done [15:58:02]FM_MakeSignedData done [15:58:02]CreateOFDProtocolMessage [15:58:02]wFMCommunicate request_size=4 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 11 00 00 [15:58:02]Write to MH i2c: E2 08 00 1C 2B 80 11 00 00 00 00 00 00 C1 [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 17 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 17 00 1C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 13 [15:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:58:02]wFMCommunicate OK [15:58:02]CreateOFDProtocolMessage done [15:58:02]OFDSenderStorePacket 64184 [15:58:02]StoreOFDPacket docnum=64184 [15:58:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 99 01 00 00 A0 28 91 01 D1 F6 5A 03 01 00 03 00 85 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 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 32 30 30 30 30 33 32 37 35 30 30 31 38 06 04 27 00 D0 9A D1 80 D1 83 D0 B0 D1 81 D1 81 D0 B0 D0 BD 20 44 43 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 37 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 3F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 06 00 00 00 00 07 04 06 00 48 3F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 0C 8B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B8 FA 00 00 35 04 06 00 45 1F 8F 17 8D F3 86 05 4C 2C 9A 59 10 92 [15:58:02]CheckFolder [15:58:02]dirname=/storage/ofd_packets [15:58:02]CheckFolder done [15:58:02]ProducePacketName [15:58:02]name=ofd_packets/00064184 [15:58:02]NVStorageSaveData ofd_packets/00064184 [15:58:02]File name is /storage/ofd_packets/00064184 [15:58:02]Write 439 bytes [15:58:02]NVStorageSaveData done [15:58:02]OFDSenderStorePacket done [15:58:02]KKMCreateOFDPacket done [15:58:02]NVStorageSaveData kkm_last_timestamp [15:58:02]File name is /storage/kkm_last_timestamp [15:58:02]Write 4 bytes [15:58:02]NVStorageSaveData done [15:58:02]ExternCall_PrintAddStr [15:58:02]wPrintStart [15:58:02]Write to MH i2c: 01 00 00 1D 2B 48 [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: 01 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: 01 07 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: 01 07 00 1D 2B 00 00 00 00 00 FF 0F 5D [15:58:02]RasterBufferAndPrint [15:58:02]line Счет N : (3)73714 [15:58:02]line ИНН: 02508201610067 [15:58:02]line Контрольно-Кассовый Чек [15:58:02]line ПРОДАЖА [15:58:02]line Товар: 5449000054227 [15:58:02]line Напиток Кока-Кола 1л [15:58:02]line 1.000 * 113.00 [15:58:02]line = 113.00 [15:58:02]line НДС 12% НСП 1% [15:58:02]line > о реализуемом товаре [15:58:02]line Товар: 2000032750018 [15:58:02]line Круассан DC шоколад 75г [15:58:02]line 1.000 * 49.00 [15:58:02]line = 49.00 [15:58:02]line НДС 12% НСП 1% [15:58:02]line > о реализуемом товаре [15:58:02]line ИТОГО: 162.00 [15:58:02]line НСП 1% : 1.43 [15:58:02]line НДС 12% : 17.20 [15:58:02]line Наличными: 162.00 [15:58:02]line Безнал.: 0.00 [15:58:02]line Место: АЗС № 117 "Партнер Нефть" [15:58:02]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:58:02]line СНО: Общий режим [15:58:02]line Чек 104 05.06.2024 15:58 [15:58:02]line Смена: 375 ФФД: 1.0 [15:58:02]line ЗНМ: 0300000031 [15:58:02]line РНМ: 0000000000092737 [15:58:02]line Версия ККМ: 001 [15:58:02]line ФМ: 0000000000875074 [15:58:02]line ФД: 64184 [15:58:02]line ФПД: 76001846988275 [15:58:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T155804&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64184&fm=76001846988275&tin=02508201610067®Number=0000000000092737&sum=16200 [15:58:02]OFD Sender: Processing packet 64184 [packets to send 14, broken 13] [15:58:02]ProducePacketName [15:58:02]name=ofd_packets/00064184 [15:58:02]OFD Sender: To server: pG, [15:58:02]CommunicateWithHost lk.salyk.kg:30040 [15:58:02]ConnectInit lk.salyk.kg [15:58:02]line 0 [15:58:02]written 0, free lines is 4095 [15:58:02]Connected sock=10 [15:58:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 99 01 00 00 A0 28 91 01 D1 F6 5A 03 01 00 03 00 85 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 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 32 30 30 30 30 33 32 37 35 30 30 31 38 06 04 27 00 D0 9A D1 80 D1 83 D0 B0 D1 81 D1 81 D0 B0 D0 BD 20 44 43 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 37 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 3F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 06 00 00 00 00 07 04 06 00 48 3F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 0C 8B 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B8 FA 00 00 35 04 06 00 45 1F 8F 17 8D F3 86 05 4C 2C 9A 59 10 92 [15:58:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 15 7C 47 00 68 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B8 FA 00 00 F4 03 04 00 18 37 60 66 B6 04 01 00 00 D4 58 CB 23 55 54 B3 CA [15:58:02]CommunicateWithHost err = 0 [15:58:02]CheckOFDResponse [15:58:02]1017 (14) - 77093643461234 [15:58:02]1041 (16) - 0000000000875074 [15:58:02]1040 (4) - 64184 [15:58:02]1012 (4) - 05.06.2024 09:59 [15:58:02]1206 (1) - 0 [15:58:02]OFD Sender: Remove packet 64184 [15:58:02]ProducePacketName [15:58:02]name=ofd_packets/00064184 [15:58:02]NVStorageDeleteData [15:58:03]Write to MH i2c: 01 00 00 4B 2B 76 [15:58:03]Write i2c OK [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: 01 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: 01 07 00 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: 01 07 00 4B 2B 00 00 00 00 00 A7 0C 30 [15:58:03]RasterBufferAndPrint [15:58:03]line [15:58:03]line [15:58:03]line [15:58:03]line [15:58:03]line [15:58:03]written 0, free lines is 3246 [15:58:03]MH_Cut [15:58:03]Write to MH i2c: D1 01 00 52 2B 01 4F [15:58:03]Write i2c OK [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: D1 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: D1 01 00 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: D1 01 00 52 2B 00 4E [15:58:03]Write to MH i2c: 01 00 00 53 2B 7E [15:58:03]Write i2c OK [15:58:03]MH_I2C_Read... [15:58:03]OFD Sender: No OFD packet to send [15:58:03]*** Cut start [15:58:03]*** Partial cut [15:58:03]*** CUTSNS_PIN = 1 [15:58:04]*** CUTSNS_PIN = 0 [15:58:04]*** Brake cut motor [15:58:04]Read from MH i2c: 01 [15:58:04]MH_I2C_Read... [15:58:04]*** Stop cut motor [15:58:04]*** Cut end [15:58:04]Read from MH i2c: 01 07 00 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: 01 07 00 53 2B 00 00 00 00 00 FF 0F 93 [15:58:04]process_action close_receipt done [15:58:04]requested_data is exist [15:58:04]produce_requested_data [15:58:04]requested_item fm.sn is exist - process it [15:58:04]wFMCommunicate request_size=4 [15:58:04]MH_SAM_APDU [15:58:04]CAPDU: 80 11 00 00 [15:58:04]Write to MH i2c: E2 08 00 54 2B 80 11 00 00 00 00 00 00 F9 [15:58:04]Write i2c OK [15:58:04]MH_I2C_Read... [15:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:04]Read from MH i2c: E2 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: E2 17 00 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: E2 17 00 54 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4B [15:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:58:04]wFMCommunicate OK [15:58:04]requested_item fd.num is exist - process it [15:58:04]SAM_PROTO_GetFieldsCounters [15:58:04]wFMCommunicate request_size=4 [15:58:04]MH_SAM_APDU [15:58:04]CAPDU: 80 13 00 00 [15:58:04]Write to MH i2c: E2 08 00 55 2B 80 13 00 00 00 00 00 00 FC [15:58:04]Write i2c OK [15:58:04]MH_I2C_Read... [15:58:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:04]Read from MH i2c: E2 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: E2 62 00 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: E2 62 00 55 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B8 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [15:58:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B8 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:04]wFMCommunicate OK [15:58:04]SAM_PROTO_GetFieldsCounters done [15:58:04]requested_item shift.num is exist - process it [15:58:04]requested_item shift.opened is exist - process it [15:58:04]req_shift_opened [15:58:04]FM_GetShiftState [15:58:04]SAM_PROTO_GetShiftState [15:58:04]wFMCommunicate request_size=4 [15:58:04]MH_SAM_APDU [15:58:04]CAPDU: 80 13 01 00 [15:58:04]Write to MH i2c: E2 08 00 56 2B 80 13 01 00 00 00 00 00 FE [15:58:04]Write i2c OK [15:58:04]MH_I2C_Read... [15:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:04]Read from MH i2c: E2 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: E2 0E 00 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: E2 0E 00 56 2B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 3F [15:58:04]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [15:58:04]wFMCommunicate OK [15:58:04]SAM_PROTO_GetShiftState done [15:58:04]FM_GetShiftState done [15:58:04]req_shift_opened done [15:58:04]requested_item shift.open_date is exist - process it [15:58:04]req_shift_open_date [15:58:04]req_shift_open_date done [15:58:04]produce_requested_data done [15:58:04]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64184,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [15:58:04]process_action_free close_receipt [15:58:04]json_value_free [15:58:04]json_value_free done [15:58:04]process_json_proto returns [15:58:04]Send response to host [15:58:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64184,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [15:58:04]free response buf [15:58:04]execute_script done [15:58:04]execute_script returns [15:58:04]free content buf [15:58:04]Sock 8.Close socket [15:58:04]Sock 8.Thread stoped [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]accept exits with 9 [16:06:43]New connection [16:06:43]New thread 3067276644 created [16:06:43]Thread 3067133284 joined [16:06:43]Waiting for new connection... [16:06:43] Sock 9.Parse request [16:06:43]Sock 9.Check first char [16:06:43]Sock 9.First char is OK [16:06:43]request: POST /json_proto HTTP/1.0 [16:06:43]Method: POST [16:06:43]URL: /json_proto [16:06:43]Method is POST - this is cgi request [16:06:43]url: /json_proto [16:06:43]query_string will be loaded in cgi processing [16:06:43]execute_cgi json_proto POST (null) [16:06:43]execute_cgi path=json_proto method=POST [16:06:43]POST find Content-Length [16:06:43]Host: 172.17.60.69:8080 [16:06:43]Content-Length: 645 [16:06:43]Content-Type: application/json [16:06:43] [16:06:43]POST finish read [16:06:43]Found Content-Length = 645 [16:06:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73715", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:43]execute_script... [16:06:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73715", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:43]POST & json_proto [16:06:43]process_json_proto [16:06:43]json parsed OK: [16:06:43]protocol is kg_v1.0 [16:06:43]action value=close_receipt [16:06:43]process_action close_receipt [16:06:43]cmd_close_receipt [16:06:43]MH_GetDate [16:06:43]Write to MH i2c: F0 00 00 57 2B 71 [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: F0 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: F0 09 00 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: F0 09 00 57 2B 00 17 8D 60 66 D2 83 5F 66 FE [16:06:43]GetLastDocTimeStamp 1717603084 [16:06:43]current date 1717603607 [16:06:43]FM_GetShiftState [16:06:43]SAM_PROTO_GetShiftState [16:06:43]wFMCommunicate request_size=4 [16:06:43]MH_SAM_APDU [16:06:43]CAPDU: 80 13 01 00 [16:06:43]Write to MH i2c: E2 08 00 58 2B 80 13 01 00 00 00 00 00 00 [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:43]Read from MH i2c: E2 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 0E 00 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 0E 00 58 2B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 41 [16:06:43]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:06:43]wFMCommunicate OK [16:06:43]SAM_PROTO_GetShiftState done [16:06:43]FM_GetShiftState done [16:06:43]opened in 1717545925 [16:06:43]opened+sec_in_day 1717632325 [16:06:43]quantity*price = 12500 [16:06:43]sum+1 = 12501 [16:06:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 105 05.06.2024 16:06 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64185 ФПД: 225716936807404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T160647&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64185&fm=225716936807404&tin=02508201610067®Number=0000000000092737&sum=12500 0 [16:06:44]StoreToDocumentArchive [16:06:44]shift 375 fd 64185 [16:06:44]save to /storage/0375/doc_00064185 [16:06:44]save last doc name /storage/0375/doc_00064185 to /storage/kkm_last_doc_name [16:06:44]save OK [16:06:44]Clear old archive folders... [16:06:44]ProcessDocumentItem done err = 0, tmpTLVsize=282 [16:06:44]tlvbuf is 00FAB910 [16:06:44]SAM_PROTO_ClearQueue [16:06:44]wFMCommunicate request_size=4 [16:06:44]MH_SAM_APDU [16:06:44]CAPDU: 80 09 00 00 [16:06:44]Write to MH i2c: E2 08 00 65 2B 80 09 00 00 00 00 00 00 02 [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 03 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 03 00 65 2B 00 90 00 04 [16:06:44]RAPDU: 90 00 [16:06:44]wFMCommunicate OK [16:06:44]SAM_PROTO_ClearQueue done [16:06:44]KKMCreateOFDPacket [16:06:44]OFDProtocolAddRootSTLVToBuf [16:06:44]FM_MakeSignedData [16:06:44]FM_MakeSignedData [16:06:44]SAM_PROTO_SignData [16:06:44]wFMCommunicate request_size=4 [16:06:44]MH_SAM_APDU [16:06:44]CAPDU: 80 0D 01 02 [16:06:44]Write to MH i2c: E2 08 00 66 2B 80 0D 01 02 00 00 00 00 0A [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 03 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 03 00 66 2B 00 90 00 05 [16:06:44]RAPDU: 90 00 [16:06:44]wFMCommunicate OK [16:06:44]wFMCommunicate request_size=255 [16:06:44]MH_SAM_APDU [16:06:44]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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 17 8D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [16:06:44]Write to MH i2c: E2 02 01 67 2B 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 17 8D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 56 [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 03 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 03 00 67 2B 00 90 00 06 [16:06:44]RAPDU: 90 00 [16:06:44]wFMCommunicate OK [16:06:44]wFMCommunicate request_size=41 [16:06:44]MH_SAM_APDU [16:06:44]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B9 FA 00 00 35 04 06 00 CD 49 D1 D6 93 EC [16:06:44]Write to MH i2c: E2 2C 00 68 2B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B9 FA 00 00 35 04 06 00 CD 49 D1 D6 93 EC 00 00 CA [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 03 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 03 00 68 2B 00 90 00 07 [16:06:44]RAPDU: 90 00 [16:06:44]wFMCommunicate OK [16:06:44]wFMCommunicate request_size=4 [16:06:44]MH_SAM_APDU [16:06:44]CAPDU: 80 0D 03 02 [16:06:44]Write to MH i2c: E2 08 00 69 2B 80 0D 03 02 00 00 00 00 0F [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 0B 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 0B 00 69 2B 00 8E C3 5B F8 01 64 CE 85 90 00 6C [16:06:44]RAPDU: 8E C3 5B F8 01 64 CE 85 90 00 [16:06:44]wFMCommunicate OK [16:06:44]SAM_PROTO_SignData done [16:06:44]FM_MakeSignedData done [16:06:44]CreateOFDProtocolMessage [16:06:44]wFMCommunicate request_size=4 [16:06:44]MH_SAM_APDU [16:06:44]CAPDU: 80 11 00 00 [16:06:44]Write to MH i2c: E2 08 00 6A 2B 80 11 00 00 00 00 00 00 0F [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 17 00 [16:06:44]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 17 00 6A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 61 [16:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:06:45]wFMCommunicate OK [16:06:45]CreateOFDProtocolMessage done [16:06:45]OFDSenderStorePacket 64185 [16:06:45]StoreOFDPacket docnum=64185 [16:06:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 DA 07 26 01 74 03 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 17 8D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B9 FA 00 00 35 04 06 00 CD 49 D1 D6 93 EC 8E C3 5B F8 01 64 CE 85 [16:06:45]CheckFolder [16:06:45]dirname=/storage/ofd_packets [16:06:45]CheckFolder done [16:06:45]ProducePacketName [16:06:45]name=ofd_packets/00064185 [16:06:45]NVStorageSaveData ofd_packets/00064185 [16:06:45]File name is /storage/ofd_packets/00064185 [16:06:45]Write 332 bytes [16:06:45]NVStorageSaveData done [16:06:45]OFDSenderStorePacket done [16:06:45]KKMCreateOFDPacket done [16:06:45]NVStorageSaveData kkm_last_timestamp [16:06:45]File name is /storage/kkm_last_timestamp [16:06:45]Write 4 bytes [16:06:45]NVStorageSaveData done [16:06:45]ExternCall_PrintAddStr [16:06:45]wPrintStart [16:06:45]Write to MH i2c: 01 00 00 6B 2B 96 [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: 01 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: 01 07 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: 01 07 00 6B 2B 00 00 00 00 00 FF 0F AB [16:06:45]RasterBufferAndPrint [16:06:45]line Счет N : (3)73715 [16:06:45]line ИНН: 02508201610067 [16:06:45]line Контрольно-Кассовый Чек [16:06:45]line ПРОДАЖА [16:06:45]line Товар: 2000036220012 [16:06:45]line Кофе Капучино XL(GABB TRADE) [16:06:45]line 1.000 * 125.00 [16:06:45]line = 125.00 [16:06:45]line НДС 12% НСП 1% [16:06:45]line > о реализуемом товаре [16:06:45]line ИТОГО: 125.00 [16:06:45]line НСП 1% : 1.11 [16:06:45]line НДС 12% : 13.27 [16:06:45]line Наличными: 125.00 [16:06:45]line Безнал.: 0.00 [16:06:45]line Место: АЗС № 117 "Партнер Нефть" [16:06:45]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:06:45]line СНО: Общий режим [16:06:45]line Чек 105 05.06.2024 16:06 [16:06:45]line Смена: 375 ФФД: 1.0 [16:06:45]line ЗНМ: 0300000031 [16:06:45]line РНМ: 0000000000092737 [16:06:45]line Версия ККМ: 001 [16:06:45]line ФМ: 0000000000875074 [16:06:45]line ФД: 64185 [16:06:45]line ФПД: 225716936807404 [16:06:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T160647&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64185&fm=225716936807404&tin=02508201610067®Number=0000000000092737&sum=12500 [16:06:45]line 0 [16:06:45]OFD Sender: Processing packet 64185 [packets to send 14, broken 13] [16:06:45]ProducePacketName [16:06:45]name=ofd_packets/00064185 [16:06:45]OFD Sender: To server: pG, [16:06:45]CommunicateWithHost lk.salyk.kg:30040 [16:06:45]ConnectInit lk.salyk.kg [16:06:45]written 0, free lines is 4095 [16:06:45]Connected sock=10 [16:06:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 DA 07 26 01 74 03 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 17 8D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B9 FA 00 00 35 04 06 00 CD 49 D1 D6 93 EC 8E C3 5B F8 01 64 CE 85 [16:06:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 CD AE 47 00 AC FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B9 FA 00 00 F4 03 04 00 22 39 60 66 B6 04 01 00 00 15 A9 DA ED 49 23 72 B3 [16:06:45]CommunicateWithHost err = 0 [16:06:45]CheckOFDResponse [16:06:45]1017 (14) - 77093643461234 [16:06:45]1041 (16) - 0000000000875074 [16:06:45]1040 (4) - 64185 [16:06:45]1012 (4) - 05.06.2024 10:08 [16:06:45]1206 (1) - 0 [16:06:45]OFD Sender: Remove packet 64185 [16:06:45]ProducePacketName [16:06:45]name=ofd_packets/00064185 [16:06:45]NVStorageDeleteData [16:06:45]Write to MH i2c: 01 00 00 94 2B BF [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: 01 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: 01 07 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: 01 07 00 94 2B 00 00 00 00 00 FB 0C CD [16:06:45]RasterBufferAndPrint [16:06:45]line [16:06:45]line [16:06:45]line [16:06:45]line [16:06:45]line [16:06:45]written 0, free lines is 3329 [16:06:45]MH_Cut [16:06:45]Write to MH i2c: D1 01 00 9B 2B 01 98 [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: D1 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: D1 01 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: D1 01 00 9B 2B 00 97 [16:06:45]Write to MH i2c: 01 00 00 9C 2B C7 [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:46]OFD Sender: No OFD packet to send [16:06:46]*** Cut start [16:06:46]*** Partial cut [16:06:46]*** CUTSNS_PIN = 1 [16:06:46]*** CUTSNS_PIN = 0 [16:06:46]*** Brake cut motor [16:06:47]Read from MH i2c: 01 [16:06:47]MH_I2C_Read... [16:06:47]*** Stop cut motor [16:06:47]*** Cut end [16:06:47]Read from MH i2c: 01 07 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: 01 07 00 9C 2B 00 00 00 00 00 FF 0F DC [16:06:47]process_action close_receipt done [16:06:47]requested_data is exist [16:06:47]produce_requested_data [16:06:47]requested_item fm.sn is exist - process it [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 11 00 00 [16:06:47]Write to MH i2c: E2 08 00 9D 2B 80 11 00 00 00 00 00 00 42 [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 17 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 17 00 9D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 94 [16:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:06:47]wFMCommunicate OK [16:06:47]requested_item fd.num is exist - process it [16:06:47]SAM_PROTO_GetFieldsCounters [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 13 00 00 [16:06:47]Write to MH i2c: E2 08 00 9E 2B 80 13 00 00 00 00 00 00 45 [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 62 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 62 00 9E 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B9 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [16:06:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 B9 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:47]wFMCommunicate OK [16:06:47]SAM_PROTO_GetFieldsCounters done [16:06:47]requested_item shift.num is exist - process it [16:06:47]requested_item shift.opened is exist - process it [16:06:47]req_shift_opened [16:06:47]FM_GetShiftState [16:06:47]SAM_PROTO_GetShiftState [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 13 01 00 [16:06:47]Write to MH i2c: E2 08 00 9F 2B 80 13 01 00 00 00 00 00 47 [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 0E 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 0E 00 9F 2B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 88 [16:06:47]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:06:47]wFMCommunicate OK [16:06:47]SAM_PROTO_GetShiftState done [16:06:47]FM_GetShiftState done [16:06:47]req_shift_opened done [16:06:47]requested_item shift.open_date is exist - process it [16:06:47]req_shift_open_date [16:06:47]req_shift_open_date done [16:06:47]produce_requested_data done [16:06:47]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64185,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:06:47]process_action_free close_receipt [16:06:47]json_value_free [16:06:47]json_value_free done [16:06:47]process_json_proto returns [16:06:47]Send response to host [16:06:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64185,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:06:47]free response buf [16:06:47]execute_script done [16:06:47]execute_script returns [16:06:47]free content buf [16:06:47]Sock 9.Close socket [16:06:47]Sock 9.Thread stoped [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:13]accept exits with 8 [16:07:13]New connection [16:07:13]New thread 3067133284 created [16:07:13]Thread 3067276644 joined [16:07:13]Waiting for new connection... [16:07:13] Sock 8.Parse request [16:07:13]Sock 8.Check first char [16:07:13]Sock 8.First char is OK [16:07:13]request: POST /json_proto HTTP/1.0 [16:07:13]Method: POST [16:07:13]URL: /json_proto [16:07:13]Method is POST - this is cgi request [16:07:13]url: /json_proto [16:07:13]query_string will be loaded in cgi processing [16:07:13]execute_cgi json_proto POST (null) [16:07:13]execute_cgi path=json_proto method=POST [16:07:13]POST find Content-Length [16:07:13]Host: 172.17.60.69:8080 [16:07:13]Content-Length: 818 [16:07:13]Content-Type: application/json [16:07:13] [16:07:13]POST finish read [16:07:13]Found Content-Length = 818 [16:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73716", "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 }]} ], "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" ] } } [16:07:13]execute_script... [16:07:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73716", "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 }]} ], "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" ] } } [16:07:13]POST & json_proto [16:07:13]process_json_proto [16:07:13]json parsed OK: [16:07:13]protocol is kg_v1.0 [16:07:13]action value=close_receipt [16:07:13]process_action close_receipt [16:07:13]cmd_close_receipt [16:07:13]MH_GetDate [16:07:13]Write to MH i2c: F0 00 00 A0 2B BA [16:07:13]Write i2c OK [16:07:13]MH_I2C_Read... [16:07:13]Read from MH i2c: F0 [16:07:13]MH_I2C_Read... [16:07:13]Read from MH i2c: F0 09 00 [16:07:13]MH_I2C_Read... [16:07:13]Read from MH i2c: F0 09 00 A0 2B 00 35 8D 60 66 D2 83 5F 66 65 [16:07:13]GetLastDocTimeStamp 1717603607 [16:07:13]current date 1717603637 [16:07:13]FM_GetShiftState [16:07:13]SAM_PROTO_GetShiftState [16:07:13]wFMCommunicate request_size=4 [16:07:13]MH_SAM_APDU [16:07:13]CAPDU: 80 13 01 00 [16:07:13]Write to MH i2c: E2 08 00 A1 2B 80 13 01 00 00 00 00 00 49 [16:07:13]Write i2c OK [16:07:13]MH_I2C_Read... [16:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:13]Read from MH i2c: E2 [16:07:13]MH_I2C_Read... [16:07:13]Read from MH i2c: E2 0E 00 [16:07:13]MH_I2C_Read... [16:07:13]Read from MH i2c: E2 0E 00 A1 2B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 8A [16:07:13]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:07:13]wFMCommunicate OK [16:07:13]SAM_PROTO_GetShiftState done [16:07:13]FM_GetShiftState done [16:07:13]opened in 1717545925 [16:07:13]opened+sec_in_day 1717632325 [16:07:13]quantity*price = 20500 [16:07:13]sum+1 = 20501 [16:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 0.00 Безнал.: 205.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 106 05.06.2024 16:07 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64186 ФПД: 221228595586874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T160717&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64186&fm=221228595586874&tin=02508201610067®Number=0000000000092737&sum=20500 0 [16:07:14]StoreToDocumentArchive [16:07:14]shift 375 fd 64186 [16:07:14]save to /storage/0375/doc_00064186 [16:07:14]save last doc name /storage/0375/doc_00064186 to /storage/kkm_last_doc_name [16:07:14]save OK [16:07:14]Clear old archive folders... [16:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=278 [16:07:14]tlvbuf is B6F293F0 [16:07:14]SAM_PROTO_ClearQueue [16:07:14]wFMCommunicate request_size=4 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 09 00 00 [16:07:14]Write to MH i2c: E2 08 00 AE 2B 80 09 00 00 00 00 00 00 4B [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 AE 2B 00 90 00 4D [16:07:14]RAPDU: 90 00 [16:07:14]wFMCommunicate OK [16:07:14]SAM_PROTO_ClearQueue done [16:07:14]KKMCreateOFDPacket [16:07:14]OFDProtocolAddRootSTLVToBuf [16:07:14]FM_MakeSignedData [16:07:14]FM_MakeSignedData [16:07:14]SAM_PROTO_SignData [16:07:14]wFMCommunicate request_size=4 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 0D 01 02 [16:07:14]Write to MH i2c: E2 08 00 AF 2B 80 0D 01 02 00 00 00 00 53 [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 AF 2B 00 90 00 4E [16:07:14]RAPDU: 90 00 [16:07:14]wFMCommunicate OK [16:07:14]wFMCommunicate request_size=255 [16:07:14]MH_SAM_APDU [16:07:14]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 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 6A 00 00 00 F4 03 04 00 35 8D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 [16:07:14]Write to MH i2c: E2 02 01 B0 2B 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 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 6A 00 00 00 F4 03 04 00 35 8D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 00 00 84 [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 B0 2B 00 90 00 4F [16:07:14]RAPDU: 90 00 [16:07:14]wFMCommunicate OK [16:07:14]wFMCommunicate request_size=37 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BA FA 00 00 35 04 06 00 C9 34 CB DA A7 3A [16:07:14]Write to MH i2c: E2 28 00 B1 2B 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BA FA 00 00 35 04 06 00 C9 34 CB DA A7 3A 00 00 E3 [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 B1 2B 00 90 00 50 [16:07:14]RAPDU: 90 00 [16:07:14]wFMCommunicate OK [16:07:14]wFMCommunicate request_size=4 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 0D 03 02 [16:07:14]Write to MH i2c: E2 08 00 B2 2B 80 0D 03 02 00 00 00 00 58 [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 0B 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 0B 00 B2 2B 00 4D 4F 53 93 86 D8 10 94 90 00 DD [16:07:14]RAPDU: 4D 4F 53 93 86 D8 10 94 90 00 [16:07:14]wFMCommunicate OK [16:07:14]SAM_PROTO_SignData done [16:07:14]FM_MakeSignedData done [16:07:14]CreateOFDProtocolMessage [16:07:14]wFMCommunicate request_size=4 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 11 00 00 [16:07:14]Write to MH i2c: E2 08 00 B3 2B 80 11 00 00 00 00 00 00 58 [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:15]Read from MH i2c: E2 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: E2 17 00 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: E2 17 00 B3 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AA [16:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:07:15]wFMCommunicate OK [16:07:15]CreateOFDProtocolMessage done [16:07:15]OFDSenderStorePacket 64186 [16:07:15]StoreOFDPacket docnum=64186 [16:07:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2A 01 00 00 C7 03 22 01 23 9C 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 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 6A 00 00 00 F4 03 04 00 35 8D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BA FA 00 00 35 04 06 00 C9 34 CB DA A7 3A 4D 4F 53 93 86 D8 10 94 [16:07:15]CheckFolder [16:07:15]dirname=/storage/ofd_packets [16:07:15]CheckFolder done [16:07:15]ProducePacketName [16:07:15]name=ofd_packets/00064186 [16:07:15]NVStorageSaveData ofd_packets/00064186 [16:07:15]File name is /storage/ofd_packets/00064186 [16:07:15]Write 328 bytes [16:07:15]NVStorageSaveData done [16:07:15]OFDSenderStorePacket done [16:07:15]KKMCreateOFDPacket done [16:07:15]NVStorageSaveData kkm_last_timestamp [16:07:15]File name is /storage/kkm_last_timestamp [16:07:15]Write 4 bytes [16:07:15]NVStorageSaveData done [16:07:15]ExternCall_PrintAddStr [16:07:15]wPrintStart [16:07:15]Write to MH i2c: 01 00 00 B4 2B DF [16:07:15]OFD Sender: Processing packet 64186 [packets to send 14, broken 13] [16:07:15]ProducePacketName [16:07:15]name=ofd_packets/00064186 [16:07:15]OFD Sender: To server: pG, [16:07:15]CommunicateWithHost lk.salyk.kg:30040 [16:07:15]ConnectInit lk.salyk.kg [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 07 00 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 07 00 B4 2B 00 00 00 00 00 FF 0F F4 [16:07:15]RasterBufferAndPrint [16:07:15]line Счет N : (3)73716 [16:07:15]line ИНН: 02508201610067 [16:07:15]line Контрольно-Кассовый Чек [16:07:15]line ПРОДАЖА [16:07:15]line Товар: 5449000000286 [16:07:15]line Напиток Кока-Кола 2л [16:07:15]line 1.000 * 205.00 [16:07:15]line = 205.00 [16:07:15]line НДС 12% НСП 1% [16:07:15]line > о реализуемом товаре [16:07:15]line ИТОГО: 205.00 [16:07:15]line НСП 1% : 1.81 [16:07:15]line НДС 12% : 21.77 [16:07:15]line Наличными: 0.00 [16:07:15]line Безнал.: 205.00 [16:07:15]line Место: АЗС № 117 "Партнер Нефть" [16:07:15]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:07:15]line СНО: Общий режим [16:07:15]line Чек 106 05.06.2024 16:07 [16:07:15]line Смена: 375 ФФД: 1.0 [16:07:15]line ЗНМ: 0300000031 [16:07:15]line РНМ: 0000000000092737 [16:07:15]line Версия ККМ: 001 [16:07:15]line Платежная система: O! деньги [16:07:15]line ФМ: 0000000000875074 [16:07:15]line ФД: 64186 [16:07:15]line ФПД: 221228595586874 [16:07:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T160717&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64186&fm=221228595586874&tin=02508201610067®Number=0000000000092737&sum=20500 [16:07:15]Connected sock=10 [16:07:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2A 01 00 00 C7 03 22 01 23 9C 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 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 6A 00 00 00 F4 03 04 00 35 8D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BA FA 00 00 35 04 06 00 C9 34 CB DA A7 3A 4D 4F 53 93 86 D8 10 94 [16:07:15]line 0 [16:07:15]written 0, free lines is 4095 [16:07:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 7D BD 47 00 28 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BA FA 00 00 F4 03 04 00 40 39 60 66 B6 04 01 00 00 A1 E5 E0 2C B6 9B A2 2A [16:07:15]CommunicateWithHost err = 0 [16:07:15]CheckOFDResponse [16:07:15]1017 (14) - 77093643461234 [16:07:15]1041 (16) - 0000000000875074 [16:07:15]1040 (4) - 64186 [16:07:15]1012 (4) - 05.06.2024 10:09 [16:07:15]1206 (1) - 0 [16:07:15]OFD Sender: Remove packet 64186 [16:07:15]ProducePacketName [16:07:15]name=ofd_packets/00064186 [16:07:15]NVStorageDeleteData [16:07:15]Write to MH i2c: 01 00 00 DE 2B 09 [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 07 00 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 07 00 DE 2B 00 00 00 00 00 EA 0C 06 [16:07:15]RasterBufferAndPrint [16:07:15]line [16:07:15]line [16:07:15]line [16:07:15]line [16:07:15]line [16:07:15]written 0, free lines is 3315 [16:07:15]MH_Cut [16:07:15]Write to MH i2c: D1 01 00 E5 2B 01 E2 [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: D1 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: D1 01 00 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: D1 01 00 E5 2B 00 E1 [16:07:15]Write to MH i2c: 01 00 00 E6 2B 11 [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:16]OFD Sender: No OFD packet to send [16:07:16]*** Cut start [16:07:16]*** Partial cut [16:07:16]*** CUTSNS_PIN = 1 [16:07:16]*** CUTSNS_PIN = 0 [16:07:16]*** Brake cut motor [16:07:17]Read from MH i2c: 01 [16:07:17]MH_I2C_Read... [16:07:17]*** Stop cut motor [16:07:17]*** Cut end [16:07:17]Read from MH i2c: 01 07 00 [16:07:17]MH_I2C_Read... [16:07:17]Read from MH i2c: 01 07 00 E6 2B 00 00 00 00 00 FF 0F 26 [16:07:17]process_action close_receipt done [16:07:17]requested_data is exist [16:07:17]produce_requested_data [16:07:17]requested_item fm.sn is exist - process it [16:07:17]wFMCommunicate request_size=4 [16:07:17]MH_SAM_APDU [16:07:17]CAPDU: 80 11 00 00 [16:07:17]Write to MH i2c: E2 08 00 E7 2B 80 11 00 00 00 00 00 00 8C [16:07:17]Write i2c OK [16:07:17]MH_I2C_Read... [16:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:17]Read from MH i2c: E2 [16:07:17]MH_I2C_Read... [16:07:17]Read from MH i2c: E2 17 00 [16:07:17]MH_I2C_Read... [16:07:17]Read from MH i2c: E2 17 00 E7 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DE [16:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:07:17]wFMCommunicate OK [16:07:17]requested_item fd.num is exist - process it [16:07:17]SAM_PROTO_GetFieldsCounters [16:07:17]wFMCommunicate request_size=4 [16:07:17]MH_SAM_APDU [16:07:17]CAPDU: 80 13 00 00 [16:07:17]Write to MH i2c: E2 08 00 E8 2B 80 13 00 00 00 00 00 00 8F [16:07:17]Write i2c OK [16:07:17]MH_I2C_Read... [16:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:17]Read from MH i2c: E2 [16:07:17]MH_I2C_Read... [16:07:17]Read from MH i2c: E2 62 00 [16:07:17]MH_I2C_Read... [16:07:17]Read from MH i2c: E2 62 00 E8 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 BA FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [16:07:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 BA FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:17]wFMCommunicate OK [16:07:17]SAM_PROTO_GetFieldsCounters done [16:07:17]requested_item shift.num is exist - process it [16:07:17]requested_item shift.opened is exist - process it [16:07:17]req_shift_opened [16:07:17]FM_GetShiftState [16:07:17]SAM_PROTO_GetShiftState [16:07:17]wFMCommunicate request_size=4 [16:07:17]MH_SAM_APDU [16:07:17]CAPDU: 80 13 01 00 [16:07:17]Write to MH i2c: E2 08 00 E9 2B 80 13 01 00 00 00 00 00 91 [16:07:17]Write i2c OK [16:07:17]MH_I2C_Read... [16:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:17]Read from MH i2c: E2 [16:07:17]MH_I2C_Read... [16:07:17]Read from MH i2c: E2 0E 00 [16:07:17]MH_I2C_Read... [16:07:17]Read from MH i2c: E2 0E 00 E9 2B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 D2 [16:07:17]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:07:17]wFMCommunicate OK [16:07:17]SAM_PROTO_GetShiftState done [16:07:17]FM_GetShiftState done [16:07:17]req_shift_opened done [16:07:17]requested_item shift.open_date is exist - process it [16:07:17]req_shift_open_date [16:07:17]req_shift_open_date done [16:07:17]produce_requested_data done [16:07:17]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64186,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:07:17]process_action_free close_receipt [16:07:17]json_value_free [16:07:17]json_value_free done [16:07:17]process_json_proto returns [16:07:17]Send response to host [16:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64186,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:07:17]free response buf [16:07:17]execute_script done [16:07:17]execute_script returns [16:07:17]free content buf [16:07:17]Sock 8.Close socket [16:07:17]Sock 8.Thread stoped [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:06]accept exits with 9 [16:11:06]New connection [16:11:06]New thread 3067276644 created [16:11:06]Thread 3067133284 joined [16:11:06]Waiting for new connection... [16:11:06] Sock 9.Parse request [16:11:06]Sock 9.Check first char [16:11:06]Sock 9.First char is OK [16:11:06]request: POST /json_proto HTTP/1.0 [16:11:06]Method: POST [16:11:06]URL: /json_proto [16:11:06]Method is POST - this is cgi request [16:11:06]url: /json_proto [16:11:06]query_string will be loaded in cgi processing [16:11:06]execute_cgi json_proto POST (null) [16:11:06]execute_cgi path=json_proto method=POST [16:11:06]POST find Content-Length [16:11:06]Host: 172.17.60.69:8080 [16:11:06]Content-Length: 660 [16:11:06]Content-Type: application/json [16:11:06] [16:11:06]POST finish read [16:11:06]Found Content-Length = 660 [16:11:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73717", "tax_sys" : 0, "items" : [ { "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:06]execute_script... [16:11:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73717", "tax_sys" : 0, "items" : [ { "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:06]POST & json_proto [16:11:06]process_json_proto [16:11:06]json parsed OK: [16:11:06]protocol is kg_v1.0 [16:11:06]action value=close_receipt [16:11:06]process_action close_receipt [16:11:06]cmd_close_receipt [16:11:06]MH_GetDate [16:11:06]Write to MH i2c: F0 00 00 EA 2B 04 [16:11:06]Write i2c OK [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: F0 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: F0 09 00 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: F0 09 00 EA 2B 00 1F 8E 60 66 D2 83 5F 66 9A [16:11:06]GetLastDocTimeStamp 1717603637 [16:11:06]current date 1717603871 [16:11:06]FM_GetShiftState [16:11:06]SAM_PROTO_GetShiftState [16:11:06]wFMCommunicate request_size=4 [16:11:06]MH_SAM_APDU [16:11:06]CAPDU: 80 13 01 00 [16:11:06]Write to MH i2c: E2 08 00 EB 2B 80 13 01 00 00 00 00 00 93 [16:11:06]Write i2c OK [16:11:06]MH_I2C_Read... [16:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:07]Read from MH i2c: E2 [16:11:07]MH_I2C_Read... [16:11:07]Read from MH i2c: E2 0E 00 [16:11:07]MH_I2C_Read... [16:11:07]Read from MH i2c: E2 0E 00 EB 2B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 D4 [16:11:07]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:11:07]wFMCommunicate OK [16:11:07]SAM_PROTO_GetShiftState done [16:11:07]FM_GetShiftState done [16:11:07]opened in 1717545925 [16:11:07]opened+sec_in_day 1717632325 [16:11:07]quantity*price = 6700 [16:11:07]sum+1 = 6701 [16:11:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 107 05.06.2024 16:11 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64187 ФПД: 6532083746237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T161111&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64187&fm=6532083746237&tin=02508201610067®Number=0000000000092737&sum=6700 0 [16:11:08]StoreToDocumentArchive [16:11:08]shift 375 fd 64187 [16:11:08]save to /storage/0375/doc_00064187 [16:11:08]save last doc name /storage/0375/doc_00064187 to /storage/kkm_last_doc_name [16:11:08]save OK [16:11:08]Clear old archive folders... [16:11:08]ProcessDocumentItem done err = 0, tmpTLVsize=284 [16:11:08]tlvbuf is B6F29D10 [16:11:08]SAM_PROTO_ClearQueue [16:11:08]wFMCommunicate request_size=4 [16:11:08]MH_SAM_APDU [16:11:08]CAPDU: 80 09 00 00 [16:11:08]Write to MH i2c: E2 08 00 F8 2B 80 09 00 00 00 00 00 00 95 [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 03 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 03 00 F8 2B 00 90 00 97 [16:11:08]RAPDU: 90 00 [16:11:08]wFMCommunicate OK [16:11:08]SAM_PROTO_ClearQueue done [16:11:08]KKMCreateOFDPacket [16:11:08]OFDProtocolAddRootSTLVToBuf [16:11:08]FM_MakeSignedData [16:11:08]FM_MakeSignedData [16:11:08]SAM_PROTO_SignData [16:11:08]wFMCommunicate request_size=4 [16:11:08]MH_SAM_APDU [16:11:08]CAPDU: 80 0D 01 02 [16:11:08]Write to MH i2c: E2 08 00 F9 2B 80 0D 01 02 00 00 00 00 9D [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 03 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 03 00 F9 2B 00 90 00 98 [16:11:08]RAPDU: 90 00 [16:11:08]wFMCommunicate OK [16:11:08]wFMCommunicate request_size=255 [16:11:08]MH_SAM_APDU [16:11:08]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 1F 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 [16:11:08]Write to MH i2c: E2 02 01 FA 2B 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 1F 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 00 00 1B [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 03 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 03 00 FA 2B 00 90 00 99 [16:11:08]RAPDU: 90 00 [16:11:08]wFMCommunicate OK [16:11:08]wFMCommunicate request_size=43 [16:11:08]MH_SAM_APDU [16:11:08]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BB FA 00 00 35 04 06 00 05 F0 DE 88 05 BD [16:11:08]Write to MH i2c: E2 2E 00 FB 2B 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BB FA 00 00 35 04 06 00 05 F0 DE 88 05 BD 00 00 59 [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 03 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 03 00 FB 2B 00 90 00 9A [16:11:08]RAPDU: 90 00 [16:11:08]wFMCommunicate OK [16:11:08]wFMCommunicate request_size=4 [16:11:08]MH_SAM_APDU [16:11:08]CAPDU: 80 0D 03 02 [16:11:08]Write to MH i2c: E2 08 00 FC 2B 80 0D 03 02 00 00 00 00 A2 [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 0B 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 0B 00 FC 2B 00 A4 F1 27 CA 7B C9 9C D5 90 00 DE [16:11:08]RAPDU: A4 F1 27 CA 7B C9 9C D5 90 00 [16:11:08]wFMCommunicate OK [16:11:08]SAM_PROTO_SignData done [16:11:08]FM_MakeSignedData done [16:11:08]CreateOFDProtocolMessage [16:11:08]wFMCommunicate request_size=4 [16:11:08]MH_SAM_APDU [16:11:08]CAPDU: 80 11 00 00 [16:11:08]Write to MH i2c: E2 08 00 FD 2B 80 11 00 00 00 00 00 00 A2 [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 17 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 17 00 FD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F4 [16:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:11:08]wFMCommunicate OK [16:11:08]CreateOFDProtocolMessage done [16:11:08]OFDSenderStorePacket 64187 [16:11:08]StoreOFDPacket docnum=64187 [16:11:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 7C 04 28 01 F6 74 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 1F 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BB FA 00 00 35 04 06 00 05 F0 DE 88 05 BD A4 F1 27 CA 7B C9 9C D5 [16:11:08]CheckFolder [16:11:08]dirname=/storage/ofd_packets [16:11:08]CheckFolder done [16:11:08]ProducePacketName [16:11:08]name=ofd_packets/00064187 [16:11:08]NVStorageSaveData ofd_packets/00064187 [16:11:08]File name is /storage/ofd_packets/00064187 [16:11:08]Write 334 bytes [16:11:08]NVStorageSaveData done [16:11:08]OFDSenderStorePacket done [16:11:08]KKMCreateOFDPacket done [16:11:08]NVStorageSaveData kkm_last_timestamp [16:11:08]File name is /storage/kkm_last_timestamp [16:11:08]Write 4 bytes [16:11:08]NVStorageSaveData done [16:11:08]ExternCall_PrintAddStr [16:11:08]wPrintStart [16:11:08]Write to MH i2c: 01 00 00 FE 2B 29 [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: 01 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: 01 07 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: 01 07 00 FE 2B 00 00 00 00 00 FF 0F 3E [16:11:08]RasterBufferAndPrint [16:11:08]line Счет N : (3)73717 [16:11:08]line ИНН: 02508201610067 [16:11:08]line Контрольно-Кассовый Чек [16:11:08]line ПРОДАЖА [16:11:08]line Товар: 8710732217097 [16:11:08]line Зажигалка Cricket ПН пьезо [16:11:08]line 1.000 * 67.00 [16:11:08]line = 67.00 [16:11:08]line НДС 12% НСП 1% [16:11:08]line > о реализуемом товаре [16:11:08]line ИТОГО: 67.00 [16:11:08]line НСП 1% : 0.59 [16:11:08]line НДС 12% : 7.11 [16:11:08]line Наличными: 67.00 [16:11:08]line Безнал.: 0.00 [16:11:08]line Место: АЗС № 117 "Партнер Нефть" [16:11:08]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:11:08]line СНО: Общий режим [16:11:08]line Чек 107 05.06.2024 16:11 [16:11:08]line Смена: 375 ФФД: 1.0 [16:11:08]line ЗНМ: 0300000031 [16:11:08]line РНМ: 0000000000092737 [16:11:08]line Версия ККМ: 001 [16:11:08]line ФМ: 0000000000875074 [16:11:08]line ФД: 64187 [16:11:08]line ФПД: 6532083746237 [16:11:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T161111&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64187&fm=6532083746237&tin=02508201610067®Number=0000000000092737&sum=6700 [16:11:09]line 0 [16:11:09]OFD Sender: Processing packet 64187 [packets to send 14, broken 13] [16:11:09]ProducePacketName [16:11:09]name=ofd_packets/00064187 [16:11:09]OFD Sender: To server: pG, [16:11:09]CommunicateWithHost lk.salyk.kg:30040 [16:11:09]ConnectInit lk.salyk.kg [16:11:09]written 0, free lines is 4095 [16:11:09]Write to MH i2c: 01 00 00 26 2C 52 [16:11:09]Write i2c OK [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: 01 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: 01 07 00 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: 01 07 00 26 2C 00 00 00 00 00 F1 0C 56 [16:11:09]RasterBufferAndPrint [16:11:09]line [16:11:09]line [16:11:09]line [16:11:09]line [16:11:09]line [16:11:09]written 0, free lines is 3319 [16:11:09]MH_Cut [16:11:09]Write to MH i2c: D1 01 00 2D 2C 01 2B [16:11:09]Write i2c OK [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: D1 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: D1 01 00 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: D1 01 00 2D 2C 00 2A [16:11:09]Write to MH i2c: 01 00 00 2E 2C 5A [16:11:09]Write i2c OK [16:11:09]MH_I2C_Read... [16:11:10]*** Cut start [16:11:10]*** Partial cut [16:11:10]*** CUTSNS_PIN = 1 [16:11:10]*** CUTSNS_PIN = 0 [16:11:10]*** Brake cut motor [16:11:10]Read from MH i2c: 01 [16:11:10]MH_I2C_Read... [16:11:10]*** Stop cut motor [16:11:10]*** Cut end [16:11:10]Read from MH i2c: 01 07 00 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: 01 07 00 2E 2C 00 00 00 00 00 FF 0F 6F [16:11:10]process_action close_receipt done [16:11:10]requested_data is exist [16:11:10]produce_requested_data [16:11:10]requested_item fm.sn is exist - process it [16:11:10]wFMCommunicate request_size=4 [16:11:10]MH_SAM_APDU [16:11:10]CAPDU: 80 11 00 00 [16:11:10]Write to MH i2c: E2 08 00 2F 2C 80 11 00 00 00 00 00 00 D5 [16:11:10]Write i2c OK [16:11:10]MH_I2C_Read... [16:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:10]Read from MH i2c: E2 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 17 00 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 17 00 2F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 27 [16:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:11:10]wFMCommunicate OK [16:11:10]requested_item fd.num is exist - process it [16:11:10]SAM_PROTO_GetFieldsCounters [16:11:10]wFMCommunicate request_size=4 [16:11:10]MH_SAM_APDU [16:11:10]CAPDU: 80 13 00 00 [16:11:10]Write to MH i2c: E2 08 00 30 2C 80 13 00 00 00 00 00 00 D8 [16:11:10]Write i2c OK [16:11:10]MH_I2C_Read... [16:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:11]Read from MH i2c: E2 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: E2 62 00 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: E2 62 00 30 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 BB FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [16:11:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 BB FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:11]wFMCommunicate OK [16:11:11]SAM_PROTO_GetFieldsCounters done [16:11:11]requested_item shift.num is exist - process it [16:11:11]requested_item shift.opened is exist - process it [16:11:11]req_shift_opened [16:11:11]FM_GetShiftState [16:11:11]SAM_PROTO_GetShiftState [16:11:11]wFMCommunicate request_size=4 [16:11:11]MH_SAM_APDU [16:11:11]CAPDU: 80 13 01 00 [16:11:11]Write to MH i2c: E2 08 00 31 2C 80 13 01 00 00 00 00 00 DA [16:11:11]Write i2c OK [16:11:11]MH_I2C_Read... [16:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:11]Read from MH i2c: E2 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: E2 0E 00 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: E2 0E 00 31 2C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 1B [16:11:11]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:11:11]wFMCommunicate OK [16:11:11]SAM_PROTO_GetShiftState done [16:11:11]FM_GetShiftState done [16:11:11]req_shift_opened done [16:11:11]requested_item shift.open_date is exist - process it [16:11:11]req_shift_open_date [16:11:11]req_shift_open_date done [16:11:11]produce_requested_data done [16:11:11]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64187,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:11:11]process_action_free close_receipt [16:11:11]json_value_free [16:11:11]json_value_free done [16:11:11]process_json_proto returns [16:11:11]Send response to host [16:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64187,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:11:11]free response buf [16:11:11]execute_script done [16:11:11]execute_script returns [16:11:11]free content buf [16:11:11]Sock 9.Close socket [16:11:11]Sock 9.Thread stoped [16:12:03]accept exits with 8 [16:12:03]New connection [16:12:03]New thread 3067133284 created [16:12:03]Thread 3067276644 joined [16:12:03]Waiting for new connection... [16:12:03] Sock 8.Parse request [16:12:03]Sock 8.Check first char [16:12:03]Sock 8.First char is OK [16:12:03]request: POST /json_proto HTTP/1.0 [16:12:03]Method: POST [16:12:03]URL: /json_proto [16:12:03]Method is POST - this is cgi request [16:12:03]url: /json_proto [16:12:03]query_string will be loaded in cgi processing [16:12:03]execute_cgi json_proto POST (null) [16:12:03]execute_cgi path=json_proto method=POST [16:12:03]POST find Content-Length [16:12:03]Host: 172.17.60.69:8080 [16:12:03]Content-Length: 621 [16:12:03]Content-Type: application/json [16:12:03] [16:12:03]POST finish read [16:12:03]Found Content-Length = 621 [16:12:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73718", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:03]execute_script... [16:12:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73718", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:03]POST & json_proto [16:12:03]process_json_proto [16:12:03]json parsed OK: [16:12:03]protocol is kg_v1.0 [16:12:03]action value=close_receipt [16:12:03]process_action close_receipt [16:12:03]cmd_close_receipt [16:12:03]MH_GetDate [16:12:03]Write to MH i2c: F0 00 00 32 2C 4D [16:12:03]Write i2c OK [16:12:03]MH_I2C_Read... [16:12:03]Read from MH i2c: F0 [16:12:03]MH_I2C_Read... [16:12:03]Read from MH i2c: F0 09 00 [16:12:03]MH_I2C_Read... [16:12:03]Read from MH i2c: F0 09 00 32 2C 00 57 8E 60 66 D2 83 5F 66 1B [16:12:03]GetLastDocTimeStamp 1717603871 [16:12:03]current date 1717603927 [16:12:03]FM_GetShiftState [16:12:03]SAM_PROTO_GetShiftState [16:12:03]wFMCommunicate request_size=4 [16:12:03]MH_SAM_APDU [16:12:03]CAPDU: 80 13 01 00 [16:12:03]Write to MH i2c: E2 08 00 33 2C 80 13 01 00 00 00 00 00 DC [16:12:03]Write i2c OK [16:12:03]MH_I2C_Read... [16:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:03]Read from MH i2c: E2 [16:12:03]MH_I2C_Read... [16:12:03]Read from MH i2c: E2 0E 00 [16:12:03]MH_I2C_Read... [16:12:03]Read from MH i2c: E2 0E 00 33 2C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 1D [16:12:03]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:12:03]wFMCommunicate OK [16:12:03]SAM_PROTO_GetShiftState done [16:12:03]FM_GetShiftState done [16:12:03]opened in 1717545925 [16:12:03]opened+sec_in_day 1717632325 [16:12:03]quantity*price = 15100 [16:12:03]sum+1 = 15101 [16:12:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 108 05.06.2024 16:12 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64188 ФПД: 124467748682113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T161207&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64188&fm=124467748682113&tin=02508201610067®Number=0000000000092737&sum=15100 0 [16:12:04]StoreToDocumentArchive [16:12:04]shift 375 fd 64188 [16:12:04]save to /storage/0375/doc_00064188 [16:12:04]save last doc name /storage/0375/doc_00064188 to /storage/kkm_last_doc_name [16:12:04]save OK [16:12:04]Clear old archive folders... [16:12:04]ProcessDocumentItem done err = 0, tmpTLVsize=274 [16:12:04]tlvbuf is 0103B190 [16:12:04]SAM_PROTO_ClearQueue [16:12:04]wFMCommunicate request_size=4 [16:12:04]MH_SAM_APDU [16:12:04]CAPDU: 80 09 00 00 [16:12:04]Write to MH i2c: E2 08 00 40 2C 80 09 00 00 00 00 00 00 DE [16:12:04]Write i2c OK [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 [16:12:04]MH_I2C_Read... [16:12:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:04]Read from MH i2c: E2 03 00 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 03 00 40 2C 00 90 00 E0 [16:12:04]RAPDU: 90 00 [16:12:04]wFMCommunicate OK [16:12:04]SAM_PROTO_ClearQueue done [16:12:04]KKMCreateOFDPacket [16:12:04]OFDProtocolAddRootSTLVToBuf [16:12:04]FM_MakeSignedData [16:12:04]FM_MakeSignedData [16:12:04]SAM_PROTO_SignData [16:12:04]wFMCommunicate request_size=4 [16:12:04]MH_SAM_APDU [16:12:04]CAPDU: 80 0D 01 02 [16:12:04]Write to MH i2c: E2 08 00 41 2C 80 0D 01 02 00 00 00 00 E6 [16:12:04]Write i2c OK [16:12:04]MH_I2C_Read... [16:12:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:04]Read from MH i2c: E2 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 03 00 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 03 00 41 2C 00 90 00 E1 [16:12:04]RAPDU: 90 00 [16:12:04]wFMCommunicate OK [16:12:04]wFMCommunicate request_size=255 [16:12:04]MH_SAM_APDU [16:12:04]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 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 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 6C 00 00 00 F4 03 04 00 57 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [16:12:04]Write to MH i2c: E2 02 01 42 2C 80 0D 02 02 FA 00 03 00 12 01 1E 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 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 6C 00 00 00 F4 03 04 00 57 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 41 [16:12:04]Write i2c OK [16:12:04]MH_I2C_Read... [16:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:04]Read from MH i2c: E2 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 03 00 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 03 00 42 2C 00 90 00 E2 [16:12:04]RAPDU: 90 00 [16:12:04]wFMCommunicate OK [16:12:04]wFMCommunicate request_size=33 [16:12:04]MH_SAM_APDU [16:12:04]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BC FA 00 00 35 04 06 00 71 33 E7 F2 39 81 [16:12:04]Write to MH i2c: E2 24 00 43 2C 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BC FA 00 00 35 04 06 00 71 33 E7 F2 39 81 00 00 64 [16:12:04]Write i2c OK [16:12:04]MH_I2C_Read... [16:12:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:05]Read from MH i2c: E2 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: E2 03 00 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: E2 03 00 43 2C 00 90 00 E3 [16:12:05]RAPDU: 90 00 [16:12:05]wFMCommunicate OK [16:12:05]wFMCommunicate request_size=4 [16:12:05]MH_SAM_APDU [16:12:05]CAPDU: 80 0D 03 02 [16:12:05]Write to MH i2c: E2 08 00 44 2C 80 0D 03 02 00 00 00 00 EB [16:12:05]Write i2c OK [16:12:05]MH_I2C_Read... [16:12:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:05]Read from MH i2c: E2 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: E2 0B 00 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: E2 0B 00 44 2C 00 53 07 78 DB 3A F2 09 6B 90 00 39 [16:12:05]RAPDU: 53 07 78 DB 3A F2 09 6B 90 00 [16:12:05]wFMCommunicate OK [16:12:05]SAM_PROTO_SignData done [16:12:05]FM_MakeSignedData done [16:12:05]CreateOFDProtocolMessage [16:12:05]wFMCommunicate request_size=4 [16:12:05]MH_SAM_APDU [16:12:05]CAPDU: 80 11 00 00 [16:12:05]Write to MH i2c: E2 08 00 45 2C 80 11 00 00 00 00 00 00 EB [16:12:05]Write i2c OK [16:12:05]MH_I2C_Read... [16:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:05]Read from MH i2c: E2 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: E2 17 00 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: E2 17 00 45 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3D [16:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:12:05]wFMCommunicate OK [16:12:05]CreateOFDProtocolMessage done [16:12:05]OFDSenderStorePacket 64188 [16:12:05]StoreOFDPacket docnum=64188 [16:12:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 10 4E 1E 01 5D 30 5A 03 01 00 03 00 12 01 1E 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 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 6C 00 00 00 F4 03 04 00 57 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BC FA 00 00 35 04 06 00 71 33 E7 F2 39 81 53 07 78 DB 3A F2 09 6B [16:12:05]CheckFolder [16:12:05]dirname=/storage/ofd_packets [16:12:05]CheckFolder done [16:12:05]ProducePacketName [16:12:05]name=ofd_packets/00064188 [16:12:05]NVStorageSaveData ofd_packets/00064188 [16:12:05]File name is /storage/ofd_packets/00064188 [16:12:05]Write 324 bytes [16:12:05]NVStorageSaveData done [16:12:05]OFDSenderStorePacket done [16:12:05]KKMCreateOFDPacket done [16:12:05]NVStorageSaveData kkm_last_timestamp [16:12:05]File name is /storage/kkm_last_timestamp [16:12:05]Write 4 bytes [16:12:05]NVStorageSaveData done [16:12:05]ExternCall_PrintAddStr [16:12:05]wPrintStart [16:12:05]Write to MH i2c: 01 00 00 46 2C 72 [16:12:05]Write i2c OK [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: 01 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: 01 07 00 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: 01 07 00 46 2C 00 00 00 00 00 FF 0F 87 [16:12:05]RasterBufferAndPrint [16:12:05]line Счет N : (3)73718 [16:12:05]line ИНН: 02508201610067 [16:12:05]line Контрольно-Кассовый Чек [16:12:05]line ПРОДАЖА [16:12:05]line Товар: 48741958 [16:12:05]line Сигареты Parliament Aqua Blue [16:12:05]line 1.000 * 151.00 [16:12:05]line = 151.00 [16:12:05]line НДС 12% НСП 1% [16:12:05]line > о реализуемом товаре [16:12:05]line ИТОГО: 151.00 [16:12:05]line НСП 1% : 1.34 [16:12:05]line НДС 12% : 16.03 [16:12:05]line Наличными: 151.00 [16:12:05]line Безнал.: 0.00 [16:12:05]line Место: АЗС № 117 "Партнер Нефть" [16:12:05]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:12:05]line СНО: Общий режим [16:12:05]line Чек 108 05.06.2024 16:12 [16:12:05]line Смена: 375 ФФД: 1.0 [16:12:05]line ЗНМ: 0300000031 [16:12:05]line РНМ: 0000000000092737 [16:12:05]line Версия ККМ: 001 [16:12:05]line ФМ: 0000000000875074 [16:12:05]line ФД: 64188 [16:12:05]line ФПД: 124467748682113 [16:12:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T161207&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64188&fm=124467748682113&tin=02508201610067®Number=0000000000092737&sum=15100 [16:12:05]line 0 [16:12:05]written 0, free lines is 4095 [16:12:05]Write to MH i2c: 01 00 00 6F 2C 9B [16:12:05]Write i2c OK [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: 01 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: 01 07 00 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: 01 07 00 6F 2C 00 00 00 00 00 C8 0C 76 [16:12:05]RasterBufferAndPrint [16:12:05]line [16:12:05]line [16:12:05]line [16:12:05]line [16:12:05]line [16:12:05]written 0, free lines is 3277 [16:12:05]MH_Cut [16:12:05]Write to MH i2c: D1 01 00 76 2C 01 74 [16:12:05]Write i2c OK [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: D1 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: D1 01 00 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: D1 01 00 76 2C 00 73 [16:12:05]Write to MH i2c: 01 00 00 77 2C A3 [16:12:05]Write i2c OK [16:12:05]MH_I2C_Read... [16:12:06]*** Cut start [16:12:06]*** Partial cut [16:12:06]*** CUTSNS_PIN = 1 [16:12:06]*** CUTSNS_PIN = 0 [16:12:06]*** Brake cut motor [16:12:07]Read from MH i2c: 01 [16:12:07]MH_I2C_Read... [16:12:07]*** Stop cut motor [16:12:07]*** Cut end [16:12:07]Read from MH i2c: 01 07 00 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: 01 07 00 77 2C 00 00 00 00 00 FF 0F B8 [16:12:07]process_action close_receipt done [16:12:07]requested_data is exist [16:12:07]produce_requested_data [16:12:07]requested_item fm.sn is exist - process it [16:12:07]wFMCommunicate request_size=4 [16:12:07]MH_SAM_APDU [16:12:07]CAPDU: 80 11 00 00 [16:12:07]Write to MH i2c: E2 08 00 78 2C 80 11 00 00 00 00 00 00 1E [16:12:07]Write i2c OK [16:12:07]MH_I2C_Read... [16:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:07]Read from MH i2c: E2 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 17 00 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 17 00 78 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 70 [16:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:12:07]wFMCommunicate OK [16:12:07]requested_item fd.num is exist - process it [16:12:07]SAM_PROTO_GetFieldsCounters [16:12:07]wFMCommunicate request_size=4 [16:12:07]MH_SAM_APDU [16:12:07]CAPDU: 80 13 00 00 [16:12:07]Write to MH i2c: E2 08 00 79 2C 80 13 00 00 00 00 00 00 21 [16:12:07]Write i2c OK [16:12:07]MH_I2C_Read... [16:12:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:07]Read from MH i2c: E2 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 62 00 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 62 00 79 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 BC FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [16:12:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 BC FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:07]wFMCommunicate OK [16:12:07]SAM_PROTO_GetFieldsCounters done [16:12:07]requested_item shift.num is exist - process it [16:12:07]requested_item shift.opened is exist - process it [16:12:07]req_shift_opened [16:12:07]FM_GetShiftState [16:12:07]SAM_PROTO_GetShiftState [16:12:07]wFMCommunicate request_size=4 [16:12:07]MH_SAM_APDU [16:12:07]CAPDU: 80 13 01 00 [16:12:07]Write to MH i2c: E2 08 00 7A 2C 80 13 01 00 00 00 00 00 23 [16:12:07]Write i2c OK [16:12:07]MH_I2C_Read... [16:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:07]Read from MH i2c: E2 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 0E 00 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 0E 00 7A 2C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 64 [16:12:07]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:12:07]wFMCommunicate OK [16:12:07]SAM_PROTO_GetShiftState done [16:12:07]FM_GetShiftState done [16:12:07]req_shift_opened done [16:12:07]requested_item shift.open_date is exist - process it [16:12:07]req_shift_open_date [16:12:07]req_shift_open_date done [16:12:07]produce_requested_data done [16:12:07]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64188,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:12:07]process_action_free close_receipt [16:12:07]json_value_free [16:12:07]json_value_free done [16:12:07]process_json_proto returns [16:12:07]Send response to host [16:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64188,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:12:07]free response buf [16:12:07]execute_script done [16:12:07]execute_script returns [16:12:07]free content buf [16:12:07]Sock 8.Close socket [16:12:07]Sock 8.Thread stoped [16:12:17]accept exits with 9 [16:12:17]New connection [16:12:17]New thread 3067276644 created [16:12:17]Thread 3067133284 joined [16:12:17]Waiting for new connection... [16:12:17] Sock 9.Parse request [16:12:17]Sock 9.Check first char [16:12:17]Sock 9.First char is OK [16:12:17]request: POST /json_proto HTTP/1.0 [16:12:17]Method: POST [16:12:17]URL: /json_proto [16:12:17]Method is POST - this is cgi request [16:12:17]url: /json_proto [16:12:17]query_string will be loaded in cgi processing [16:12:17]execute_cgi json_proto POST (null) [16:12:17]execute_cgi path=json_proto method=POST [16:12:17]POST find Content-Length [16:12:17]Host: 172.17.60.69:8080 [16:12:17]Content-Length: 668 [16:12:17]Content-Type: application/json [16:12:17] [16:12:17]POST finish read [16:12:17]Found Content-Length = 668 [16:12:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73719", "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 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:17]execute_script... [16:12: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)73719", "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 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:17]POST & json_proto [16:12:17]process_json_proto [16:12:17]json parsed OK: [16:12:17]protocol is kg_v1.0 [16:12:17]action value=close_receipt [16:12:17]process_action close_receipt [16:12:17]cmd_close_receipt [16:12:17]MH_GetDate [16:12:17]Write to MH i2c: F0 00 00 7B 2C 96 [16:12:17]Write i2c OK [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: F0 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: F0 09 00 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: F0 09 00 7B 2C 00 65 8E 60 66 D2 83 5F 66 72 [16:12:17]GetLastDocTimeStamp 1717603927 [16:12:17]current date 1717603941 [16:12:17]FM_GetShiftState [16:12:17]SAM_PROTO_GetShiftState [16:12:17]wFMCommunicate request_size=4 [16:12:17]MH_SAM_APDU [16:12:17]CAPDU: 80 13 01 00 [16:12:17]Write to MH i2c: E2 08 00 7C 2C 80 13 01 00 00 00 00 00 25 [16:12:17]Write i2c OK [16:12:17]MH_I2C_Read... [16:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:17]Read from MH i2c: E2 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: E2 0E 00 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: E2 0E 00 7C 2C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 66 [16:12:17]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:12:17]wFMCommunicate OK [16:12:17]SAM_PROTO_GetShiftState done [16:12:17]FM_GetShiftState done [16:12:17]opened in 1717545925 [16:12:17]opened+sec_in_day 1717632325 [16:12:17]quantity*price = 11000 [16:12:17]sum+1 = 11001 [16:12:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 109 05.06.2024 16:12 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64189 ФПД: 200516441525962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T161221&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64189&fm=200516441525962&tin=02508201610067®Number=0000000000092737&sum=11000 0 [16:12:18]StoreToDocumentArchive [16:12:18]shift 375 fd 64189 [16:12:18]save to /storage/0375/doc_00064189 [16:12:18]save last doc name /storage/0375/doc_00064189 to /storage/kkm_last_doc_name [16:12:18]save OK [16:12:18]Clear old archive folders... [16:12:18]ProcessDocumentItem done err = 0, tmpTLVsize=293 [16:12:18]tlvbuf is B6FA4540 [16:12:18]SAM_PROTO_ClearQueue [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 09 00 00 [16:12:18]Write to MH i2c: E2 08 00 89 2C 80 09 00 00 00 00 00 00 27 [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:18]Read from MH i2c: E2 03 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 89 2C 00 90 00 29 [16:12:18]RAPDU: 90 00 [16:12:18]wFMCommunicate OK [16:12:18]SAM_PROTO_ClearQueue done [16:12:18]KKMCreateOFDPacket [16:12:18]OFDProtocolAddRootSTLVToBuf [16:12:18]FM_MakeSignedData [16:12:18]FM_MakeSignedData [16:12:18]SAM_PROTO_SignData [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 0D 01 02 [16:12:18]Write to MH i2c: E2 08 00 8A 2C 80 0D 01 02 00 00 00 00 2F [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 8A 2C 00 90 00 2A [16:12:18]RAPDU: 90 00 [16:12:18]wFMCommunicate OK [16:12:18]wFMCommunicate request_size=255 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6D 00 00 00 F4 03 04 00 65 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [16:12:18]Write to MH i2c: E2 02 01 8B 2C 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6D 00 00 00 F4 03 04 00 65 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 E7 [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 8B 2C 00 90 00 2B [16:12:18]RAPDU: 90 00 [16:12:18]wFMCommunicate OK [16:12:18]wFMCommunicate request_size=52 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BD FA 00 00 35 04 06 00 B6 5E 5F 44 CE CA [16:12:18]Write to MH i2c: E2 37 00 8C 2C 80 0D 02 02 2F 00 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BD FA 00 00 35 04 06 00 B6 5E 5F 44 CE CA 00 00 FD [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 8C 2C 00 90 00 2C [16:12:18]RAPDU: 90 00 [16:12:18]wFMCommunicate OK [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 0D 03 02 [16:12:18]Write to MH i2c: E2 08 00 8D 2C 80 0D 03 02 00 00 00 00 34 [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 0B 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 0B 00 8D 2C 00 C1 08 8D 80 13 8C 35 FF 90 00 DE [16:12:18]RAPDU: C1 08 8D 80 13 8C 35 FF 90 00 [16:12:18]wFMCommunicate OK [16:12:18]SAM_PROTO_SignData done [16:12:18]FM_MakeSignedData done [16:12:18]CreateOFDProtocolMessage [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 11 00 00 [16:12:18]Write to MH i2c: E2 08 00 8E 2C 80 11 00 00 00 00 00 00 34 [16:12:19]Write i2c OK [16:12:19]MH_I2C_Read... [16:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:19]Read from MH i2c: E2 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: E2 17 00 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: E2 17 00 8E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 86 [16:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:12:19]wFMCommunicate OK [16:12:19]CreateOFDProtocolMessage done [16:12:19]OFDSenderStorePacket 64189 [16:12:19]StoreOFDPacket docnum=64189 [16:12:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 55 7E 31 01 3A F3 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 6D 00 00 00 F4 03 04 00 65 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BD FA 00 00 35 04 06 00 B6 5E 5F 44 CE CA C1 08 8D 80 13 8C 35 FF [16:12:19]CheckFolder [16:12:19]dirname=/storage/ofd_packets [16:12:19]CheckFolder done [16:12:19]ProducePacketName [16:12:19]name=ofd_packets/00064189 [16:12:19]NVStorageSaveData ofd_packets/00064189 [16:12:19]File name is /storage/ofd_packets/00064189 [16:12:19]Write 343 bytes [16:12:19]NVStorageSaveData done [16:12:19]OFDSenderStorePacket done [16:12:19]KKMCreateOFDPacket done [16:12:19]NVStorageSaveData kkm_last_timestamp [16:12:19]File name is /storage/kkm_last_timestamp [16:12:19]Write 4 bytes [16:12:19]NVStorageSaveData done [16:12:19]ExternCall_PrintAddStr [16:12:19]wPrintStart [16:12:19]Write to MH i2c: 01 00 00 8F 2C BB [16:12:19]Write i2c OK [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: 01 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: 01 07 00 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: 01 07 00 8F 2C 00 00 00 00 00 FF 0F D0 [16:12:19]RasterBufferAndPrint [16:12:19]line Счет N : (3)73719 [16:12:19]line ИНН: 02508201610067 [16:12:19]line Контрольно-Кассовый Чек [16:12:19]line ПРОДАЖА [16:12:19]line Товар: 4870022003305 [16:12:19]line Напиток Gorilla эн нат ж/б 0,5/0,45л [16:12:19]line 1.000 * 110.00 [16:12:19]line = 110.00 [16:12:19]line НДС 12% НСП 1% [16:12:19]line > о реализуемом товаре [16:12:19]line ИТОГО: 110.00 [16:12:19]line НСП 1% : 0.97 [16:12:19]line НДС 12% : 11.68 [16:12:19]line Наличными: 110.00 [16:12:19]line Безнал.: 0.00 [16:12:19]line Место: АЗС № 117 "Партнер Нефть" [16:12:19]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:12:19]line СНО: Общий режим [16:12:19]line Чек 109 05.06.2024 16:12 [16:12:19]line Смена: 375 ФФД: 1.0 [16:12:19]line ЗНМ: 0300000031 [16:12:19]line РНМ: 0000000000092737 [16:12:19]line Версия ККМ: 001 [16:12:19]line ФМ: 0000000000875074 [16:12:19]line ФД: 64189 [16:12:19]line ФПД: 200516441525962 [16:12:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T161221&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64189&fm=200516441525962&tin=02508201610067®Number=0000000000092737&sum=11000 [16:12:19]line 0 [16:12:19]written 0, free lines is 4095 [16:12:19]Write to MH i2c: 01 00 00 B8 2C E4 [16:12:19]Write i2c OK [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: 01 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: 01 07 00 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: 01 07 00 B8 2C 00 00 00 00 00 E6 0C DD [16:12:19]RasterBufferAndPrint [16:12:19]line [16:12:19]line [16:12:19]line [16:12:19]line [16:12:19]line [16:12:19]written 0, free lines is 3310 [16:12:19]MH_Cut [16:12:19]Write to MH i2c: D1 01 00 BF 2C 01 BD [16:12:19]Write i2c OK [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: D1 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: D1 01 00 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: D1 01 00 BF 2C 00 BC [16:12:19]Write to MH i2c: 01 00 00 C0 2C EC [16:12:19]Write i2c OK [16:12:19]MH_I2C_Read... [16:12:20]*** Cut start [16:12:20]*** Partial cut [16:12:20]*** CUTSNS_PIN = 1 [16:12:20]*** CUTSNS_PIN = 0 [16:12:20]*** Brake cut motor [16:12:21]Read from MH i2c: 01 [16:12:21]MH_I2C_Read... [16:12:21]*** Stop cut motor [16:12:21]*** Cut end [16:12:21]Read from MH i2c: 01 07 00 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: 01 07 00 C0 2C 00 00 00 00 00 FF 0F 01 [16:12:21]process_action close_receipt done [16:12:21]requested_data is exist [16:12:21]produce_requested_data [16:12:21]requested_item fm.sn is exist - process it [16:12:21]wFMCommunicate request_size=4 [16:12:21]MH_SAM_APDU [16:12:21]CAPDU: 80 11 00 00 [16:12:21]Write to MH i2c: E2 08 00 C1 2C 80 11 00 00 00 00 00 00 67 [16:12:21]Write i2c OK [16:12:21]MH_I2C_Read... [16:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:21]Read from MH i2c: E2 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: E2 17 00 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: E2 17 00 C1 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B9 [16:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:12:21]wFMCommunicate OK [16:12:21]requested_item fd.num is exist - process it [16:12:21]SAM_PROTO_GetFieldsCounters [16:12:21]wFMCommunicate request_size=4 [16:12:21]MH_SAM_APDU [16:12:21]CAPDU: 80 13 00 00 [16:12:21]Write to MH i2c: E2 08 00 C2 2C 80 13 00 00 00 00 00 00 6A [16:12:21]Write i2c OK [16:12:21]MH_I2C_Read... [16:12:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:21]Read from MH i2c: E2 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: E2 62 00 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: E2 62 00 C2 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 BD FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [16:12:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 BD FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:21]wFMCommunicate OK [16:12:21]SAM_PROTO_GetFieldsCounters done [16:12:21]requested_item shift.num is exist - process it [16:12:21]requested_item shift.opened is exist - process it [16:12:21]req_shift_opened [16:12:21]FM_GetShiftState [16:12:21]SAM_PROTO_GetShiftState [16:12:21]wFMCommunicate request_size=4 [16:12:21]MH_SAM_APDU [16:12:21]CAPDU: 80 13 01 00 [16:12:21]Write to MH i2c: E2 08 00 C3 2C 80 13 01 00 00 00 00 00 6C [16:12:21]Write i2c OK [16:12:21]MH_I2C_Read... [16:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:21]Read from MH i2c: E2 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: E2 0E 00 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: E2 0E 00 C3 2C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 AD [16:12:21]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:12:21]wFMCommunicate OK [16:12:21]SAM_PROTO_GetShiftState done [16:12:21]FM_GetShiftState done [16:12:21]req_shift_opened done [16:12:21]requested_item shift.open_date is exist - process it [16:12:21]req_shift_open_date [16:12:21]req_shift_open_date done [16:12:21]produce_requested_data done [16:12:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64189,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:12:21]process_action_free close_receipt [16:12:21]json_value_free [16:12:21]json_value_free done [16:12:21]process_json_proto returns [16:12:21]Send response to host [16:12:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64189,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:12:21]free response buf [16:12:21]execute_script done [16:12:21]execute_script returns [16:12:21]free content buf [16:12:21]Sock 9.Close socket [16:12:21]Sock 9.Thread stoped [16:13:10]accept exits with 8 [16:13:10]New connection [16:13:10]New thread 3067133284 created [16:13:10]Thread 3067276644 joined [16:13:10]Waiting for new connection... [16:13:10] Sock 8.Parse request [16:13:10]Sock 8.Check first char [16:13:10]Sock 8.First char is OK [16:13:10]request: POST /json_proto HTTP/1.0 [16:13:10]Method: POST [16:13:10]URL: /json_proto [16:13:10]Method is POST - this is cgi request [16:13:10]url: /json_proto [16:13:10]query_string will be loaded in cgi processing [16:13:10]execute_cgi json_proto POST (null) [16:13:10]execute_cgi path=json_proto method=POST [16:13:10]POST find Content-Length [16:13:10]Host: 172.17.60.69:8080 [16:13:10]Content-Length: 1110 [16:13:10]Content-Type: application/json [16:13:10] [16:13:10]POST finish read [16:13:10]Found Content-Length = 1110 [16:13:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73720", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522688", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 0,45 \u041F\u042D", "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" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:10]execute_script... [16:13: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)73720", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522688", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 0,45 \u041F\u042D", "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" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:10]POST & json_proto [16:13:10]process_json_proto [16:13:10]json parsed OK: [16:13:10]protocol is kg_v1.0 [16:13:10]action value=close_receipt [16:13:10]process_action close_receipt [16:13:10]cmd_close_receipt [16:13:10]MH_GetDate [16:13:10]Write to MH i2c: F0 00 00 C4 2C DF [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: F0 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: F0 09 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: F0 09 00 C4 2C 00 9A 8E 60 66 D2 83 5F 66 F0 [16:13:10]GetLastDocTimeStamp 1717603941 [16:13:10]current date 1717603994 [16:13:10]FM_GetShiftState [16:13:10]SAM_PROTO_GetShiftState [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 13 01 00 [16:13:10]Write to MH i2c: E2 08 00 C5 2C 80 13 01 00 00 00 00 00 6E [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 0E 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 0E 00 C5 2C 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 AF [16:13:10]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:13:10]wFMCommunicate OK [16:13:10]SAM_PROTO_GetShiftState done [16:13:10]FM_GetShiftState done [16:13:10]opened in 1717545925 [16:13:10]opened+sec_in_day 1717632325 [16:13:10]quantity*price = 15500 [16:13:10]sum+1 = 15501 [16:13:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202522688 Garden напиток со вкусом граната 0,45 ПЭ 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 0.00 Безнал.: 225.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 110 05.06.2024 16:13 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64190 ФПД: 36932120272768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T161314&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64190&fm=36932120272768&tin=02508201610067®Number=0000000000092737&sum=22500 0 [16:13:11]StoreToDocumentArchive [16:13:11]shift 375 fd 64190 [16:13:11]save to /storage/0375/doc_00064190 [16:13:11]save last doc name /storage/0375/doc_00064190 to /storage/kkm_last_doc_name [16:13:11]save OK [16:13:11]Clear old archive folders... [16:13:11]ProcessDocumentItem done err = 0, tmpTLVsize=406 [16:13:11]tlvbuf is 00FD5340 [16:13:11]SAM_PROTO_ClearQueue [16:13:11]wFMCommunicate request_size=4 [16:13:11]MH_SAM_APDU [16:13:11]CAPDU: 80 09 00 00 [16:13:11]Write to MH i2c: E2 08 00 D2 2C 80 09 00 00 00 00 00 00 70 [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:11]Read from MH i2c: E2 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 03 00 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 03 00 D2 2C 00 90 00 72 [16:13:11]RAPDU: 90 00 [16:13:11]wFMCommunicate OK [16:13:11]SAM_PROTO_ClearQueue done [16:13:11]KKMCreateOFDPacket [16:13:11]OFDProtocolAddRootSTLVToBuf [16:13:11]FM_MakeSignedData [16:13:11]FM_MakeSignedData [16:13:11]SAM_PROTO_SignData [16:13:11]wFMCommunicate request_size=4 [16:13:11]MH_SAM_APDU [16:13:11]CAPDU: 80 0D 01 02 [16:13:11]Write to MH i2c: E2 08 00 D3 2C 80 0D 01 02 00 00 00 00 78 [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:11]Read from MH i2c: E2 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 03 00 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 03 00 D3 2C 00 90 00 73 [16:13:11]RAPDU: 90 00 [16:13:11]wFMCommunicate OK [16:13:11]wFMCommunicate request_size=255 [16:13:11]MH_SAM_APDU [16:13:11]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 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 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD 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 E4 [16:13:11]Write to MH i2c: E2 02 01 D4 2C 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 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 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD 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 E4 00 00 6D [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:11]Read from MH i2c: E2 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 03 00 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 03 00 D4 2C 00 90 00 74 [16:13:11]RAPDU: 90 00 [16:13:11]wFMCommunicate OK [16:13:11]wFMCommunicate request_size=165 [16:13:11]MH_SAM_APDU [16:13:11]CAPDU: 80 0D 02 02 A0 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9A 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BE FA 00 00 35 04 06 00 21 96 ED E8 DF 80 [16:13:11]Write to MH i2c: E2 A8 00 D5 2C 80 0D 02 02 A0 00 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9A 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BE FA 00 00 35 04 06 00 21 96 ED E8 DF 80 00 00 28 [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:12]Read from MH i2c: E2 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 03 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 03 00 D5 2C 00 90 00 75 [16:13:12]RAPDU: 90 00 [16:13:12]wFMCommunicate OK [16:13:12]wFMCommunicate request_size=4 [16:13:12]MH_SAM_APDU [16:13:12]CAPDU: 80 0D 03 02 [16:13:12]Write to MH i2c: E2 08 00 D6 2C 80 0D 03 02 00 00 00 00 7D [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:12]Read from MH i2c: E2 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 0B 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 0B 00 D6 2C 00 5A 97 16 91 5C D0 4E 7B 90 00 0B [16:13:12]RAPDU: 5A 97 16 91 5C D0 4E 7B 90 00 [16:13:12]wFMCommunicate OK [16:13:12]SAM_PROTO_SignData done [16:13:12]FM_MakeSignedData done [16:13:12]CreateOFDProtocolMessage [16:13:12]wFMCommunicate request_size=4 [16:13:12]MH_SAM_APDU [16:13:12]CAPDU: 80 11 00 00 [16:13:12]Write to MH i2c: E2 08 00 D7 2C 80 11 00 00 00 00 00 00 7D [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:12]Read from MH i2c: E2 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 17 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 17 00 D7 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CF [16:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:13:12]wFMCommunicate OK [16:13:12]CreateOFDProtocolMessage done [16:13:12]OFDSenderStorePacket 64190 [16:13:12]StoreOFDPacket docnum=64190 [16:13:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 AA 01 00 00 EE 2E A2 01 08 46 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 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 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD 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 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9A 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BE FA 00 00 35 04 06 00 21 96 ED E8 DF 80 5A 97 16 91 5C D0 4E 7B [16:13:12]CheckFolder [16:13:12]dirname=/storage/ofd_packets [16:13:12]CheckFolder done [16:13:12]ProducePacketName [16:13:12]name=ofd_packets/00064190 [16:13:12]NVStorageSaveData ofd_packets/00064190 [16:13:12]File name is /storage/ofd_packets/00064190 [16:13:12]Write 456 bytes [16:13:12]NVStorageSaveData done [16:13:12]OFDSenderStorePacket done [16:13:12]KKMCreateOFDPacket done [16:13:12]NVStorageSaveData kkm_last_timestamp [16:13:12]File name is /storage/kkm_last_timestamp [16:13:12]Write 4 bytes [16:13:12]NVStorageSaveData done [16:13:12]ExternCall_PrintAddStr [16:13:12]wPrintStart [16:13:12]Write to MH i2c: 01 00 00 D8 2C 04 [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: 01 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: 01 07 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: 01 07 00 D8 2C 00 00 00 00 00 FF 0F 19 [16:13:12]RasterBufferAndPrint [16:13:12]line Счет N : (3)73720 [16:13:12]line ИНН: 02508201610067 [16:13:12]line Контрольно-Кассовый Чек [16:13:12]line ПРОДАЖА [16:13:12]line Товар: 48746526 [16:13:12]line Сигареты Mevius Wind Blue [16:13:12]line 1.000 * 155.00 [16:13:12]line = 155.00 [16:13:12]line НДС 12% НСП 1% [16:13:12]line > о реализуемом товаре [16:13:12]line Товар: 4870202522688 [16:13:12]line Garden напиток со вкусом граната 0,45 ПЭ [16:13:12]line 1.000 * 70.00 [16:13:12]line = 70.00 [16:13:12]line НДС 12% НСП 1% [16:13:12]line > о реализуемом товаре [16:13:12]line ИТОГО: 225.00 [16:13:12]line НСП 1% : 1.99 [16:13:12]line НДС 12% : 23.89 [16:13:12]line Наличными: 0.00 [16:13:12]line Безнал.: 225.00 [16:13:12]line Место: АЗС № 117 "Партнер Нефть" [16:13:12]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:13:12]line СНО: Общий режим [16:13:12]line Чек 110 05.06.2024 16:13 [16:13:12]line Смена: 375 ФФД: 1.0 [16:13:12]line ЗНМ: 0300000031 [16:13:12]line РНМ: 0000000000092737 [16:13:12]line Версия ККМ: 001 [16:13:12]line Платежная система: O! деньги [16:13:12]line ФМ: 0000000000875074 [16:13:12]line ФД: 64190 [16:13:12]line ФПД: 36932120272768 [16:13:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T161314&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64190&fm=36932120272768&tin=02508201610067®Number=0000000000092737&sum=22500 [16:13:12]line 0 [16:13:12]written 0, free lines is 4095 [16:13:13]Write to MH i2c: 01 00 00 09 2D 36 [16:13:13]Write i2c OK [16:13:13]MH_I2C_Read... [16:13:13]Read from MH i2c: 01 [16:13:13]MH_I2C_Read... [16:13:13]Read from MH i2c: 01 07 00 [16:13:13]MH_I2C_Read... [16:13:13]Read from MH i2c: 01 07 00 09 2D 00 00 00 00 00 61 0C AA [16:13:13]RasterBufferAndPrint [16:13:13]line [16:13:13]line [16:13:13]line [16:13:13]line [16:13:13]line [16:13:13]written 0, free lines is 3174 [16:13:13]MH_Cut [16:13:13]Write to MH i2c: D1 01 00 10 2D 01 0F [16:13:13]Write i2c OK [16:13:13]MH_I2C_Read... [16:13:13]Read from MH i2c: D1 [16:13:13]MH_I2C_Read... [16:13:13]Read from MH i2c: D1 01 00 [16:13:13]MH_I2C_Read... [16:13:13]Read from MH i2c: D1 01 00 10 2D 00 0E [16:13:13]Write to MH i2c: 01 00 00 11 2D 3E [16:13:13]Write i2c OK [16:13:13]MH_I2C_Read... [16:13:13]*** Cut start [16:13:13]*** Partial cut [16:13:13]*** CUTSNS_PIN = 1 [16:13:14]*** CUTSNS_PIN = 0 [16:13:14]*** Brake cut motor [16:13:14]Read from MH i2c: 01 [16:13:14]MH_I2C_Read... [16:13:14]*** Stop cut motor [16:13:14]*** Cut end [16:13:14]Read from MH i2c: 01 07 00 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: 01 07 00 11 2D 00 00 00 00 00 FF 0F 53 [16:13:14]process_action close_receipt done [16:13:14]requested_data is exist [16:13:14]produce_requested_data [16:13:14]requested_item fm.sn is exist - process it [16:13:14]wFMCommunicate request_size=4 [16:13:14]MH_SAM_APDU [16:13:14]CAPDU: 80 11 00 00 [16:13:14]Write to MH i2c: E2 08 00 12 2D 80 11 00 00 00 00 00 00 B9 [16:13:14]Write i2c OK [16:13:14]MH_I2C_Read... [16:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:14]Read from MH i2c: E2 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 17 00 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 17 00 12 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0B [16:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:13:14]wFMCommunicate OK [16:13:14]requested_item fd.num is exist - process it [16:13:14]SAM_PROTO_GetFieldsCounters [16:13:14]wFMCommunicate request_size=4 [16:13:14]MH_SAM_APDU [16:13:14]CAPDU: 80 13 00 00 [16:13:14]Write to MH i2c: E2 08 00 13 2D 80 13 00 00 00 00 00 00 BC [16:13:14]Write i2c OK [16:13:14]MH_I2C_Read... [16:13:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:14]Read from MH i2c: E2 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 62 00 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 62 00 13 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 BE FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [16:13:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 BE FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:14]wFMCommunicate OK [16:13:14]SAM_PROTO_GetFieldsCounters done [16:13:14]requested_item shift.num is exist - process it [16:13:14]requested_item shift.opened is exist - process it [16:13:14]req_shift_opened [16:13:14]FM_GetShiftState [16:13:14]SAM_PROTO_GetShiftState [16:13:14]wFMCommunicate request_size=4 [16:13:14]MH_SAM_APDU [16:13:14]CAPDU: 80 13 01 00 [16:13:14]Write to MH i2c: E2 08 00 14 2D 80 13 01 00 00 00 00 00 BE [16:13:14]Write i2c OK [16:13:14]MH_I2C_Read... [16:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:14]Read from MH i2c: E2 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 0E 00 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 0E 00 14 2D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 FF [16:13:14]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:13:14]wFMCommunicate OK [16:13:14]SAM_PROTO_GetShiftState done [16:13:14]FM_GetShiftState done [16:13:14]req_shift_opened done [16:13:14]requested_item shift.open_date is exist - process it [16:13:14]req_shift_open_date [16:13:14]req_shift_open_date done [16:13:14]produce_requested_data done [16:13:14]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64190,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:13:14]process_action_free close_receipt [16:13:14]json_value_free [16:13:14]json_value_free done [16:13:14]process_json_proto returns [16:13:14]Send response to host [16:13:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64190,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:13:14]free response buf [16:13:14]execute_script done [16:13:14]execute_script returns [16:13:14]free content buf [16:13:14]Sock 8.Close socket [16:13:14]Sock 8.Thread stoped [16:13:20]ConnectInit Can't connect to host [16:13:20]CommunicateWithHost connect error [16:13:20]CommunicateWithHost err = -1 [16:13:20]OFD Sender: Server communicate error [16:13:20]OFD Sender: Processing packet 64187 [packets to send 17, broken 13] [16:13:20]ProducePacketName [16:13:20]name=ofd_packets/00064187 [16:13:20]OFD Sender: To server: pG, [16:13:20]CommunicateWithHost lk.salyk.kg:30040 [16:13:20]ConnectInit lk.salyk.kg [16:13:20]Connected sock=8 [16:13:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 7C 04 28 01 F6 74 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 1F 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BB FA 00 00 35 04 06 00 05 F0 DE 88 05 BD A4 F1 27 CA 7B C9 9C D5 [16:13:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 E0 86 47 00 AD 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BB FA 00 00 F4 03 04 00 AE 3A 60 66 B6 04 01 00 00 40 15 C3 99 92 E9 E8 8D [16:13:21]CommunicateWithHost err = 0 [16:13:21]CheckOFDResponse [16:13:21]1017 (14) - 77093643461234 [16:13:21]1041 (16) - 0000000000875074 [16:13:21]1040 (4) - 64187 [16:13:21]1012 (4) - 05.06.2024 10:15 [16:13:21]1206 (1) - 0 [16:13:21]OFD Sender: Remove packet 64187 [16:13:21]ProducePacketName [16:13:21]name=ofd_packets/00064187 [16:13:21]NVStorageDeleteData [16:13:21]OFD Sender: Processing packet 64188 [packets to send 16, broken 13] [16:13:21]ProducePacketName [16:13:21]name=ofd_packets/00064188 [16:13:21]OFD Sender: To server: pG, [16:13:21]CommunicateWithHost lk.salyk.kg:30040 [16:13:21]ConnectInit lk.salyk.kg [16:13:21]Connected sock=8 [16:13:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 10 4E 1E 01 5D 30 5A 03 01 00 03 00 12 01 1E 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 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 6C 00 00 00 F4 03 04 00 57 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BC FA 00 00 35 04 06 00 71 33 E7 F2 39 81 53 07 78 DB 3A F2 09 6B [16:13:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C6 D4 47 00 5F F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BC FA 00 00 F4 03 04 00 AF 3A 60 66 B6 04 01 00 00 30 FC 81 6E D0 8E 14 0A [16:13:21]CommunicateWithHost err = 0 [16:13:21]CheckOFDResponse [16:13:21]1017 (14) - 77093643461234 [16:13:21]1041 (16) - 0000000000875074 [16:13:21]1040 (4) - 64188 [16:13:21]1012 (4) - 05.06.2024 10:15 [16:13:21]1206 (1) - 0 [16:13:21]OFD Sender: Remove packet 64188 [16:13:21]ProducePacketName [16:13:21]name=ofd_packets/00064188 [16:13:21]NVStorageDeleteData [16:13:22]OFD Sender: Processing packet 64189 [packets to send 15, broken 13] [16:13:22]ProducePacketName [16:13:22]name=ofd_packets/00064189 [16:13:22]OFD Sender: To server: pG, [16:13:22]CommunicateWithHost lk.salyk.kg:30040 [16:13:22]ConnectInit lk.salyk.kg [16:13:22]Connected sock=8 [16:13:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 55 7E 31 01 3A F3 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 6D 00 00 00 F4 03 04 00 65 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BD FA 00 00 35 04 06 00 B6 5E 5F 44 CE CA C1 08 8D 80 13 8C 35 FF [16:13:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 B1 4D 47 00 3D DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BD FA 00 00 F4 03 04 00 AF 3A 60 66 B6 04 01 00 00 4C 13 D0 72 7B 06 64 CF [16:13:22]CommunicateWithHost err = 0 [16:13:22]CheckOFDResponse [16:13:22]1017 (14) - 77093643461234 [16:13:22]1041 (16) - 0000000000875074 [16:13:22]1040 (4) - 64189 [16:13:22]1012 (4) - 05.06.2024 10:15 [16:13:22]1206 (1) - 0 [16:13:22]OFD Sender: Remove packet 64189 [16:13:22]ProducePacketName [16:13:22]name=ofd_packets/00064189 [16:13:22]NVStorageDeleteData [16:13:23]OFD Sender: Processing packet 64190 [packets to send 14, broken 13] [16:13:23]ProducePacketName [16:13:23]name=ofd_packets/00064190 [16:13:23]OFD Sender: To server: pG, [16:13:23]CommunicateWithHost lk.salyk.kg:30040 [16:13:23]ConnectInit lk.salyk.kg [16:13:23]Connected sock=8 [16:13:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 AA 01 00 00 EE 2E A2 01 08 46 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 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 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD 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 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9A 8E 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BE FA 00 00 35 04 06 00 21 96 ED E8 DF 80 5A 97 16 91 5C D0 4E 7B [16:13:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 B6 8F 47 00 47 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BE FA 00 00 F4 03 04 00 B0 3A 60 66 B6 04 01 00 00 15 1C D1 3E AD 8C D8 3F [16:13:23]CommunicateWithHost err = 0 [16:13:23]CheckOFDResponse [16:13:23]1017 (14) - 77093643461234 [16:13:23]1041 (16) - 0000000000875074 [16:13:23]1040 (4) - 64190 [16:13:23]1012 (4) - 05.06.2024 10:15 [16:13:23]1206 (1) - 0 [16:13:23]OFD Sender: Remove packet 64190 [16:13:23]ProducePacketName [16:13:23]name=ofd_packets/00064190 [16:13:23]NVStorageDeleteData [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:24]accept exits with 9 [16:16:24]New connection [16:16:24]New thread 3067276644 created [16:16:24]Thread 3067133284 joined [16:16:24]Waiting for new connection... [16:16:24] Sock 9.Parse request [16:16:24]Sock 9.Check first char [16:16:24]Sock 9.First char is OK [16:16:24]request: POST /json_proto HTTP/1.0 [16:16:24]Method: POST [16:16:24]URL: /json_proto [16:16:24]Method is POST - this is cgi request [16:16:24]url: /json_proto [16:16:24]query_string will be loaded in cgi processing [16:16:24]execute_cgi json_proto POST (null) [16:16:24]execute_cgi path=json_proto method=POST [16:16:24]POST find Content-Length [16:16:24]Host: 172.17.60.69:8080 [16:16:24]Content-Length: 643 [16:16:24]Content-Type: application/json [16:16:24] [16:16:24]POST finish read [16:16:24]Found Content-Length = 643 [16:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73721", "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" : 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" ] } } [16:16:24]execute_script... [16:16:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73721", "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" : 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" ] } } [16:16:24]POST & json_proto [16:16:24]process_json_proto [16:16:24]json parsed OK: [16:16:24]protocol is kg_v1.0 [16:16:24]action value=close_receipt [16:16:24]process_action close_receipt [16:16:24]cmd_close_receipt [16:16:24]MH_GetDate [16:16:24]Write to MH i2c: F0 00 00 15 2D 31 [16:16:24]Write i2c OK [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: F0 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: F0 09 00 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: F0 09 00 15 2D 00 5C 8F 60 66 D2 83 5F 66 05 [16:16:24]GetLastDocTimeStamp 1717603994 [16:16:24]current date 1717604188 [16:16:24]FM_GetShiftState [16:16:24]SAM_PROTO_GetShiftState [16:16:24]wFMCommunicate request_size=4 [16:16:24]MH_SAM_APDU [16:16:24]CAPDU: 80 13 01 00 [16:16:24]Write to MH i2c: E2 08 00 16 2D 80 13 01 00 00 00 00 00 C0 [16:16:24]Write i2c OK [16:16:24]MH_I2C_Read... [16:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:24]Read from MH i2c: E2 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: E2 0E 00 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: E2 0E 00 16 2D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 01 [16:16:24]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:16:24]wFMCommunicate OK [16:16:24]SAM_PROTO_GetShiftState done [16:16:24]FM_GetShiftState done [16:16:24]opened in 1717545925 [16:16:24]opened+sec_in_day 1717632325 [16:16:24]quantity*price = 11500 [16:16:24]sum+1 = 11501 [16:16:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 111 05.06.2024 16:16 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64191 ФПД: 189754854448798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T161628&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64191&fm=189754854448798&tin=02508201610067®Number=0000000000092737&sum=11500 0 [16:16:25]StoreToDocumentArchive [16:16:25]shift 375 fd 64191 [16:16:25]save to /storage/0375/doc_00064191 [16:16:25]save last doc name /storage/0375/doc_00064191 to /storage/kkm_last_doc_name [16:16:25]save OK [16:16:25]Clear old archive folders... [16:16:25]ProcessDocumentItem done err = 0, tmpTLVsize=280 [16:16:25]tlvbuf is 01106390 [16:16:25]SAM_PROTO_ClearQueue [16:16:25]wFMCommunicate request_size=4 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 09 00 00 [16:16:25]Write to MH i2c: E2 08 00 23 2D 80 09 00 00 00 00 00 00 C2 [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 03 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 03 00 23 2D 00 90 00 C4 [16:16:25]RAPDU: 90 00 [16:16:25]wFMCommunicate OK [16:16:25]SAM_PROTO_ClearQueue done [16:16:25]KKMCreateOFDPacket [16:16:25]OFDProtocolAddRootSTLVToBuf [16:16:25]FM_MakeSignedData [16:16:25]FM_MakeSignedData [16:16:25]SAM_PROTO_SignData [16:16:25]wFMCommunicate request_size=4 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 0D 01 02 [16:16:25]Write to MH i2c: E2 08 00 24 2D 80 0D 01 02 00 00 00 00 CA [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 03 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 03 00 24 2D 00 90 00 C5 [16:16:25]RAPDU: 90 00 [16:16:25]wFMCommunicate OK [16:16:25]wFMCommunicate request_size=255 [16:16:25]MH_SAM_APDU [16:16:25]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 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 6F 00 00 00 F4 03 04 00 5C 8F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [16:16:25]Write to MH i2c: E2 02 01 25 2D 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 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 6F 00 00 00 F4 03 04 00 5C 8F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 A5 [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 03 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 03 00 25 2D 00 90 00 C6 [16:16:25]RAPDU: 90 00 [16:16:25]wFMCommunicate OK [16:16:25]wFMCommunicate request_size=39 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BF FA 00 00 35 04 06 00 AC 94 BE B1 9E 9E [16:16:25]Write to MH i2c: E2 2A 00 26 2D 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BF FA 00 00 35 04 06 00 AC 94 BE B1 9E 9E 00 00 2B [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 03 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 03 00 26 2D 00 90 00 C7 [16:16:25]RAPDU: 90 00 [16:16:25]wFMCommunicate OK [16:16:25]wFMCommunicate request_size=4 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 0D 03 02 [16:16:25]Write to MH i2c: E2 08 00 27 2D 80 0D 03 02 00 00 00 00 CF [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 0B 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 0B 00 27 2D 00 92 94 C1 FF C9 8A 87 4A 90 00 DA [16:16:25]RAPDU: 92 94 C1 FF C9 8A 87 4A 90 00 [16:16:25]wFMCommunicate OK [16:16:25]SAM_PROTO_SignData done [16:16:25]FM_MakeSignedData done [16:16:25]CreateOFDProtocolMessage [16:16:25]wFMCommunicate request_size=4 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 11 00 00 [16:16:25]Write to MH i2c: E2 08 00 28 2D 80 11 00 00 00 00 00 00 CF [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 17 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 17 00 28 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 21 [16:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:16:25]wFMCommunicate OK [16:16:25]CreateOFDProtocolMessage done [16:16:25]OFDSenderStorePacket 64191 [16:16:25]StoreOFDPacket docnum=64191 [16:16:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 08 2D 24 01 08 BB 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 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 6F 00 00 00 F4 03 04 00 5C 8F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BF FA 00 00 35 04 06 00 AC 94 BE B1 9E 9E 92 94 C1 FF C9 8A 87 4A [16:16:25]CheckFolder [16:16:25]dirname=/storage/ofd_packets [16:16:25]CheckFolder done [16:16:25]ProducePacketName [16:16:25]name=ofd_packets/00064191 [16:16:25]NVStorageSaveData ofd_packets/00064191 [16:16:25]File name is /storage/ofd_packets/00064191 [16:16:25]Write 330 bytes [16:16:25]NVStorageSaveData done [16:16:25]OFDSenderStorePacket done [16:16:25]KKMCreateOFDPacket done [16:16:25]NVStorageSaveData kkm_last_timestamp [16:16:25]File name is /storage/kkm_last_timestamp [16:16:25]Write 4 bytes [16:16:25]NVStorageSaveData done [16:16:25]ExternCall_PrintAddStr [16:16:25]wPrintStart [16:16:25]Write to MH i2c: 01 00 00 29 2D 56 [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: 01 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: 01 07 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: 01 07 00 29 2D 00 00 00 00 00 FF 0F 6B [16:16:25]RasterBufferAndPrint [16:16:25]line Счет N : (3)73721 [16:16:25]line ИНН: 02508201610067 [16:16:25]line Контрольно-Кассовый Чек [16:16:25]line ПРОДАЖА [16:16:25]line Товар: 2000036210013 [16:16:25]line Кофе Капучино (GABB TRADE) [16:16:25]line 1.000 * 115.00 [16:16:25]line = 115.00 [16:16:25]line НДС 12% НСП 1% [16:16:25]line > о реализуемом товаре [16:16:25]line ИТОГО: 115.00 [16:16:25]line НСП 1% : 1.02 [16:16:25]line НДС 12% : 12.21 [16:16:25]line Наличными: 115.00 [16:16:25]line Безнал.: 0.00 [16:16:25]line Место: АЗС № 117 "Партнер Нефть" [16:16:25]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:16:25]line СНО: Общий режим [16:16:25]line Чек 111 05.06.2024 16:16 [16:16:25]line Смена: 375 ФФД: 1.0 [16:16:25]line ЗНМ: 0300000031 [16:16:25]line РНМ: 0000000000092737 [16:16:25]line Версия ККМ: 001 [16:16:25]line ФМ: 0000000000875074 [16:16:25]line ФД: 64191 [16:16:25]line ФПД: 189754854448798 [16:16:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T161628&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64191&fm=189754854448798&tin=02508201610067®Number=0000000000092737&sum=11500 [16:16:26]line 0 [16:16:26]OFD Sender: Processing packet 64191 [packets to send 14, broken 13] [16:16:26]ProducePacketName [16:16:26]name=ofd_packets/00064191 [16:16:26]OFD Sender: To server: pG, [16:16:26]CommunicateWithHost lk.salyk.kg:30040 [16:16:26]ConnectInit lk.salyk.kg [16:16:26]written 0, free lines is 4095 [16:16:26]Connected sock=11 [16:16:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 08 2D 24 01 08 BB 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 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 6F 00 00 00 F4 03 04 00 5C 8F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BF FA 00 00 35 04 06 00 AC 94 BE B1 9E 9E 92 94 C1 FF C9 8A 87 4A [16:16:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 47 AF 47 00 0F AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BF FA 00 00 F4 03 04 00 67 3B 60 66 B6 04 01 00 00 B1 58 BB AE 06 17 54 0D [16:16:26]CommunicateWithHost err = 0 [16:16:26]CheckOFDResponse [16:16:26]1017 (14) - 77093643461234 [16:16:26]1041 (16) - 0000000000875074 [16:16:26]1040 (4) - 64191 [16:16:26]1012 (4) - 05.06.2024 10:18 [16:16:26]1206 (1) - 0 [16:16:26]OFD Sender: Remove packet 64191 [16:16:26]ProducePacketName [16:16:26]name=ofd_packets/00064191 [16:16:26]NVStorageDeleteData [16:16:26]Write to MH i2c: 01 00 00 51 2D 7E [16:16:26]Write i2c OK [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: 01 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: 01 07 00 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: 01 07 00 51 2D 00 00 00 00 00 01 0D 93 [16:16:26]RasterBufferAndPrint [16:16:26]line [16:16:26]line [16:16:26]line [16:16:26]line [16:16:26]line [16:16:26]written 0, free lines is 3336 [16:16:26]MH_Cut [16:16:26]Write to MH i2c: D1 01 00 58 2D 01 57 [16:16:26]Write i2c OK [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: D1 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: D1 01 00 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: D1 01 00 58 2D 00 56 [16:16:26]Write to MH i2c: 01 00 00 59 2D 86 [16:16:26]Write i2c OK [16:16:26]MH_I2C_Read... [16:16:27]OFD Sender: No OFD packet to send [16:16:27]*** Cut start [16:16:27]*** Partial cut [16:16:27]*** CUTSNS_PIN = 1 [16:16:27]*** CUTSNS_PIN = 0 [16:16:27]*** Brake cut motor [16:16:28]Read from MH i2c: 01 [16:16:28]MH_I2C_Read... [16:16:28]*** Stop cut motor [16:16:28]*** Cut end [16:16:28]Read from MH i2c: 01 07 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: 01 07 00 59 2D 00 00 00 00 00 FF 0F 9B [16:16:28]process_action close_receipt done [16:16:28]requested_data is exist [16:16:28]produce_requested_data [16:16:28]requested_item fm.sn is exist - process it [16:16:28]wFMCommunicate request_size=4 [16:16:28]MH_SAM_APDU [16:16:28]CAPDU: 80 11 00 00 [16:16:28]Write to MH i2c: E2 08 00 5A 2D 80 11 00 00 00 00 00 00 01 [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:28]Read from MH i2c: E2 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 17 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 17 00 5A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 53 [16:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:16:28]wFMCommunicate OK [16:16:28]requested_item fd.num is exist - process it [16:16:28]SAM_PROTO_GetFieldsCounters [16:16:28]wFMCommunicate request_size=4 [16:16:28]MH_SAM_APDU [16:16:28]CAPDU: 80 13 00 00 [16:16:28]Write to MH i2c: E2 08 00 5B 2D 80 13 00 00 00 00 00 00 04 [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:28]Read from MH i2c: E2 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 62 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 62 00 5B 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 BF FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [16:16:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 BF FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:28]wFMCommunicate OK [16:16:28]SAM_PROTO_GetFieldsCounters done [16:16:28]requested_item shift.num is exist - process it [16:16:28]requested_item shift.opened is exist - process it [16:16:28]req_shift_opened [16:16:28]FM_GetShiftState [16:16:28]SAM_PROTO_GetShiftState [16:16:28]wFMCommunicate request_size=4 [16:16:28]MH_SAM_APDU [16:16:28]CAPDU: 80 13 01 00 [16:16:28]Write to MH i2c: E2 08 00 5C 2D 80 13 01 00 00 00 00 00 06 [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:28]Read from MH i2c: E2 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 0E 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 0E 00 5C 2D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 47 [16:16:28]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:16:28]wFMCommunicate OK [16:16:28]SAM_PROTO_GetShiftState done [16:16:28]FM_GetShiftState done [16:16:28]req_shift_opened done [16:16:28]requested_item shift.open_date is exist - process it [16:16:28]req_shift_open_date [16:16:28]req_shift_open_date done [16:16:28]produce_requested_data done [16:16:28]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64191,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:16:28]process_action_free close_receipt [16:16:28]json_value_free [16:16:28]json_value_free done [16:16:28]process_json_proto returns [16:16:28]Send response to host [16:16:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64191,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:16:28]free response buf [16:16:28]execute_script done [16:16:28]execute_script returns [16:16:28]free content buf [16:16:28]Sock 9.Close socket [16:16:28]Sock 9.Thread stoped [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:52]accept exits with 8 [16:16:52]New connection [16:16:52]New thread 3067133284 created [16:16:52]Thread 3067276644 joined [16:16:52]Waiting for new connection... [16:16:52] Sock 8.Parse request [16:16:52]Sock 8.Check first char [16:16:52]Sock 8.First char is OK [16:16:52]request: POST /json_proto HTTP/1.0 [16:16:52]Method: POST [16:16:52]URL: /json_proto [16:16:52]Method is POST - this is cgi request [16:16:52]url: /json_proto [16:16:52]query_string will be loaded in cgi processing [16:16:52]execute_cgi json_proto POST (null) [16:16:52]execute_cgi path=json_proto method=POST [16:16:52]POST find Content-Length [16:16:52]Host: 172.17.60.69:8080 [16:16:52]Content-Length: 705 [16:16:52]Content-Type: application/json [16:16:52] [16:16:52]POST finish read [16:16:52]Found Content-Length = 705 [16:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 64185, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73715", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "64185" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:52]execute_script... [16:16:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 64185, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73715", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "64185" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:52]POST & json_proto [16:16:52]process_json_proto [16:16:52]json parsed OK: [16:16:52]protocol is kg_v1.0 [16:16:52]action value=close_receipt [16:16:52]process_action close_receipt [16:16:52]cmd_close_receipt [16:16:52]MH_GetDate [16:16:52]Write to MH i2c: F0 00 00 5D 2D 79 [16:16:52]Write i2c OK [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: F0 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: F0 09 00 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: F0 09 00 5D 2D 00 78 8F 60 66 D2 83 5F 66 69 [16:16:52]GetLastDocTimeStamp 1717604188 [16:16:52]current date 1717604216 [16:16:52]FM_GetShiftState [16:16:52]SAM_PROTO_GetShiftState [16:16:52]wFMCommunicate request_size=4 [16:16:52]MH_SAM_APDU [16:16:52]CAPDU: 80 13 01 00 [16:16:52]Write to MH i2c: E2 08 00 5E 2D 80 13 01 00 00 00 00 00 08 [16:16:52]Write i2c OK [16:16:52]MH_I2C_Read... [16:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:52]Read from MH i2c: E2 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: E2 0E 00 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: E2 0E 00 5E 2D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 49 [16:16:52]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:16:52]wFMCommunicate OK [16:16:52]SAM_PROTO_GetShiftState done [16:16:52]FM_GetShiftState done [16:16:52]opened in 1717545925 [16:16:52]opened+sec_in_day 1717632325 [16:16:52]quantity*price = 12500 [16:16:52]sum+1 = 12501 [16:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 112 05.06.2024 16:16 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФД осн.: 64185 ФМ осн.: 0000000000875074 ФМ: 0000000000875074 ФД: 64192 ФПД: 274555387471568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T161656&type=2&operation_type=1&fn_number=0000000000875074&fd_number=64192&fm=274555387471568&tin=02508201610067®Number=0000000000092737&sum=12500 64185 [16:16:53]StoreToDocumentArchive [16:16:53]shift 375 fd 64192 [16:16:53]save to /storage/0375/doc_00064192 [16:16:53]save last doc name /storage/0375/doc_00064192 to /storage/kkm_last_doc_name [16:16:53]save OK [16:16:53]Clear old archive folders... [16:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=310 [16:16:53]tlvbuf is 00FFB570 [16:16:53]SAM_PROTO_ClearQueue [16:16:53]wFMCommunicate request_size=4 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 09 00 00 [16:16:53]Write to MH i2c: E2 08 00 6D 2D 80 09 00 00 00 00 00 00 0C [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 6D 2D 00 90 00 0E [16:16:53]RAPDU: 90 00 [16:16:53]wFMCommunicate OK [16:16:53]SAM_PROTO_ClearQueue done [16:16:53]KKMCreateOFDPacket [16:16:53]OFDProtocolAddRootSTLVToBuf [16:16:53]FM_MakeSignedData [16:16:53]FM_MakeSignedData [16:16:53]SAM_PROTO_SignData [16:16:53]wFMCommunicate request_size=4 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 0D 01 02 [16:16:53]Write to MH i2c: E2 08 00 6E 2D 80 0D 01 02 00 00 00 00 14 [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 6E 2D 00 90 00 0F [16:16:53]RAPDU: 90 00 [16:16:53]wFMCommunicate OK [16:16:53]wFMCommunicate request_size=255 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 02 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 78 8F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 [16:16:53]Write to MH i2c: E2 02 01 6F 2D 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 02 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 78 8F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 00 00 FD [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 6F 2D 00 90 00 10 [16:16:53]RAPDU: 90 00 [16:16:53]wFMCommunicate OK [16:16:53]wFMCommunicate request_size=69 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 0D 02 02 40 04 00 B9 FA 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C0 FA 00 00 35 04 06 00 F9 B4 E8 57 66 D0 [16:16:53]Write to MH i2c: E2 48 00 70 2D 80 0D 02 02 40 00 04 00 B9 FA 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C0 FA 00 00 35 04 06 00 F9 B4 E8 57 66 D0 00 00 20 [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 70 2D 00 90 00 11 [16:16:53]RAPDU: 90 00 [16:16:53]wFMCommunicate OK [16:16:53]wFMCommunicate request_size=4 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 0D 03 02 [16:16:53]Write to MH i2c: E2 08 00 71 2D 80 0D 03 02 00 00 00 00 19 [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:54]Read from MH i2c: E2 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 0B 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 0B 00 71 2D 00 5D 29 96 A4 5A 31 C0 BC 90 00 E1 [16:16:54]RAPDU: 5D 29 96 A4 5A 31 C0 BC 90 00 [16:16:54]wFMCommunicate OK [16:16:54]SAM_PROTO_SignData done [16:16:54]FM_MakeSignedData done [16:16:54]CreateOFDProtocolMessage [16:16:54]wFMCommunicate request_size=4 [16:16:54]MH_SAM_APDU [16:16:54]CAPDU: 80 11 00 00 [16:16:54]Write to MH i2c: E2 08 00 72 2D 80 11 00 00 00 00 00 00 19 [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:54]Read from MH i2c: E2 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 17 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 17 00 72 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6B [16:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:16:54]wFMCommunicate OK [16:16:54]CreateOFDProtocolMessage done [16:16:54]OFDSenderStorePacket 64192 [16:16:54]StoreOFDPacket docnum=64192 [16:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4A 01 00 00 DA C0 42 01 B6 F5 5A 03 01 00 03 00 36 01 1E 04 01 00 02 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 78 8F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 B9 FA 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C0 FA 00 00 35 04 06 00 F9 B4 E8 57 66 D0 5D 29 96 A4 5A 31 C0 BC [16:16:54]CheckFolder [16:16:54]dirname=/storage/ofd_packets [16:16:54]CheckFolder done [16:16:54]ProducePacketName [16:16:54]name=ofd_packets/00064192 [16:16:54]NVStorageSaveData ofd_packets/00064192 [16:16:54]File name is /storage/ofd_packets/00064192 [16:16:54]Write 360 bytes [16:16:54]NVStorageSaveData done [16:16:54]OFDSenderStorePacket done [16:16:54]KKMCreateOFDPacket done [16:16:54]NVStorageSaveData kkm_last_timestamp [16:16:54]File name is /storage/kkm_last_timestamp [16:16:54]Write 4 bytes [16:16:54]NVStorageSaveData done [16:16:54]ExternCall_PrintAddStr [16:16:54]wPrintStart [16:16:54]Write to MH i2c: 01 00 00 73 2D A0 [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: 01 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: 01 07 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: 01 07 00 73 2D 00 00 00 00 00 FF 0F B5 [16:16:54]RasterBufferAndPrint [16:16:54]line Счет N : (3)73715 [16:16:54]line ИНН: 02508201610067 [16:16:54]line Контрольно-Кассовый Чек [16:16:54]line ВОЗВРАТ ПРОДАЖИ [16:16:54]line Товар: 2000036220012 [16:16:54]line Кофе Капучино XL(GABB TRADE) [16:16:54]line 1.000 * 125.00 [16:16:54]line = 125.00 [16:16:54]line НДС 12% НСП 1% [16:16:54]line > о реализуемом товаре [16:16:54]line ИТОГО: 125.00 [16:16:54]line НСП 1% : 1.11 [16:16:54]line НДС 12% : 13.27 [16:16:54]line Наличными: 125.00 [16:16:54]line Безнал.: 0.00 [16:16:54]line Место: АЗС № 117 "Партнер Нефть" [16:16:54]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:16:54]line СНО: Общий режим [16:16:54]line Чек 112 05.06.2024 16:16 [16:16:54]line Смена: 375 ФФД: 1.0 [16:16:54]line ЗНМ: 0300000031 [16:16:54]line РНМ: 0000000000092737 [16:16:54]line Версия ККМ: 001 [16:16:54]line ФД осн.: 64185 [16:16:54]line ФМ осн.: 0000000000875074 [16:16:54]line ФМ: 0000000000875074 [16:16:54]line ФД: 64192 [16:16:54]line ФПД: 274555387471568 [16:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T161656&type=2&operation_type=1&fn_number=0000000000875074&fd_number=64192&fm=274555387471568&tin=02508201610067®Number=0000000000092737&sum=12500 [16:16:54]line 64185 [16:16:54]OFD Sender: Processing packet 64192 [packets to send 14, broken 13] [16:16:54]ProducePacketName [16:16:54]name=ofd_packets/00064192 [16:16:54]OFD Sender: To server: pG, [16:16:54]CommunicateWithHost lk.salyk.kg:30040 [16:16:54]ConnectInit lk.salyk.kg [16:16:54]written 0, free lines is 4095 [16:16:54]Connected sock=10 [16:16:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4A 01 00 00 DA C0 42 01 B6 F5 5A 03 01 00 03 00 36 01 1E 04 01 00 02 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 78 8F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 B9 FA 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C0 FA 00 00 35 04 06 00 F9 B4 E8 57 66 D0 5D 29 96 A4 5A 31 C0 BC [16:16:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 FA 21 47 00 35 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C0 FA 00 00 F4 03 04 00 83 3B 60 66 B6 04 01 00 00 50 E2 98 0F 25 A7 A0 07 [16:16:54]CommunicateWithHost err = 0 [16:16:54]CheckOFDResponse [16:16:54]1017 (14) - 77093643461234 [16:16:54]1041 (16) - 0000000000875074 [16:16:54]1040 (4) - 64192 [16:16:54]1012 (4) - 05.06.2024 10:18 [16:16:54]1206 (1) - 0 [16:16:54]OFD Sender: Remove packet 64192 [16:16:54]ProducePacketName [16:16:54]name=ofd_packets/00064192 [16:16:54]NVStorageDeleteData [16:16:54]Write to MH i2c: 01 00 00 9E 2D CB [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: 01 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: 01 07 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: 01 07 00 9E 2D 00 00 00 00 00 D3 0C B1 [16:16:54]RasterBufferAndPrint [16:16:54]line [16:16:54]line [16:16:54]line [16:16:54]line [16:16:54]line [16:16:54]written 0, free lines is 3289 [16:16:54]MH_Cut [16:16:54]Write to MH i2c: D1 01 00 A5 2D 01 A4 [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: D1 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: D1 01 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: D1 01 00 A5 2D 00 A3 [16:16:54]Write to MH i2c: 01 00 00 A6 2D D3 [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:55]OFD Sender: No OFD packet to send [16:16:55]*** Cut start [16:16:55]*** Partial cut [16:16:55]*** CUTSNS_PIN = 1 [16:16:55]*** CUTSNS_PIN = 0 [16:16:55]*** Brake cut motor [16:16:56]Read from MH i2c: 01 [16:16:56]MH_I2C_Read... [16:16:56]*** Stop cut motor [16:16:56]*** Cut end [16:16:56]Read from MH i2c: 01 07 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: 01 07 00 A6 2D 00 00 00 00 00 FF 0F E8 [16:16:56]process_action close_receipt done [16:16:56]requested_data is exist [16:16:56]produce_requested_data [16:16:56]requested_item fm.sn is exist - process it [16:16:56]wFMCommunicate request_size=4 [16:16:56]MH_SAM_APDU [16:16:56]CAPDU: 80 11 00 00 [16:16:56]Write to MH i2c: E2 08 00 A7 2D 80 11 00 00 00 00 00 00 4E [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:56]Read from MH i2c: E2 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 17 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 17 00 A7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A0 [16:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:16:56]wFMCommunicate OK [16:16:56]requested_item fd.num is exist - process it [16:16:56]SAM_PROTO_GetFieldsCounters [16:16:56]wFMCommunicate request_size=4 [16:16:56]MH_SAM_APDU [16:16:56]CAPDU: 80 13 00 00 [16:16:56]Write to MH i2c: E2 08 00 A8 2D 80 13 00 00 00 00 00 00 51 [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:56]Read from MH i2c: E2 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 62 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 62 00 A8 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C0 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [16:16:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C0 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:56]wFMCommunicate OK [16:16:56]SAM_PROTO_GetFieldsCounters done [16:16:56]requested_item shift.num is exist - process it [16:16:56]requested_item shift.opened is exist - process it [16:16:56]req_shift_opened [16:16:56]FM_GetShiftState [16:16:56]SAM_PROTO_GetShiftState [16:16:56]wFMCommunicate request_size=4 [16:16:56]MH_SAM_APDU [16:16:56]CAPDU: 80 13 01 00 [16:16:56]Write to MH i2c: E2 08 00 A9 2D 80 13 01 00 00 00 00 00 53 [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:56]Read from MH i2c: E2 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 0E 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 0E 00 A9 2D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 94 [16:16:56]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:16:56]wFMCommunicate OK [16:16:56]SAM_PROTO_GetShiftState done [16:16:56]FM_GetShiftState done [16:16:56]req_shift_opened done [16:16:56]requested_item shift.open_date is exist - process it [16:16:56]req_shift_open_date [16:16:56]req_shift_open_date done [16:16:56]produce_requested_data done [16:16:56]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64192,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:16:56]process_action_free close_receipt [16:16:56]json_value_free [16:16:56]json_value_free done [16:16:56]process_json_proto returns [16:16:56]Send response to host [16:16:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64192,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:16:56]free response buf [16:16:56]execute_script done [16:16:56]execute_script returns [16:16:56]free content buf [16:16:56]Sock 8.Close socket [16:16:56]Sock 8.Thread stoped [16:16:59]accept exits with 9 [16:16:59]New connection [16:16:59]New thread 3067276644 created [16:16:59]Thread 3067133284 joined [16:16:59]Waiting for new connection... [16:16:59] Sock 9.Parse request [16:16:59]Sock 9.Check first char [16:16:59]Sock 9.First char is OK [16:16:59]request: POST /json_proto HTTP/1.0 [16:16:59]Method: POST [16:16:59]URL: /json_proto [16:16:59]Method is POST - this is cgi request [16:16:59]url: /json_proto [16:16:59]query_string will be loaded in cgi processing [16:16:59]execute_cgi json_proto POST (null) [16:16:59]execute_cgi path=json_proto method=POST [16:16:59]POST find Content-Length [16:16:59]Host: 172.17.60.69:8080 [16:16:59]Content-Length: 806 [16:16:59]Content-Type: application/json [16:16:59] [16:16:59]POST finish read [16:16:59]Found Content-Length = 806 [16:16:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73722", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:59]execute_script... [16:16: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)73722", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:59]POST & json_proto [16:16:59]process_json_proto [16:16:59]json parsed OK: [16:16:59]protocol is kg_v1.0 [16:16:59]action value=close_receipt [16:16:59]process_action close_receipt [16:16:59]cmd_close_receipt [16:16:59]MH_GetDate [16:16:59]Write to MH i2c: F0 00 00 AA 2D C6 [16:16:59]Write i2c OK [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: F0 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: F0 09 00 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: F0 09 00 AA 2D 00 7F 8F 60 66 D2 83 5F 66 BD [16:16:59]GetLastDocTimeStamp 1717604216 [16:16:59]current date 1717604223 [16:16:59]FM_GetShiftState [16:16:59]SAM_PROTO_GetShiftState [16:16:59]wFMCommunicate request_size=4 [16:16:59]MH_SAM_APDU [16:16:59]CAPDU: 80 13 01 00 [16:16:59]Write to MH i2c: E2 08 00 AB 2D 80 13 01 00 00 00 00 00 55 [16:16:59]Write i2c OK [16:16:59]MH_I2C_Read... [16:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:59]Read from MH i2c: E2 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: E2 0E 00 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: E2 0E 00 AB 2D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 96 [16:16:59]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:16:59]wFMCommunicate OK [16:16:59]SAM_PROTO_GetShiftState done [16:16:59]FM_GetShiftState done [16:16:59]opened in 1717545925 [16:16:59]opened+sec_in_day 1717632325 [16:16:59]quantity*price = 12500 [16:16:59]sum+1 = 12501 [16:16:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 113 05.06.2024 16:17 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64193 ФПД: 107469435462427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T161703&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64193&fm=107469435462427&tin=02508201610067®Number=0000000000092737&sum=12500 0 [16:17:00]StoreToDocumentArchive [16:17:00]shift 375 fd 64193 [16:17:00]save to /storage/0375/doc_00064193 [16:17:00]save last doc name /storage/0375/doc_00064193 to /storage/kkm_last_doc_name [16:17:00]save OK [16:17:00]Clear old archive folders... [16:17:00]ProcessDocumentItem done err = 0, tmpTLVsize=282 [16:17:00]tlvbuf is 01090810 [16:17:00]SAM_PROTO_ClearQueue [16:17:00]wFMCommunicate request_size=4 [16:17:00]MH_SAM_APDU [16:17:00]CAPDU: 80 09 00 00 [16:17:00]Write to MH i2c: E2 08 00 B8 2D 80 09 00 00 00 00 00 00 57 [16:17:00]Write i2c OK [16:17:00]MH_I2C_Read... [16:17:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:00]Read from MH i2c: E2 [16:17:00]MH_I2C_Read... [16:17:00]Read from MH i2c: E2 03 00 [16:17:00]MH_I2C_Read... [16:17:00]Read from MH i2c: E2 03 00 B8 2D 00 90 00 59 [16:17:00]RAPDU: 90 00 [16:17:00]wFMCommunicate OK [16:17:00]SAM_PROTO_ClearQueue done [16:17:00]KKMCreateOFDPacket [16:17:00]OFDProtocolAddRootSTLVToBuf [16:17:00]FM_MakeSignedData [16:17:00]FM_MakeSignedData [16:17:00]SAM_PROTO_SignData [16:17:00]wFMCommunicate request_size=4 [16:17:00]MH_SAM_APDU [16:17:00]CAPDU: 80 0D 01 02 [16:17:00]Write to MH i2c: E2 08 00 B9 2D 80 0D 01 02 00 00 00 00 5F [16:17:00]Write i2c OK [16:17:00]MH_I2C_Read... [16:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:00]Read from MH i2c: E2 [16:17:00]MH_I2C_Read... [16:17:00]Read from MH i2c: E2 03 00 [16:17:00]MH_I2C_Read... [16:17:00]Read from MH i2c: E2 03 00 B9 2D 00 90 00 5A [16:17:00]RAPDU: 90 00 [16:17:00]wFMCommunicate OK [16:17:00]wFMCommunicate request_size=255 [16:17:00]MH_SAM_APDU [16:17:00]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 7F 8F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [16:17:00]Write to MH i2c: E2 02 01 BA 2D 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 7F 8F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 1D [16:17:00]Write i2c OK [16:17:00]MH_I2C_Read... [16:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:00]Read from MH i2c: E2 [16:17:00]MH_I2C_Read... [16:17:00]Read from MH i2c: E2 03 00 [16:17:00]MH_I2C_Read... [16:17:00]Read from MH i2c: E2 03 00 BA 2D 00 90 00 5B [16:17:00]RAPDU: 90 00 [16:17:00]wFMCommunicate OK [16:17:00]wFMCommunicate request_size=41 [16:17:00]MH_SAM_APDU [16:17:00]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C1 FA 00 00 35 04 06 00 61 BE 2D 86 63 1B [16:17:00]Write to MH i2c: E2 2C 00 BB 2D 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C1 FA 00 00 35 04 06 00 61 BE 2D 86 63 1B 00 00 3B [16:17:00]Write i2c OK [16:17:00]MH_I2C_Read... [16:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:01]Read from MH i2c: E2 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: E2 03 00 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: E2 03 00 BB 2D 00 90 00 5C [16:17:01]RAPDU: 90 00 [16:17:01]wFMCommunicate OK [16:17:01]wFMCommunicate request_size=4 [16:17:01]MH_SAM_APDU [16:17:01]CAPDU: 80 0D 03 02 [16:17:01]Write to MH i2c: E2 08 00 BC 2D 80 0D 03 02 00 00 00 00 64 [16:17:01]Write i2c OK [16:17:01]MH_I2C_Read... [16:17:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:01]Read from MH i2c: E2 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: E2 0B 00 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: E2 0B 00 BC 2D 00 CA C7 A8 C3 F1 76 C1 78 90 00 01 [16:17:01]RAPDU: CA C7 A8 C3 F1 76 C1 78 90 00 [16:17:01]wFMCommunicate OK [16:17:01]SAM_PROTO_SignData done [16:17:01]FM_MakeSignedData done [16:17:01]CreateOFDProtocolMessage [16:17:01]wFMCommunicate request_size=4 [16:17:01]MH_SAM_APDU [16:17:01]CAPDU: 80 11 00 00 [16:17:01]Write to MH i2c: E2 08 00 BD 2D 80 11 00 00 00 00 00 00 64 [16:17:01]Write i2c OK [16:17:01]MH_I2C_Read... [16:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:01]Read from MH i2c: E2 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: E2 17 00 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: E2 17 00 BD 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B6 [16:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:17:01]wFMCommunicate OK [16:17:01]CreateOFDProtocolMessage done [16:17:01]OFDSenderStorePacket 64193 [16:17:01]StoreOFDPacket docnum=64193 [16:17:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 A9 22 26 01 C4 50 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 7F 8F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C1 FA 00 00 35 04 06 00 61 BE 2D 86 63 1B CA C7 A8 C3 F1 76 C1 78 [16:17:01]CheckFolder [16:17:01]dirname=/storage/ofd_packets [16:17:01]CheckFolder done [16:17:01]ProducePacketName [16:17:01]name=ofd_packets/00064193 [16:17:01]NVStorageSaveData ofd_packets/00064193 [16:17:01]File name is /storage/ofd_packets/00064193 [16:17:01]Write 332 bytes [16:17:01]NVStorageSaveData done [16:17:01]OFDSenderStorePacket done [16:17:01]KKMCreateOFDPacket done [16:17:01]NVStorageSaveData kkm_last_timestamp [16:17:01]File name is /storage/kkm_last_timestamp [16:17:01]Write 4 bytes [16:17:01]NVStorageSaveData done [16:17:01]ExternCall_PrintAddStr [16:17:01]wPrintStart [16:17:01]Write to MH i2c: 01 00 00 BE 2D EB [16:17:01]OFD Sender: Processing packet 64193 [packets to send 14, broken 13] [16:17:01]ProducePacketName [16:17:01]name=ofd_packets/00064193 [16:17:01]OFD Sender: To server: pG, [16:17:01]CommunicateWithHost lk.salyk.kg:30040 [16:17:01]ConnectInit lk.salyk.kg [16:17:01]Write i2c OK [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: 01 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: 01 07 00 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: 01 07 00 BE 2D 00 00 00 00 00 FF 0F 00 [16:17:01]RasterBufferAndPrint [16:17:01]line Счет N : (3)73722 [16:17:01]line ИНН: 02508201610067 [16:17:01]line Контрольно-Кассовый Чек [16:17:01]line ПРОДАЖА [16:17:01]line Товар: 2000036220012 [16:17:01]line Кофе Капучино XL(GABB TRADE) [16:17:01]line 1.000 * 125.00 [16:17:01]line = 125.00 [16:17:01]line НДС 12% НСП 1% [16:17:01]line > о реализуемом товаре [16:17:01]line ИТОГО: 125.00 [16:17:01]line НСП 1% : 1.11 [16:17:01]line НДС 12% : 13.27 [16:17:01]line Наличными: 0.00 [16:17:01]line Безнал.: 125.00 [16:17:01]line Место: АЗС № 117 "Партнер Нефть" [16:17:01]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:17:01]line СНО: Общий режим [16:17:01]line Чек 113 05.06.2024 16:17 [16:17:01]line Смена: 375 ФФД: 1.0 [16:17:01]line ЗНМ: 0300000031 [16:17:01]line РНМ: 0000000000092737 [16:17:01]line Версия ККМ: 001 [16:17:01]line Платежная система: O! деньги [16:17:01]line ФМ: 0000000000875074 [16:17:01]line ФД: 64193 [16:17:01]line ФПД: 107469435462427 [16:17:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T161703&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64193&fm=107469435462427&tin=02508201610067®Number=0000000000092737&sum=12500 [16:17:01]line 0 [16:17:01]written 0, free lines is 4095 [16:17:01]Connected sock=10 [16:17:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 A9 22 26 01 C4 50 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 7F 8F 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C1 FA 00 00 35 04 06 00 61 BE 2D 86 63 1B CA C7 A8 C3 F1 76 C1 78 [16:17:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 6F 6C 47 00 FC 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C1 FA 00 00 F4 03 04 00 8A 3B 60 66 B6 04 01 00 00 F9 2F DC 95 B6 1B 3D 6E [16:17:01]CommunicateWithHost err = 0 [16:17:01]CheckOFDResponse [16:17:01]1017 (14) - 77093643461234 [16:17:01]1041 (16) - 0000000000875074 [16:17:01]1040 (4) - 64193 [16:17:01]1012 (4) - 05.06.2024 10:18 [16:17:01]1206 (1) - 0 [16:17:01]OFD Sender: Remove packet 64193 [16:17:01]ProducePacketName [16:17:01]name=ofd_packets/00064193 [16:17:01]NVStorageDeleteData [16:17:01]Write to MH i2c: 01 00 00 E9 2D 16 [16:17:01]Write i2c OK [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: 01 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: 01 07 00 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: 01 07 00 E9 2D 00 00 00 00 00 D5 0C FE [16:17:01]RasterBufferAndPrint [16:17:01]line [16:17:01]line [16:17:01]line [16:17:01]line [16:17:01]line [16:17:01]written 0, free lines is 3301 [16:17:01]MH_Cut [16:17:01]Write to MH i2c: D1 01 00 F0 2D 01 EF [16:17:01]Write i2c OK [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: D1 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: D1 01 00 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: D1 01 00 F0 2D 00 EE [16:17:01]Write to MH i2c: 01 00 00 F1 2D 1E [16:17:01]Write i2c OK [16:17:01]MH_I2C_Read... [16:17:01]OFD Sender: No OFD packet to send [16:17:02]*** Cut start [16:17:02]*** Partial cut [16:17:02]*** CUTSNS_PIN = 1 [16:17:02]*** CUTSNS_PIN = 0 [16:17:02]*** Brake cut motor [16:17:03]Read from MH i2c: 01 [16:17:03]MH_I2C_Read... [16:17:03]*** Stop cut motor [16:17:03]*** Cut end [16:17:03]Read from MH i2c: 01 07 00 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: 01 07 00 F1 2D 00 00 00 00 00 FF 0F 33 [16:17:03]process_action close_receipt done [16:17:03]requested_data is exist [16:17:03]produce_requested_data [16:17:03]requested_item fm.sn is exist - process it [16:17:03]wFMCommunicate request_size=4 [16:17:03]MH_SAM_APDU [16:17:03]CAPDU: 80 11 00 00 [16:17:03]Write to MH i2c: E2 08 00 F2 2D 80 11 00 00 00 00 00 00 99 [16:17:03]Write i2c OK [16:17:03]MH_I2C_Read... [16:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:03]Read from MH i2c: E2 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: E2 17 00 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: E2 17 00 F2 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EB [16:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:17:03]wFMCommunicate OK [16:17:03]requested_item fd.num is exist - process it [16:17:03]SAM_PROTO_GetFieldsCounters [16:17:03]wFMCommunicate request_size=4 [16:17:03]MH_SAM_APDU [16:17:03]CAPDU: 80 13 00 00 [16:17:03]Write to MH i2c: E2 08 00 F3 2D 80 13 00 00 00 00 00 00 9C [16:17:03]Write i2c OK [16:17:03]MH_I2C_Read... [16:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:03]Read from MH i2c: E2 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: E2 62 00 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: E2 62 00 F3 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C1 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [16:17:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C1 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:03]wFMCommunicate OK [16:17:03]SAM_PROTO_GetFieldsCounters done [16:17:03]requested_item shift.num is exist - process it [16:17:03]requested_item shift.opened is exist - process it [16:17:03]req_shift_opened [16:17:03]FM_GetShiftState [16:17:03]SAM_PROTO_GetShiftState [16:17:03]wFMCommunicate request_size=4 [16:17:03]MH_SAM_APDU [16:17:03]CAPDU: 80 13 01 00 [16:17:03]Write to MH i2c: E2 08 00 F4 2D 80 13 01 00 00 00 00 00 9E [16:17:03]Write i2c OK [16:17:03]MH_I2C_Read... [16:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:03]Read from MH i2c: E2 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: E2 0E 00 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: E2 0E 00 F4 2D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 DF [16:17:03]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:17:03]wFMCommunicate OK [16:17:03]SAM_PROTO_GetShiftState done [16:17:03]FM_GetShiftState done [16:17:03]req_shift_opened done [16:17:03]requested_item shift.open_date is exist - process it [16:17:03]req_shift_open_date [16:17:03]req_shift_open_date done [16:17:03]produce_requested_data done [16:17:03]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64193,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:17:03]process_action_free close_receipt [16:17:03]json_value_free [16:17:03]json_value_free done [16:17:03]process_json_proto returns [16:17:03]Send response to host [16:17:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64193,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:17:03]free response buf [16:17:03]execute_script done [16:17:03]execute_script returns [16:17:03]free content buf [16:17:03]Sock 9.Close socket [16:17:03]Sock 9.Thread stoped [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:53]accept exits with 8 [16:33:53]New connection [16:33:53]New thread 3067133284 created [16:33:53]Thread 3067276644 joined [16:33:53]Waiting for new connection... [16:33:53] Sock 8.Parse request [16:33:53]Sock 8.Check first char [16:33:53]Sock 8.First char is OK [16:33:53]request: POST /json_proto HTTP/1.0 [16:33:53]Method: POST [16:33:53]URL: /json_proto [16:33:53]Method is POST - this is cgi request [16:33:53]url: /json_proto [16:33:53]query_string will be loaded in cgi processing [16:33:53]execute_cgi json_proto POST (null) [16:33:53]execute_cgi path=json_proto method=POST [16:33:53]POST find Content-Length [16:33:53]Host: 172.17.60.69:8080 [16:33:53]Content-Length: 998 [16:33:53]Content-Type: application/json [16:33:53] [16:33:53]POST finish read [16:33:53]Found Content-Length = 998 [16:33:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73723", "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 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:53]execute_script... [16:33: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)73723", "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 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:53]POST & json_proto [16:33:53]process_json_proto [16:33:53]json parsed OK: [16:33:53]protocol is kg_v1.0 [16:33:53]action value=close_receipt [16:33:53]process_action close_receipt [16:33:53]cmd_close_receipt [16:33:53]MH_GetDate [16:33:53]Write to MH i2c: F0 00 00 F5 2D 11 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: F0 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: F0 09 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: F0 09 00 F5 2D 00 76 93 60 66 D2 83 5F 66 03 [16:33:53]GetLastDocTimeStamp 1717604223 [16:33:53]current date 1717605238 [16:33:53]FM_GetShiftState [16:33:53]SAM_PROTO_GetShiftState [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 13 01 00 [16:33:53]Write to MH i2c: E2 08 00 F6 2D 80 13 01 00 00 00 00 00 A0 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 0E 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 0E 00 F6 2D 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 E1 [16:33:53]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:33:53]wFMCommunicate OK [16:33:53]SAM_PROTO_GetShiftState done [16:33:53]FM_GetShiftState done [16:33:53]opened in 1717545925 [16:33:53]opened+sec_in_day 1717632325 [16:33:53]quantity*price = 6500 [16:33:53]sum+1 = 6501 [16:33:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189394 Холодный чай Fuse ягода 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.23 НДС 12% : 14.86 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 114 05.06.2024 16:33 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64194 ФПД: 272289376052743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T163358&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64194&fm=272289376052743&tin=02508201610067®Number=0000000000092737&sum=14000 0 [16:33:54]StoreToDocumentArchive [16:33:54]shift 375 fd 64194 [16:33:54]save to /storage/0375/doc_00064194 [16:33:54]save last doc name /storage/0375/doc_00064194 to /storage/kkm_last_doc_name [16:33:54]save OK [16:33:54]Clear old archive folders... [16:33:54]ProcessDocumentItem done err = 0, tmpTLVsize=421 [16:33:54]tlvbuf is 00FCB9C0 [16:33:54]SAM_PROTO_ClearQueue [16:33:54]wFMCommunicate request_size=4 [16:33:54]MH_SAM_APDU [16:33:54]CAPDU: 80 09 00 00 [16:33:54]Write to MH i2c: E2 08 00 03 2E 80 09 00 00 00 00 00 00 A3 [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:54]Read from MH i2c: E2 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 03 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 03 00 03 2E 00 90 00 A5 [16:33:54]RAPDU: 90 00 [16:33:54]wFMCommunicate OK [16:33:54]SAM_PROTO_ClearQueue done [16:33:54]KKMCreateOFDPacket [16:33:54]OFDProtocolAddRootSTLVToBuf [16:33:54]FM_MakeSignedData [16:33:54]FM_MakeSignedData [16:33:54]SAM_PROTO_SignData [16:33:54]wFMCommunicate request_size=4 [16:33:54]MH_SAM_APDU [16:33:54]CAPDU: 80 0D 01 02 [16:33:54]Write to MH i2c: E2 08 00 04 2E 80 0D 01 02 00 00 00 00 AB [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:54]Read from MH i2c: E2 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 03 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 03 00 04 2E 00 90 00 A6 [16:33:54]RAPDU: 90 00 [16:33:54]wFMCommunicate OK [16:33:54]wFMCommunicate request_size=255 [16:33:54]MH_SAM_APDU [16:33:54]CAPDU: 80 0D 02 02 FA 03 00 A5 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 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 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 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 [16:33:54]Write to MH i2c: E2 02 01 05 2E 80 0D 02 02 FA 00 03 00 A5 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 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 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 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 00 00 62 [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:55]Read from MH i2c: E2 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 03 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 03 00 05 2E 00 90 00 A7 [16:33:55]RAPDU: 90 00 [16:33:55]wFMCommunicate OK [16:33:55]wFMCommunicate request_size=180 [16:33:55]MH_SAM_APDU [16:33:55]CAPDU: 80 0D 02 02 AF 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 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 72 00 00 00 F4 03 04 00 76 93 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C2 FA 00 00 35 04 06 00 F7 A5 4F 89 26 07 [16:33:55]Write to MH i2c: E2 B7 00 06 2E 80 0D 02 02 AF 00 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 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 72 00 00 00 F4 03 04 00 76 93 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C2 FA 00 00 35 04 06 00 F7 A5 4F 89 26 07 00 00 3D [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:55]Read from MH i2c: E2 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 03 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 03 00 06 2E 00 90 00 A8 [16:33:55]RAPDU: 90 00 [16:33:55]wFMCommunicate OK [16:33:55]wFMCommunicate request_size=4 [16:33:55]MH_SAM_APDU [16:33:55]CAPDU: 80 0D 03 02 [16:33:55]Write to MH i2c: E2 08 00 07 2E 80 0D 03 02 00 00 00 00 B0 [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:55]Read from MH i2c: E2 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 0B 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 0B 00 07 2E 00 C4 8A CC 4E 46 A7 15 BF 90 00 DA [16:33:55]RAPDU: C4 8A CC 4E 46 A7 15 BF 90 00 [16:33:55]wFMCommunicate OK [16:33:55]SAM_PROTO_SignData done [16:33:55]FM_MakeSignedData done [16:33:55]CreateOFDProtocolMessage [16:33:55]wFMCommunicate request_size=4 [16:33:55]MH_SAM_APDU [16:33:55]CAPDU: 80 11 00 00 [16:33:55]Write to MH i2c: E2 08 00 08 2E 80 11 00 00 00 00 00 00 B0 [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:55]Read from MH i2c: E2 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 17 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 17 00 08 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 02 [16:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:33:55]wFMCommunicate OK [16:33:55]CreateOFDProtocolMessage done [16:33:55]OFDSenderStorePacket 64194 [16:33:55]StoreOFDPacket docnum=64194 [16:33:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 B9 01 00 00 28 5D B1 01 39 14 5A 03 01 00 03 00 A5 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 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 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 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 72 00 00 00 F4 03 04 00 76 93 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C2 FA 00 00 35 04 06 00 F7 A5 4F 89 26 07 C4 8A CC 4E 46 A7 15 BF [16:33:55]CheckFolder [16:33:55]dirname=/storage/ofd_packets [16:33:55]CheckFolder done [16:33:55]ProducePacketName [16:33:55]name=ofd_packets/00064194 [16:33:55]NVStorageSaveData ofd_packets/00064194 [16:33:55]File name is /storage/ofd_packets/00064194 [16:33:55]Write 471 bytes [16:33:55]NVStorageSaveData done [16:33:55]OFDSenderStorePacket done [16:33:55]KKMCreateOFDPacket done [16:33:55]NVStorageSaveData kkm_last_timestamp [16:33:55]File name is /storage/kkm_last_timestamp [16:33:55]Write 4 bytes [16:33:55]NVStorageSaveData done [16:33:55]ExternCall_PrintAddStr [16:33:55]wPrintStart [16:33:55]Write to MH i2c: 01 00 00 09 2E 37 [16:33:55]OFD Sender: Processing packet 64194 [packets to send 14, broken 13] [16:33:55]ProducePacketName [16:33:55]name=ofd_packets/00064194 [16:33:55]OFD Sender: To server: pG, [16:33:55]CommunicateWithHost lk.salyk.kg:30040 [16:33:55]ConnectInit lk.salyk.kg [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: 01 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: 01 07 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: 01 07 00 09 2E 00 00 00 00 00 FF 0F 4C [16:33:55]RasterBufferAndPrint [16:33:55]line Счет N : (3)73723 [16:33:55]line ИНН: 02508201610067 [16:33:55]line Контрольно-Кассовый Чек [16:33:55]line ПРОДАЖА [16:33:55]line Товар: 4870001571023 [16:33:55]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [16:33:55]line 1.000 * 65.00 [16:33:55]line = 65.00 [16:33:55]line НДС 12% НСП 1% [16:33:55]line > о реализуемом товаре [16:33:55]line Товар: 5449000189394 [16:33:55]line Холодный чай Fuse ягода 0,5л [16:33:55]line 1.000 * 75.00 [16:33:55]line = 75.00 [16:33:55]line НДС 12% НСП 1% [16:33:55]line > о реализуемом товаре [16:33:55]line ИТОГО: 140.00 [16:33:55]line НСП 1% : 1.23 [16:33:55]line НДС 12% : 14.86 [16:33:55]line Наличными: 140.00 [16:33:55]line Безнал.: 0.00 [16:33:55]line Место: АЗС № 117 "Партнер Нефть" [16:33:55]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:33:55]line СНО: Общий режим [16:33:55]line Чек 114 05.06.2024 16:33 [16:33:55]line Смена: 375 ФФД: 1.0 [16:33:55]line ЗНМ: 0300000031 [16:33:55]line РНМ: 0000000000092737 [16:33:55]line Версия ККМ: 001 [16:33:55]line ФМ: 0000000000875074 [16:33:55]line ФД: 64194 [16:33:55]line ФПД: 272289376052743 [16:33:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T163358&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64194&fm=272289376052743&tin=02508201610067®Number=0000000000092737&sum=14000 [16:33:55]line 0 [16:33:55]written 0, free lines is 4095 [16:33:55]Connected sock=10 [16:33:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 B9 01 00 00 28 5D B1 01 39 14 5A 03 01 00 03 00 A5 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 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 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 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 72 00 00 00 F4 03 04 00 76 93 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C2 FA 00 00 35 04 06 00 F7 A5 4F 89 26 07 C4 8A CC 4E 46 A7 15 BF [16:33:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 62 E5 47 00 29 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C2 FA 00 00 F4 03 04 00 81 3F 60 66 B6 04 01 00 00 90 D2 8C 24 86 59 A1 1E [16:33:55]CommunicateWithHost err = 0 [16:33:55]CheckOFDResponse [16:33:55]1017 (14) - 77093643461234 [16:33:55]1041 (16) - 0000000000875074 [16:33:55]1040 (4) - 64194 [16:33:55]1012 (4) - 05.06.2024 10:35 [16:33:55]1206 (1) - 0 [16:33:55]OFD Sender: Remove packet 64194 [16:33:55]ProducePacketName [16:33:55]name=ofd_packets/00064194 [16:33:55]NVStorageDeleteData [16:33:56]Write to MH i2c: 01 00 00 38 2E 66 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: 01 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: 01 07 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: 01 07 00 38 2E 00 00 00 00 00 8B 0C 04 [16:33:56]RasterBufferAndPrint [16:33:56]line [16:33:56]line [16:33:56]line [16:33:56]line [16:33:56]line [16:33:56]written 0, free lines is 3218 [16:33:56]MH_Cut [16:33:56]Write to MH i2c: D1 01 00 3F 2E 01 3F [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: D1 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: D1 01 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: D1 01 00 3F 2E 00 3E [16:33:56]Write to MH i2c: 01 00 00 40 2E 6E [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]OFD Sender: No OFD packet to send [16:33:57]*** Cut start [16:33:57]*** Partial cut [16:33:57]*** CUTSNS_PIN = 1 [16:33:57]*** CUTSNS_PIN = 0 [16:33:57]*** Brake cut motor [16:33:57]Read from MH i2c: 01 [16:33:57]MH_I2C_Read... [16:33:57]*** Stop cut motor [16:33:57]*** Cut end [16:33:57]Read from MH i2c: 01 07 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: 01 07 00 40 2E 00 00 00 00 00 FF 0F 83 [16:33:57]process_action close_receipt done [16:33:57]requested_data is exist [16:33:57]produce_requested_data [16:33:57]requested_item fm.sn is exist - process it [16:33:57]wFMCommunicate request_size=4 [16:33:57]MH_SAM_APDU [16:33:57]CAPDU: 80 11 00 00 [16:33:57]Write to MH i2c: E2 08 00 41 2E 80 11 00 00 00 00 00 00 E9 [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:57]Read from MH i2c: E2 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 17 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 17 00 41 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3B [16:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:33:57]wFMCommunicate OK [16:33:57]requested_item fd.num is exist - process it [16:33:57]SAM_PROTO_GetFieldsCounters [16:33:57]wFMCommunicate request_size=4 [16:33:57]MH_SAM_APDU [16:33:57]CAPDU: 80 13 00 00 [16:33:57]Write to MH i2c: E2 08 00 42 2E 80 13 00 00 00 00 00 00 EC [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:57]Read from MH i2c: E2 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 62 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 62 00 42 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C2 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [16:33:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C2 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:57]wFMCommunicate OK [16:33:57]SAM_PROTO_GetFieldsCounters done [16:33:57]requested_item shift.num is exist - process it [16:33:57]requested_item shift.opened is exist - process it [16:33:57]req_shift_opened [16:33:57]FM_GetShiftState [16:33:57]SAM_PROTO_GetShiftState [16:33:57]wFMCommunicate request_size=4 [16:33:57]MH_SAM_APDU [16:33:57]CAPDU: 80 13 01 00 [16:33:57]Write to MH i2c: E2 08 00 43 2E 80 13 01 00 00 00 00 00 EE [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:57]Read from MH i2c: E2 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 0E 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 0E 00 43 2E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 2F [16:33:57]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:33:57]wFMCommunicate OK [16:33:57]SAM_PROTO_GetShiftState done [16:33:57]FM_GetShiftState done [16:33:57]req_shift_opened done [16:33:57]requested_item shift.open_date is exist - process it [16:33:57]req_shift_open_date [16:33:57]req_shift_open_date done [16:33:57]produce_requested_data done [16:33:57]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64194,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:33:57]process_action_free close_receipt [16:33:57]json_value_free [16:33:57]json_value_free done [16:33:57]process_json_proto returns [16:33:57]Send response to host [16:33:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64194,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:33:57]free response buf [16:33:57]execute_script done [16:33:57]execute_script returns [16:33:57]free content buf [16:33:57]Sock 8.Close socket [16:33:57]Sock 8.Thread stoped [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:39]accept exits with 9 [16:34:39]New connection [16:34:39]New thread 3067276644 created [16:34:39]Thread 3067133284 joined [16:34:39]Waiting for new connection... [16:34:39] Sock 9.Parse request [16:34:39]Sock 9.Check first char [16:34:39]Sock 9.First char is OK [16:34:39]request: POST /json_proto HTTP/1.0 [16:34:39]Method: POST [16:34:39]URL: /json_proto [16:34:39]Method is POST - this is cgi request [16:34:39]url: /json_proto [16:34:39]query_string will be loaded in cgi processing [16:34:39]execute_cgi json_proto POST (null) [16:34:39]execute_cgi path=json_proto method=POST [16:34:39]POST find Content-Length [16:34:39]Host: 172.17.60.69:8080 [16:34:39]Content-Length: 674 [16:34:39]Content-Type: application/json [16:34:39] [16:34:39]POST finish read [16:34:39]Found Content-Length = 674 [16:34:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:39]execute_script... [16:34: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)545928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:39]POST & json_proto [16:34:39]process_json_proto [16:34:39]json parsed OK: [16:34:39]protocol is kg_v1.0 [16:34:39]action value=close_receipt [16:34:39]process_action close_receipt [16:34:39]cmd_close_receipt [16:34:39]MH_GetDate [16:34:39]Write to MH i2c: F0 00 00 44 2E 61 [16:34:39]Write i2c OK [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: F0 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: F0 09 00 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: F0 09 00 44 2E 00 A4 93 60 66 D2 83 5F 66 81 [16:34:39]GetLastDocTimeStamp 1717605238 [16:34:39]current date 1717605284 [16:34:39]FM_GetShiftState [16:34:39]SAM_PROTO_GetShiftState [16:34:39]wFMCommunicate request_size=4 [16:34:39]MH_SAM_APDU [16:34:39]CAPDU: 80 13 01 00 [16:34:39]Write to MH i2c: E2 08 00 45 2E 80 13 01 00 00 00 00 00 F0 [16:34:39]Write i2c OK [16:34:39]MH_I2C_Read... [16:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:39]Read from MH i2c: E2 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: E2 0E 00 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: E2 0E 00 45 2E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 31 [16:34:39]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:34:39]wFMCommunicate OK [16:34:39]SAM_PROTO_GetShiftState done [16:34:39]FM_GetShiftState done [16:34:39]opened in 1717545925 [16:34:39]opened+sec_in_day 1717632325 [16:34:39]quantity*price = 40022 [16:34:39]sum+1 = 40023 [16:34:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 115 05.06.2024 16:34 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64195 ФПД: 46483797995811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T163444&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64195&fm=46483797995811&tin=02508201610067®Number=0000000000092737&sum=40000 [16:34:41]StoreToDocumentArchive [16:34:41]shift 375 fd 64195 [16:34:41]save to /storage/0375/doc_00064195 [16:34:41]save last doc name /storage/0375/doc_00064195 to /storage/kkm_last_doc_name [16:34:41]save OK [16:34:41]Clear old archive folders... [16:34:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:34:41]tlvbuf is B6DF7010 [16:34:41]SAM_PROTO_ClearQueue [16:34:41]wFMCommunicate request_size=4 [16:34:41]MH_SAM_APDU [16:34:41]CAPDU: 80 09 00 00 [16:34:41]Write to MH i2c: E2 08 00 52 2E 80 09 00 00 00 00 00 00 F2 [16:34:41]Write i2c OK [16:34:41]MH_I2C_Read... [16:34:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:41]Read from MH i2c: E2 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 52 2E 00 90 00 F4 [16:34:41]RAPDU: 90 00 [16:34:41]wFMCommunicate OK [16:34:41]SAM_PROTO_ClearQueue done [16:34:41]KKMCreateOFDPacket [16:34:41]OFDProtocolAddRootSTLVToBuf [16:34:41]FM_MakeSignedData [16:34:41]FM_MakeSignedData [16:34:41]SAM_PROTO_SignData [16:34:41]wFMCommunicate request_size=4 [16:34:41]MH_SAM_APDU [16:34:41]CAPDU: 80 0D 01 02 [16:34:41]Write to MH i2c: E2 08 00 53 2E 80 0D 01 02 00 00 00 00 FA [16:34:41]Write i2c OK [16:34:41]MH_I2C_Read... [16:34:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:41]Read from MH i2c: E2 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 53 2E 00 90 00 F5 [16:34:41]RAPDU: 90 00 [16:34:41]wFMCommunicate OK [16:34:41]wFMCommunicate request_size=255 [16:34:41]MH_SAM_APDU [16:34:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 A4 93 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C3 FA 00 00 35 04 06 00 2A 46 DA 44 [16:34:41]Write to MH i2c: E2 02 01 54 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 A4 93 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C3 FA 00 00 35 04 06 00 2A 46 DA 44 00 00 60 [16:34:41]Write i2c OK [16:34:41]MH_I2C_Read... [16:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:41]Read from MH i2c: E2 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 54 2E 00 90 00 F6 [16:34:41]RAPDU: 90 00 [16:34:41]wFMCommunicate OK [16:34:41]wFMCommunicate request_size=7 [16:34:41]MH_SAM_APDU [16:34:41]CAPDU: 80 0D 02 02 02 71 23 [16:34:41]Write to MH i2c: E2 0A 00 55 2E 80 0D 02 02 02 00 71 23 00 00 95 [16:34:41]Write i2c OK [16:34:41]MH_I2C_Read... [16:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:41]Read from MH i2c: E2 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 55 2E 00 90 00 F7 [16:34:41]RAPDU: 90 00 [16:34:41]wFMCommunicate OK [16:34:41]wFMCommunicate request_size=4 [16:34:41]MH_SAM_APDU [16:34:41]CAPDU: 80 0D 03 02 [16:34:41]Write to MH i2c: E2 08 00 56 2E 80 0D 03 02 00 00 00 00 FF [16:34:41]Write i2c OK [16:34:41]MH_I2C_Read... [16:34:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:41]OFD Sender: No OFD packet to send [16:34:41]Read from MH i2c: E2 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 0B 00 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 0B 00 56 2E 00 E2 00 85 40 A0 1B 27 C6 90 00 4F [16:34:41]RAPDU: E2 00 85 40 A0 1B 27 C6 90 00 [16:34:41]wFMCommunicate OK [16:34:41]SAM_PROTO_SignData done [16:34:41]FM_MakeSignedData done [16:34:41]CreateOFDProtocolMessage [16:34:41]wFMCommunicate request_size=4 [16:34:41]MH_SAM_APDU [16:34:41]CAPDU: 80 11 00 00 [16:34:41]Write to MH i2c: E2 08 00 57 2E 80 11 00 00 00 00 00 00 FF [16:34:41]Write i2c OK [16:34:41]MH_I2C_Read... [16:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:41]Read from MH i2c: E2 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 17 00 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 17 00 57 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 51 [16:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:34:41]wFMCommunicate OK [16:34:41]CreateOFDProtocolMessage done [16:34:41]OFDSenderStorePacket 64195 [16:34:41]StoreOFDPacket docnum=64195 [16:34:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 69 47 04 01 1F 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 A4 93 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C3 FA 00 00 35 04 06 00 2A 46 DA 44 71 23 E2 00 85 40 A0 1B 27 C6 [16:34:41]CheckFolder [16:34:41]dirname=/storage/ofd_packets [16:34:41]CheckFolder done [16:34:41]ProducePacketName [16:34:41]name=ofd_packets/00064195 [16:34:41]NVStorageSaveData ofd_packets/00064195 [16:34:41]File name is /storage/ofd_packets/00064195 [16:34:41]Write 298 bytes [16:34:41]NVStorageSaveData done [16:34:41]OFDSenderStorePacket done [16:34:41]KKMCreateOFDPacket done [16:34:41]NVStorageSaveData kkm_last_timestamp [16:34:41]File name is /storage/kkm_last_timestamp [16:34:41]Write 4 bytes [16:34:41]NVStorageSaveData done [16:34:41]ExternCall_PrintAddStr [16:34:41]wPrintStart [16:34:41]Write to MH i2c: 01 00 00 58 2E 86 [16:34:41]Write i2c OK [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: 01 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: 01 07 00 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: 01 07 00 58 2E 00 00 00 00 00 FF 0F 9B [16:34:41]RasterBufferAndPrint [16:34:41]line Счет N : (1)545928 [16:34:41]line ИНН: 02508201610067 [16:34:41]line Контрольно-Кассовый Чек [16:34:41]line ПРОДАЖА [16:34:41]line ТРК (МРК, ГНК) : 31 [16:34:41]line Товар: 2710194210 [16:34:41]line ДТ-К-5 [16:34:41]line 5.490 * 72.90 [16:34:41]line = 400.22 [16:34:41]line НДС 12% НСП 1% [16:34:41]line > о реализуемом товаре [16:34:41]line ОКРУГЛЕНИЕ: -0.22 [16:34:41]line ИТОГО: 400.00 [16:34:41]line Внесено: 400.00 [16:34:41]line СДАЧА: 0.00 [16:34:41]line НСП 1% : 3.54 [16:34:41]line НДС 12% : 42.50 [16:34:41]line Наличными: 400.00 [16:34:41]line Безнал.: 0.00 [16:34:41]line Место: АЗС № 117 "Партнер Нефть" [16:34:41]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:34:41]line СНО: Общий режим [16:34:41]line Чек 115 05.06.2024 16:34 [16:34:41]line Смена: 375 ФФД: 1.0 [16:34:41]line ЗНМ: 0300000031 [16:34:41]line РНМ: 0000000000092737 [16:34:41]line Версия ККМ: 001 [16:34:41]line ФМ: 0000000000875074 [16:34:41]line ФД: 64195 [16:34:41]line ФПД: 46483797995811 [16:34:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T163444&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64195&fm=46483797995811&tin=02508201610067®Number=0000000000092737&sum=40000 [16:34:41]OFD Sender: Processing packet 64195 [packets to send 14, broken 13] [16:34:41]ProducePacketName [16:34:41]name=ofd_packets/00064195 [16:34:41]OFD Sender: To server: pG, [16:34:41]CommunicateWithHost lk.salyk.kg:30040 [16:34:41]ConnectInit lk.salyk.kg [16:34:41]written 0, free lines is 4095 [16:34:42]Connected sock=11 [16:34:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 69 47 04 01 1F 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 A4 93 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C3 FA 00 00 35 04 06 00 2A 46 DA 44 71 23 E2 00 85 40 A0 1B 27 C6 [16:34:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D9 BF 47 00 A3 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C3 FA 00 00 F4 03 04 00 AF 3F 60 66 B6 04 01 00 00 0A D1 50 EB D6 D0 83 F9 [16:34:42]CommunicateWithHost err = 0 [16:34:42]CheckOFDResponse [16:34:42]1017 (14) - 77093643461234 [16:34:42]1041 (16) - 0000000000875074 [16:34:42]1040 (4) - 64195 [16:34:42]1012 (4) - 05.06.2024 10:36 [16:34:42]1206 (1) - 0 [16:34:42]OFD Sender: Remove packet 64195 [16:34:42]ProducePacketName [16:34:42]name=ofd_packets/00064195 [16:34:42]NVStorageDeleteData [16:34:42]Write to MH i2c: 01 00 00 83 2E B1 [16:34:42]Write i2c OK [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: 01 [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: 01 07 00 [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: 01 07 00 83 2E 00 00 00 00 00 DA 0C 9E [16:34:42]RasterBufferAndPrint [16:34:42]line [16:34:42]line [16:34:42]line [16:34:42]line [16:34:42]line [16:34:42]written 0, free lines is 3297 [16:34:42]MH_Cut [16:34:42]Write to MH i2c: D1 01 00 8A 2E 01 8A [16:34:42]Write i2c OK [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: D1 [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: D1 01 00 [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: D1 01 00 8A 2E 00 89 [16:34:42]Write to MH i2c: 01 00 00 8B 2E B9 [16:34:42]Write i2c OK [16:34:42]MH_I2C_Read... [16:34:42]OFD Sender: No OFD packet to send [16:34:43]*** Cut start [16:34:43]*** Partial cut [16:34:43]*** CUTSNS_PIN = 1 [16:34:43]*** CUTSNS_PIN = 0 [16:34:43]*** Brake cut motor [16:34:43]Read from MH i2c: 01 [16:34:43]MH_I2C_Read... [16:34:43]*** Stop cut motor [16:34:43]*** Cut end [16:34:43]Read from MH i2c: 01 07 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: 01 07 00 8B 2E 00 00 00 00 00 FF 0F CE [16:34:43]process_action close_receipt done [16:34:43]requested_data is exist [16:34:43]produce_requested_data [16:34:43]requested_item fm.sn is exist - process it [16:34:43]wFMCommunicate request_size=4 [16:34:43]MH_SAM_APDU [16:34:43]CAPDU: 80 11 00 00 [16:34:43]Write to MH i2c: E2 08 00 8C 2E 80 11 00 00 00 00 00 00 34 [16:34:43]Write i2c OK [16:34:43]MH_I2C_Read... [16:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:43]Read from MH i2c: E2 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 17 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 17 00 8C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 86 [16:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:34:43]wFMCommunicate OK [16:34:43]requested_item fd.num is exist - process it [16:34:43]SAM_PROTO_GetFieldsCounters [16:34:43]wFMCommunicate request_size=4 [16:34:43]MH_SAM_APDU [16:34:43]CAPDU: 80 13 00 00 [16:34:43]Write to MH i2c: E2 08 00 8D 2E 80 13 00 00 00 00 00 00 37 [16:34:43]Write i2c OK [16:34:43]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 62 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 62 00 8D 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C3 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [16:34:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C3 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:44]wFMCommunicate OK [16:34:44]SAM_PROTO_GetFieldsCounters done [16:34:44]requested_item shift.num is exist - process it [16:34:44]requested_item shift.opened is exist - process it [16:34:44]req_shift_opened [16:34:44]FM_GetShiftState [16:34:44]SAM_PROTO_GetShiftState [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 13 01 00 [16:34:44]Write to MH i2c: E2 08 00 8E 2E 80 13 01 00 00 00 00 00 39 [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 0E 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 0E 00 8E 2E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 7A [16:34:44]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:34:44]wFMCommunicate OK [16:34:44]SAM_PROTO_GetShiftState done [16:34:44]FM_GetShiftState done [16:34:44]req_shift_opened done [16:34:44]requested_item shift.open_date is exist - process it [16:34:44]req_shift_open_date [16:34:44]req_shift_open_date done [16:34:44]produce_requested_data done [16:34:44]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64195,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:34:44]process_action_free close_receipt [16:34:44]json_value_free [16:34:44]json_value_free done [16:34:44]process_json_proto returns [16:34:44]Send response to host [16:34:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64195,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:34:44]free response buf [16:34:44]execute_script done [16:34:44]execute_script returns [16:34:44]free content buf [16:34:44]Sock 9.Close socket [16:34:44]Sock 9.Thread stoped [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:05]accept exits with 8 [16:36:05]New connection [16:36:05]New thread 3067133284 created [16:36:05]Thread 3067276644 joined [16:36:05]Waiting for new connection... [16:36:05] Sock 8.Parse request [16:36:05]Sock 8.Check first char [16:36:05]Sock 8.First char is OK [16:36:05]request: POST /json_proto HTTP/1.0 [16:36:05]Method: POST [16:36:05]URL: /json_proto [16:36:05]Method is POST - this is cgi request [16:36:05]url: /json_proto [16:36:05]query_string will be loaded in cgi processing [16:36:05]execute_cgi json_proto POST (null) [16:36:05]execute_cgi path=json_proto method=POST [16:36:05]POST find Content-Length [16:36:05]Host: 172.17.60.69:8080 [16:36:05]Content-Length: 621 [16:36:05]Content-Type: application/json [16:36:05] [16:36:05]POST finish read [16:36:05]Found Content-Length = 621 [16:36:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73724", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:05]execute_script... [16:36: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)73724", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:05]POST & json_proto [16:36:05]process_json_proto [16:36:05]json parsed OK: [16:36:05]protocol is kg_v1.0 [16:36:05]action value=close_receipt [16:36:05]process_action close_receipt [16:36:05]cmd_close_receipt [16:36:05]MH_GetDate [16:36:05]Write to MH i2c: F0 00 00 8F 2E AC [16:36:05]Write i2c OK [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: F0 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: F0 09 00 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: F0 09 00 8F 2E 00 F9 93 60 66 D2 83 5F 66 21 [16:36:05]GetLastDocTimeStamp 1717605284 [16:36:05]current date 1717605369 [16:36:05]FM_GetShiftState [16:36:05]SAM_PROTO_GetShiftState [16:36:05]wFMCommunicate request_size=4 [16:36:05]MH_SAM_APDU [16:36:05]CAPDU: 80 13 01 00 [16:36:05]Write to MH i2c: E2 08 00 90 2E 80 13 01 00 00 00 00 00 3B [16:36:05]Write i2c OK [16:36:05]MH_I2C_Read... [16:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:05]Read from MH i2c: E2 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: E2 0E 00 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: E2 0E 00 90 2E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 7C [16:36:05]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:36:05]wFMCommunicate OK [16:36:05]SAM_PROTO_GetShiftState done [16:36:05]FM_GetShiftState done [16:36:05]opened in 1717545925 [16:36:05]opened+sec_in_day 1717632325 [16:36:05]quantity*price = 15100 [16:36:05]sum+1 = 15101 [16:36:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 116 05.06.2024 16:36 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64196 ФПД: 48967870541998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T163609&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64196&fm=48967870541998&tin=02508201610067®Number=0000000000092737&sum=15100 0 [16:36:06]StoreToDocumentArchive [16:36:06]shift 375 fd 64196 [16:36:06]save to /storage/0375/doc_00064196 [16:36:06]save last doc name /storage/0375/doc_00064196 to /storage/kkm_last_doc_name [16:36:06]save OK [16:36:06]Clear old archive folders... [16:36:06]ProcessDocumentItem done err = 0, tmpTLVsize=274 [16:36:06]tlvbuf is 00FFB7C0 [16:36:06]SAM_PROTO_ClearQueue [16:36:06]wFMCommunicate request_size=4 [16:36:06]MH_SAM_APDU [16:36:06]CAPDU: 80 09 00 00 [16:36:06]Write to MH i2c: E2 08 00 9D 2E 80 09 00 00 00 00 00 00 3D [16:36:06]Write i2c OK [16:36:06]MH_I2C_Read... [16:36:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:06]Read from MH i2c: E2 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 03 00 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 03 00 9D 2E 00 90 00 3F [16:36:06]RAPDU: 90 00 [16:36:06]wFMCommunicate OK [16:36:06]SAM_PROTO_ClearQueue done [16:36:06]KKMCreateOFDPacket [16:36:06]OFDProtocolAddRootSTLVToBuf [16:36:06]FM_MakeSignedData [16:36:06]FM_MakeSignedData [16:36:06]SAM_PROTO_SignData [16:36:06]wFMCommunicate request_size=4 [16:36:06]MH_SAM_APDU [16:36:06]CAPDU: 80 0D 01 02 [16:36:06]Write to MH i2c: E2 08 00 9E 2E 80 0D 01 02 00 00 00 00 45 [16:36:06]Write i2c OK [16:36:06]MH_I2C_Read... [16:36:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:06]Read from MH i2c: E2 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 03 00 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 03 00 9E 2E 00 90 00 40 [16:36:06]RAPDU: 90 00 [16:36:06]wFMCommunicate OK [16:36:06]wFMCommunicate request_size=255 [16:36:06]MH_SAM_APDU [16:36:06]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 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 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 74 00 00 00 F4 03 04 00 F9 93 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [16:36:06]Write to MH i2c: E2 02 01 9F 2E 80 0D 02 02 FA 00 03 00 12 01 1E 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 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 74 00 00 00 F4 03 04 00 F9 93 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 4F [16:36:06]Write i2c OK [16:36:06]MH_I2C_Read... [16:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:06]Read from MH i2c: E2 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 03 00 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 03 00 9F 2E 00 90 00 41 [16:36:06]RAPDU: 90 00 [16:36:06]wFMCommunicate OK [16:36:06]wFMCommunicate request_size=33 [16:36:06]MH_SAM_APDU [16:36:06]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C4 FA 00 00 35 04 06 00 2C 89 38 87 70 AE [16:36:06]Write to MH i2c: E2 24 00 A0 2E 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C4 FA 00 00 35 04 06 00 2C 89 38 87 70 AE 00 00 26 [16:36:06]Write i2c OK [16:36:06]MH_I2C_Read... [16:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:06]Read from MH i2c: E2 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 03 00 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 03 00 A0 2E 00 90 00 42 [16:36:06]RAPDU: 90 00 [16:36:06]wFMCommunicate OK [16:36:06]wFMCommunicate request_size=4 [16:36:06]MH_SAM_APDU [16:36:06]CAPDU: 80 0D 03 02 [16:36:06]Write to MH i2c: E2 08 00 A1 2E 80 0D 03 02 00 00 00 00 4A [16:36:06]Write i2c OK [16:36:06]MH_I2C_Read... [16:36:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:06]Read from MH i2c: E2 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 0B 00 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 0B 00 A1 2E 00 90 68 97 F5 4E 1F D7 1E 90 00 31 [16:36:06]RAPDU: 90 68 97 F5 4E 1F D7 1E 90 00 [16:36:06]wFMCommunicate OK [16:36:06]SAM_PROTO_SignData done [16:36:06]FM_MakeSignedData done [16:36:06]CreateOFDProtocolMessage [16:36:06]wFMCommunicate request_size=4 [16:36:06]MH_SAM_APDU [16:36:06]CAPDU: 80 11 00 00 [16:36:06]Write to MH i2c: E2 08 00 A2 2E 80 11 00 00 00 00 00 00 4A [16:36:06]Write i2c OK [16:36:06]MH_I2C_Read... [16:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:06]Read from MH i2c: E2 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 17 00 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 17 00 A2 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9C [16:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:36:06]wFMCommunicate OK [16:36:06]CreateOFDProtocolMessage done [16:36:06]OFDSenderStorePacket 64196 [16:36:06]StoreOFDPacket docnum=64196 [16:36:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 1A 8D 1E 01 77 0A 5A 03 01 00 03 00 12 01 1E 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 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 74 00 00 00 F4 03 04 00 F9 93 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C4 FA 00 00 35 04 06 00 2C 89 38 87 70 AE 90 68 97 F5 4E 1F D7 1E [16:36:06]CheckFolder [16:36:06]dirname=/storage/ofd_packets [16:36:06]CheckFolder done [16:36:06]ProducePacketName [16:36:06]name=ofd_packets/00064196 [16:36:06]NVStorageSaveData ofd_packets/00064196 [16:36:06]File name is /storage/ofd_packets/00064196 [16:36:06]Write 324 bytes [16:36:06]NVStorageSaveData done [16:36:06]OFDSenderStorePacket done [16:36:06]KKMCreateOFDPacket done [16:36:06]NVStorageSaveData kkm_last_timestamp [16:36:06]File name is /storage/kkm_last_timestamp [16:36:06]Write 4 bytes [16:36:06]NVStorageSaveData done [16:36:06]ExternCall_PrintAddStr [16:36:06]wPrintStart [16:36:06]Write to MH i2c: 01 00 00 A3 2E D1 [16:36:06]Write i2c OK [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: 01 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: 01 07 00 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: 01 07 00 A3 2E 00 00 00 00 00 FF 0F E6 [16:36:06]RasterBufferAndPrint [16:36:06]line Счет N : (3)73724 [16:36:06]line ИНН: 02508201610067 [16:36:06]line Контрольно-Кассовый Чек [16:36:06]line ПРОДАЖА [16:36:06]line Товар: 48741958 [16:36:06]line Сигареты Parliament Aqua Blue [16:36:06]line 1.000 * 151.00 [16:36:06]line = 151.00 [16:36:06]line НДС 12% НСП 1% [16:36:06]line > о реализуемом товаре [16:36:06]line ИТОГО: 151.00 [16:36:06]line НСП 1% : 1.34 [16:36:06]line НДС 12% : 16.03 [16:36:06]line Наличными: 151.00 [16:36:06]line Безнал.: 0.00 [16:36:06]line Место: АЗС № 117 "Партнер Нефть" [16:36:06]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:36:06]line СНО: Общий режим [16:36:06]line Чек 116 05.06.2024 16:36 [16:36:06]line Смена: 375 ФФД: 1.0 [16:36:06]line ЗНМ: 0300000031 [16:36:06]line РНМ: 0000000000092737 [16:36:06]line Версия ККМ: 001 [16:36:06]line ФМ: 0000000000875074 [16:36:07]line ФД: 64196 [16:36:07]line ФПД: 48967870541998 [16:36:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T163609&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64196&fm=48967870541998&tin=02508201610067®Number=0000000000092737&sum=15100 [16:36:07]line 0 [16:36:07]OFD Sender: Processing packet 64196 [packets to send 14, broken 13] [16:36:07]ProducePacketName [16:36:07]name=ofd_packets/00064196 [16:36:07]OFD Sender: To server: pG, [16:36:07]CommunicateWithHost lk.salyk.kg:30040 [16:36:07]ConnectInit lk.salyk.kg [16:36:07]written 0, free lines is 4095 [16:36:07]Write to MH i2c: 01 00 00 CC 2E FA [16:36:07]Write i2c OK [16:36:07]MH_I2C_Read... [16:36:07]Read from MH i2c: 01 [16:36:07]MH_I2C_Read... [16:36:07]Read from MH i2c: 01 07 00 [16:36:07]MH_I2C_Read... [16:36:07]Read from MH i2c: 01 07 00 CC 2E 00 00 00 00 00 CD 0C DA [16:36:07]RasterBufferAndPrint [16:36:07]line [16:36:07]line [16:36:07]line [16:36:07]line [16:36:07]line [16:36:07]written 0, free lines is 3282 [16:36:07]MH_Cut [16:36:07]Write to MH i2c: D1 01 00 D3 2E 01 D3 [16:36:07]Write i2c OK [16:36:07]MH_I2C_Read... [16:36:07]Read from MH i2c: D1 [16:36:07]MH_I2C_Read... [16:36:07]Read from MH i2c: D1 01 00 [16:36:07]MH_I2C_Read... [16:36:07]Read from MH i2c: D1 01 00 D3 2E 00 D2 [16:36:07]Write to MH i2c: 01 00 00 D4 2E 02 [16:36:07]Write i2c OK [16:36:07]MH_I2C_Read... [16:36:08]Connected sock=10 [16:36:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 1A 8D 1E 01 77 0A 5A 03 01 00 03 00 12 01 1E 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 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 74 00 00 00 F4 03 04 00 F9 93 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C4 FA 00 00 35 04 06 00 2C 89 38 87 70 AE 90 68 97 F5 4E 1F D7 1E [16:36:08]*** Cut start [16:36:08]*** Partial cut [16:36:08]*** CUTSNS_PIN = 1 [16:36:08]*** CUTSNS_PIN = 0 [16:36:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 FA 5A 47 00 2F BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C4 FA 00 00 F4 03 04 00 05 40 60 66 B6 04 01 00 00 22 D3 05 ED 88 0E 61 00 [16:36:08]CommunicateWithHost err = 0 [16:36:08]CheckOFDResponse [16:36:08]1017 (14) - 77093643461234 [16:36:08]1041 (16) - 0000000000875074 [16:36:08]1040 (4) - 64196 [16:36:08]1012 (4) - 05.06.2024 10:37 [16:36:08]1206 (1) - 0 [16:36:08]OFD Sender: Remove packet 64196 [16:36:08]ProducePacketName [16:36:08]name=ofd_packets/00064196 [16:36:08]NVStorageDeleteData [16:36:08]*** Brake cut motor [16:36:09]Read from MH i2c: 01 [16:36:09]MH_I2C_Read... [16:36:09]*** Stop cut motor [16:36:09]*** Cut end [16:36:09]OFD Sender: No OFD packet to send [16:36:09]Read from MH i2c: 01 07 00 [16:36:09]MH_I2C_Read... [16:36:09]Read from MH i2c: 01 07 00 D4 2E 00 00 00 00 00 FF 0F 17 [16:36:09]process_action close_receipt done [16:36:09]requested_data is exist [16:36:09]produce_requested_data [16:36:09]requested_item fm.sn is exist - process it [16:36:09]wFMCommunicate request_size=4 [16:36:09]MH_SAM_APDU [16:36:09]CAPDU: 80 11 00 00 [16:36:09]Write to MH i2c: E2 08 00 D5 2E 80 11 00 00 00 00 00 00 7D [16:36:09]Write i2c OK [16:36:09]MH_I2C_Read... [16:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:09]Read from MH i2c: E2 [16:36:09]MH_I2C_Read... [16:36:09]Read from MH i2c: E2 17 00 [16:36:09]MH_I2C_Read... [16:36:09]Read from MH i2c: E2 17 00 D5 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CF [16:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:36:09]wFMCommunicate OK [16:36:09]requested_item fd.num is exist - process it [16:36:09]SAM_PROTO_GetFieldsCounters [16:36:09]wFMCommunicate request_size=4 [16:36:09]MH_SAM_APDU [16:36:09]CAPDU: 80 13 00 00 [16:36:09]Write to MH i2c: E2 08 00 D6 2E 80 13 00 00 00 00 00 00 80 [16:36:09]Write i2c OK [16:36:09]MH_I2C_Read... [16:36:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:09]Read from MH i2c: E2 [16:36:09]MH_I2C_Read... [16:36:09]Read from MH i2c: E2 62 00 [16:36:09]MH_I2C_Read... [16:36:09]Read from MH i2c: E2 62 00 D6 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C4 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [16:36:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C4 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:09]wFMCommunicate OK [16:36:09]SAM_PROTO_GetFieldsCounters done [16:36:09]requested_item shift.num is exist - process it [16:36:09]requested_item shift.opened is exist - process it [16:36:09]req_shift_opened [16:36:09]FM_GetShiftState [16:36:09]SAM_PROTO_GetShiftState [16:36:09]wFMCommunicate request_size=4 [16:36:09]MH_SAM_APDU [16:36:09]CAPDU: 80 13 01 00 [16:36:09]Write to MH i2c: E2 08 00 D7 2E 80 13 01 00 00 00 00 00 82 [16:36:09]Write i2c OK [16:36:09]MH_I2C_Read... [16:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:09]Read from MH i2c: E2 [16:36:09]MH_I2C_Read... [16:36:09]Read from MH i2c: E2 0E 00 [16:36:09]MH_I2C_Read... [16:36:09]Read from MH i2c: E2 0E 00 D7 2E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 C3 [16:36:09]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:36:09]wFMCommunicate OK [16:36:09]SAM_PROTO_GetShiftState done [16:36:09]FM_GetShiftState done [16:36:09]req_shift_opened done [16:36:09]requested_item shift.open_date is exist - process it [16:36:09]req_shift_open_date [16:36:09]req_shift_open_date done [16:36:09]produce_requested_data done [16:36:09]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64196,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:36:09]process_action_free close_receipt [16:36:09]json_value_free [16:36:09]json_value_free done [16:36:09]process_json_proto returns [16:36:09]Send response to host [16:36:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64196,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:36:09]free response buf [16:36:09]execute_script done [16:36:09]execute_script returns [16:36:09]free content buf [16:36:09]Sock 8.Close socket [16:36:09]Sock 8.Thread stoped [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [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:35]accept exits with 9 [16:37:35]New connection [16:37:35]New thread 3067276644 created [16:37:35]Thread 3067133284 joined [16:37:35]Waiting for new connection... [16:37:35] Sock 9.Parse request [16:37:35]Sock 9.Check first char [16:37:35]Sock 9.First char is OK [16:37:35]request: POST /json_proto HTTP/1.0 [16:37:35]Method: POST [16:37:35]URL: /json_proto [16:37:35]Method is POST - this is cgi request [16:37:35]url: /json_proto [16:37:35]query_string will be loaded in cgi processing [16:37:35]execute_cgi json_proto POST (null) [16:37:35]execute_cgi path=json_proto method=POST [16:37:35]POST find Content-Length [16:37:35]Host: 172.17.60.69:8080 [16:37:35]Content-Length: 907 [16:37:35]Content-Type: application/json [16:37:35] [16:37:35]POST finish read [16:37:35]Found Content-Length = 907 [16:37:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73725", "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" : 502.00, "quantity" : 1.000, "sum" : 502.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" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:35]execute_script... [16:37:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73725", "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" : 502.00, "quantity" : 1.000, "sum" : 502.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" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:35]POST & json_proto [16:37:35]process_json_proto [16:37:35]json parsed OK: [16:37:35]protocol is kg_v1.0 [16:37:35]action value=close_receipt [16:37:35]process_action close_receipt [16:37:35]cmd_close_receipt [16:37:35]MH_GetDate [16:37:35]Write to MH i2c: F0 00 00 D8 2E F5 [16:37:35]Write i2c OK [16:37:35]MH_I2C_Read... [16:37:35]Read from MH i2c: F0 [16:37:35]MH_I2C_Read... [16:37:35]Read from MH i2c: F0 09 00 [16:37:35]MH_I2C_Read... [16:37:35]Read from MH i2c: F0 09 00 D8 2E 00 53 94 60 66 D2 83 5F 66 C5 [16:37:35]GetLastDocTimeStamp 1717605369 [16:37:35]current date 1717605459 [16:37:35]FM_GetShiftState [16:37:35]SAM_PROTO_GetShiftState [16:37:35]wFMCommunicate request_size=4 [16:37:35]MH_SAM_APDU [16:37:35]CAPDU: 80 13 01 00 [16:37:35]Write to MH i2c: E2 08 00 D9 2E 80 13 01 00 00 00 00 00 84 [16:37:35]Write i2c OK [16:37:35]MH_I2C_Read... [16:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:35]Read from MH i2c: E2 [16:37:35]MH_I2C_Read... [16:37:35]Read from MH i2c: E2 0E 00 [16:37:35]MH_I2C_Read... [16:37:35]Read from MH i2c: E2 0E 00 D9 2E 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 C5 [16:37:35]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:37:35]wFMCommunicate OK [16:37:35]SAM_PROTO_GetShiftState done [16:37:35]FM_GetShiftState done [16:37:35]opened in 1717545925 [16:37:35]opened+sec_in_day 1717632325 [16:37:35]quantity*price = 50200 [16:37:35]sum+1 = 50201 [16:37:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 502.00 НСП 1% : 4.44 НДС 12% : 53.31 Наличными: 0.00 Безнал.: 502.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 117 05.06.2024 16:37 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64197 ФПД: 98214957381936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T163739&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64197&fm=98214957381936&tin=02508201610067®Number=0000000000092737&sum=50200 0 [16:37:36]StoreToDocumentArchive [16:37:36]shift 375 fd 64197 [16:37:36]save to /storage/0375/doc_00064197 [16:37:36]save last doc name /storage/0375/doc_00064197 to /storage/kkm_last_doc_name [16:37:36]save OK [16:37:36]Clear old archive folders... [16:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=307 [16:37:36]tlvbuf is 00FAFF50 [16:37:36]SAM_PROTO_ClearQueue [16:37:36]wFMCommunicate request_size=4 [16:37:36]MH_SAM_APDU [16:37:36]CAPDU: 80 09 00 00 [16:37:36]Write to MH i2c: E2 08 00 E6 2E 80 09 00 00 00 00 00 00 86 [16:37:36]Write i2c OK [16:37:36]MH_I2C_Read... [16:37:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:36]Read from MH i2c: E2 [16:37:36]MH_I2C_Read... [16:37:36]Read from MH i2c: E2 03 00 [16:37:36]MH_I2C_Read... [16:37:36]Read from MH i2c: E2 03 00 E6 2E 00 90 00 88 [16:37:36]RAPDU: 90 00 [16:37:36]wFMCommunicate OK [16:37:36]SAM_PROTO_ClearQueue done [16:37:36]KKMCreateOFDPacket [16:37:36]OFDProtocolAddRootSTLVToBuf [16:37:36]FM_MakeSignedData [16:37:36]FM_MakeSignedData [16:37:36]SAM_PROTO_SignData [16:37:36]wFMCommunicate request_size=4 [16:37:36]MH_SAM_APDU [16:37:36]CAPDU: 80 0D 01 02 [16:37:36]Write to MH i2c: E2 08 00 E7 2E 80 0D 01 02 00 00 00 00 8E [16:37:36]Write i2c OK [16:37:36]MH_I2C_Read... [16:37:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:36]Read from MH i2c: E2 [16:37:36]MH_I2C_Read... [16:37:36]Read from MH i2c: E2 03 00 [16:37:36]MH_I2C_Read... [16:37:36]Read from MH i2c: E2 03 00 E7 2E 00 90 00 89 [16:37:36]RAPDU: 90 00 [16:37:36]wFMCommunicate OK [16:37:36]wFMCommunicate request_size=255 [16:37:36]MH_SAM_APDU [16:37:36]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 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 53 94 60 66 0E 04 04 00 77 01 00 00 B9 04 [16:37:36]Write to MH i2c: E2 02 01 E8 2E 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 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 53 94 60 66 0E 04 04 00 77 01 00 00 B9 04 00 00 A8 [16:37:36]Write i2c OK [16:37:36]MH_I2C_Read... [16:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:36]Read from MH i2c: E2 [16:37:36]MH_I2C_Read... [16:37:36]Read from MH i2c: E2 03 00 [16:37:36]MH_I2C_Read... [16:37:36]Read from MH i2c: E2 03 00 E8 2E 00 90 00 8A [16:37:36]RAPDU: 90 00 [16:37:36]wFMCommunicate OK [16:37:36]wFMCommunicate request_size=66 [16:37:36]MH_SAM_APDU [16:37:36]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C5 FA 00 00 35 04 06 00 59 53 73 A5 79 30 [16:37:36]Write to MH i2c: E2 45 00 E9 2E 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C5 FA 00 00 35 04 06 00 59 53 73 A5 79 30 00 00 11 [16:37:36]Write i2c OK [16:37:36]MH_I2C_Read... [16:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:36]Read from MH i2c: E2 [16:37:36]MH_I2C_Read... [16:37:36]Read from MH i2c: E2 03 00 [16:37:36]MH_I2C_Read... [16:37:36]Read from MH i2c: E2 03 00 E9 2E 00 90 00 8B [16:37:36]RAPDU: 90 00 [16:37:36]wFMCommunicate OK [16:37:36]wFMCommunicate request_size=4 [16:37:36]MH_SAM_APDU [16:37:36]CAPDU: 80 0D 03 02 [16:37:36]Write to MH i2c: E2 08 00 EA 2E 80 0D 03 02 00 00 00 00 93 [16:37:36]Write i2c OK [16:37:36]MH_I2C_Read... [16:37:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:36]Read from MH i2c: E2 [16:37:36]MH_I2C_Read... [16:37:36]Read from MH i2c: E2 0B 00 [16:37:36]MH_I2C_Read... [16:37:36]Read from MH i2c: E2 0B 00 EA 2E 00 FD A6 12 D1 14 CA 15 1D 90 00 2A [16:37:36]RAPDU: FD A6 12 D1 14 CA 15 1D 90 00 [16:37:36]wFMCommunicate OK [16:37:36]SAM_PROTO_SignData done [16:37:36]FM_MakeSignedData done [16:37:36]CreateOFDProtocolMessage [16:37:36]wFMCommunicate request_size=4 [16:37:36]MH_SAM_APDU [16:37:36]CAPDU: 80 11 00 00 [16:37:36]Write to MH i2c: E2 08 00 EB 2E 80 11 00 00 00 00 00 00 93 [16:37:36]Write i2c OK [16:37:36]MH_I2C_Read... [16:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:37]Read from MH i2c: E2 [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: E2 17 00 [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: E2 17 00 EB 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E5 [16:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:37:37]wFMCommunicate OK [16:37:37]CreateOFDProtocolMessage done [16:37:37]OFDSenderStorePacket 64197 [16:37:37]StoreOFDPacket docnum=64197 [16:37:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 47 01 00 00 A1 86 3F 01 7C 4C 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 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 53 94 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C5 FA 00 00 35 04 06 00 59 53 73 A5 79 30 FD A6 12 D1 14 CA 15 1D [16:37:37]CheckFolder [16:37:37]dirname=/storage/ofd_packets [16:37:37]CheckFolder done [16:37:37]ProducePacketName [16:37:37]name=ofd_packets/00064197 [16:37:37]NVStorageSaveData ofd_packets/00064197 [16:37:37]File name is /storage/ofd_packets/00064197 [16:37:37]Write 357 bytes [16:37:37]NVStorageSaveData done [16:37:37]OFDSenderStorePacket done [16:37:37]KKMCreateOFDPacket done [16:37:37]NVStorageSaveData kkm_last_timestamp [16:37:37]File name is /storage/kkm_last_timestamp [16:37:37]Write 4 bytes [16:37:37]NVStorageSaveData done [16:37:37]ExternCall_PrintAddStr [16:37:37]wPrintStart [16:37:37]Write to MH i2c: 01 00 00 EC 2E 1A [16:37:37]Write i2c OK [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: 01 [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: 01 07 00 [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: 01 07 00 EC 2E 00 00 00 00 00 FF 0F 2F [16:37:37]RasterBufferAndPrint [16:37:37]line Счет N : (3)73725 [16:37:37]line ИНН: 02508201610067 [16:37:37]line Контрольно-Кассовый Чек [16:37:37]line ПРОДАЖА [16:37:37]line Товар: 2000028410025 [16:37:37]line Очки солнцезащитные в ассортименте [16:37:37]line 1.000 * 502.00 [16:37:37]line = 502.00 [16:37:37]line НДС 12% НСП 1% [16:37:37]line > о реализуемом товаре [16:37:37]line ИТОГО: 502.00 [16:37:37]line НСП 1% : 4.44 [16:37:37]line НДС 12% : 53.31 [16:37:37]line Наличными: 0.00 [16:37:37]line Безнал.: 502.00 [16:37:37]line Место: АЗС № 117 "Партнер Нефть" [16:37:37]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:37:37]line СНО: Общий режим [16:37:37]line Чек 117 05.06.2024 16:37 [16:37:37]line Смена: 375 ФФД: 1.0 [16:37:37]line ЗНМ: 0300000031 [16:37:37]line РНМ: 0000000000092737 [16:37:37]line Версия ККМ: 001 [16:37:37]line Платежная система: O! деньги [16:37:37]line ФМ: 0000000000875074 [16:37:37]line ФД: 64197 [16:37:37]line ФПД: 98214957381936 [16:37:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T163739&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64197&fm=98214957381936&tin=02508201610067®Number=0000000000092737&sum=50200 [16:37:37]line 0 [16:37:37]OFD Sender: Processing packet 64197 [packets to send 14, broken 13] [16:37:37]ProducePacketName [16:37:37]name=ofd_packets/00064197 [16:37:37]OFD Sender: To server: pG, [16:37:37]CommunicateWithHost lk.salyk.kg:30040 [16:37:37]ConnectInit lk.salyk.kg [16:37:37]written 0, free lines is 4095 [16:37:37]Connected sock=10 [16:37:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 47 01 00 00 A1 86 3F 01 7C 4C 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 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 53 94 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C5 FA 00 00 35 04 06 00 59 53 73 A5 79 30 FD A6 12 D1 14 CA 15 1D [16:37:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 DC 73 47 00 A2 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C5 FA 00 00 F4 03 04 00 5E 40 60 66 B6 04 01 00 00 77 0D 77 48 B1 E1 F2 1E [16:37:37]CommunicateWithHost err = 0 [16:37:37]CheckOFDResponse [16:37:37]1017 (14) - 77093643461234 [16:37:37]1041 (16) - 0000000000875074 [16:37:37]1040 (4) - 64197 [16:37:37]1012 (4) - 05.06.2024 10:39 [16:37:37]1206 (1) - 0 [16:37:37]OFD Sender: Remove packet 64197 [16:37:37]ProducePacketName [16:37:37]name=ofd_packets/00064197 [16:37:37]NVStorageDeleteData [16:37:37]Write to MH i2c: 01 00 00 17 2F 46 [16:37:37]Write i2c OK [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: 01 [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: 01 07 00 [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: 01 07 00 17 2F 00 00 00 00 00 BB 0C 14 [16:37:37]RasterBufferAndPrint [16:37:37]line [16:37:37]line [16:37:37]line [16:37:37]line [16:37:37]line [16:37:37]written 0, free lines is 3266 [16:37:37]MH_Cut [16:37:37]Write to MH i2c: D1 01 00 1E 2F 01 1F [16:37:37]Write i2c OK [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: D1 [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: D1 01 00 [16:37:37]MH_I2C_Read... [16:37:37]Read from MH i2c: D1 01 00 1E 2F 00 1E [16:37:37]Write to MH i2c: 01 00 00 1F 2F 4E [16:37:37]Write i2c OK [16:37:37]MH_I2C_Read... [16:37:38]OFD Sender: No OFD packet to send [16:37:38]*** Cut start [16:37:38]*** Partial cut [16:37:38]*** CUTSNS_PIN = 1 [16:37:38]*** CUTSNS_PIN = 0 [16:37:38]*** Brake cut motor [16:37:39]Read from MH i2c: 01 [16:37:39]MH_I2C_Read... [16:37:39]*** Stop cut motor [16:37:39]*** Cut end [16:37:39]Read from MH i2c: 01 07 00 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: 01 07 00 1F 2F 00 00 00 00 00 FF 0F 63 [16:37:39]process_action close_receipt done [16:37:39]requested_data is exist [16:37:39]produce_requested_data [16:37:39]requested_item fm.sn is exist - process it [16:37:39]wFMCommunicate request_size=4 [16:37:39]MH_SAM_APDU [16:37:39]CAPDU: 80 11 00 00 [16:37:39]Write to MH i2c: E2 08 00 20 2F 80 11 00 00 00 00 00 00 C9 [16:37:39]Write i2c OK [16:37:39]MH_I2C_Read... [16:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:39]Read from MH i2c: E2 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: E2 17 00 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: E2 17 00 20 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1B [16:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:37:39]wFMCommunicate OK [16:37:39]requested_item fd.num is exist - process it [16:37:39]SAM_PROTO_GetFieldsCounters [16:37:39]wFMCommunicate request_size=4 [16:37:39]MH_SAM_APDU [16:37:39]CAPDU: 80 13 00 00 [16:37:39]Write to MH i2c: E2 08 00 21 2F 80 13 00 00 00 00 00 00 CC [16:37:39]Write i2c OK [16:37:39]MH_I2C_Read... [16:37:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:39]Read from MH i2c: E2 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: E2 62 00 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: E2 62 00 21 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C5 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [16:37:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C5 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:39]wFMCommunicate OK [16:37:39]SAM_PROTO_GetFieldsCounters done [16:37:39]requested_item shift.num is exist - process it [16:37:39]requested_item shift.opened is exist - process it [16:37:39]req_shift_opened [16:37:39]FM_GetShiftState [16:37:39]SAM_PROTO_GetShiftState [16:37:39]wFMCommunicate request_size=4 [16:37:39]MH_SAM_APDU [16:37:39]CAPDU: 80 13 01 00 [16:37:39]Write to MH i2c: E2 08 00 22 2F 80 13 01 00 00 00 00 00 CE [16:37:39]Write i2c OK [16:37:39]MH_I2C_Read... [16:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:39]Read from MH i2c: E2 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: E2 0E 00 [16:37:39]MH_I2C_Read... [16:37:39]Read from MH i2c: E2 0E 00 22 2F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 0F [16:37:39]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:37:39]wFMCommunicate OK [16:37:39]SAM_PROTO_GetShiftState done [16:37:39]FM_GetShiftState done [16:37:39]req_shift_opened done [16:37:39]requested_item shift.open_date is exist - process it [16:37:39]req_shift_open_date [16:37:39]req_shift_open_date done [16:37:39]produce_requested_data done [16:37:39]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64197,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:37:39]process_action_free close_receipt [16:37:39]json_value_free [16:37:39]json_value_free done [16:37:39]process_json_proto returns [16:37:39]Send response to host [16:37:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64197,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:37:39]free response buf [16:37:39]execute_script done [16:37:39]execute_script returns [16:37:39]free content buf [16:37:39]Sock 9.Close socket [16:37:39]Sock 9.Thread stoped [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:37:59]accept exits with 8 [16:37:59]New connection [16:37:59]New thread 3067133284 created [16:37:59]Thread 3067276644 joined [16:37:59]Waiting for new connection... [16:37:59] Sock 8.Parse request [16:37:59]Sock 8.Check first char [16:37:59]Sock 8.First char is OK [16:37:59]request: POST /json_proto HTTP/1.0 [16:37:59]Method: POST [16:37:59]URL: /json_proto [16:37:59]Method is POST - this is cgi request [16:37:59]url: /json_proto [16:37:59]query_string will be loaded in cgi processing [16:37:59]execute_cgi json_proto POST (null) [16:37:59]execute_cgi path=json_proto method=POST [16:37:59]POST find Content-Length [16:37:59]Host: 172.17.60.69:8080 [16:37:59]Content-Length: 786 [16:37:59]Content-Type: application/json [16:37:59] [16:37:59]POST finish read [16:37:59]Found Content-Length = 786 [16:37:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73726", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:59]execute_script... [16:37: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)73726", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:59]POST & json_proto [16:37:59]process_json_proto [16:37:59]json parsed OK: [16:37:59]protocol is kg_v1.0 [16:37:59]action value=close_receipt [16:37:59]process_action close_receipt [16:37:59]cmd_close_receipt [16:37:59]MH_GetDate [16:37:59]Write to MH i2c: F0 00 00 23 2F 41 [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: F0 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: F0 09 00 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: F0 09 00 23 2F 00 6B 94 60 66 D2 83 5F 66 29 [16:37:59]GetLastDocTimeStamp 1717605459 [16:37:59]current date 1717605483 [16:37:59]FM_GetShiftState [16:37:59]SAM_PROTO_GetShiftState [16:37:59]wFMCommunicate request_size=4 [16:37:59]MH_SAM_APDU [16:37:59]CAPDU: 80 13 01 00 [16:37:59]Write to MH i2c: E2 08 00 24 2F 80 13 01 00 00 00 00 00 D0 [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:37:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:59]Read from MH i2c: E2 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: E2 0E 00 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: E2 0E 00 24 2F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 11 [16:37:59]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:37:59]wFMCommunicate OK [16:37:59]SAM_PROTO_GetShiftState done [16:37:59]FM_GetShiftState done [16:37:59]opened in 1717545925 [16:37:59]opened+sec_in_day 1717632325 [16:37:59]quantity*price = 11500 [16:37:59]sum+1 = 11501 [16:37:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 0.00 Безнал.: 115.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 118 05.06.2024 16:38 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64198 ФПД: 94651257329411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T163803&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64198&fm=94651257329411&tin=02508201610067®Number=0000000000092737&sum=11500 0 [16:38:00]StoreToDocumentArchive [16:38:00]shift 375 fd 64198 [16:38:00]save to /storage/0375/doc_00064198 [16:38:00]save last doc name /storage/0375/doc_00064198 to /storage/kkm_last_doc_name [16:38:00]save OK [16:38:00]Clear old archive folders... [16:38:00]ProcessDocumentItem done err = 0, tmpTLVsize=274 [16:38:00]tlvbuf is 00FD4C40 [16:38:00]SAM_PROTO_ClearQueue [16:38:00]wFMCommunicate request_size=4 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 09 00 00 [16:38:00]Write to MH i2c: E2 08 00 31 2F 80 09 00 00 00 00 00 00 D2 [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 31 2F 00 90 00 D4 [16:38:00]RAPDU: 90 00 [16:38:00]wFMCommunicate OK [16:38:00]SAM_PROTO_ClearQueue done [16:38:00]KKMCreateOFDPacket [16:38:00]OFDProtocolAddRootSTLVToBuf [16:38:00]FM_MakeSignedData [16:38:00]FM_MakeSignedData [16:38:00]SAM_PROTO_SignData [16:38:00]wFMCommunicate request_size=4 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 0D 01 02 [16:38:00]Write to MH i2c: E2 08 00 32 2F 80 0D 01 02 00 00 00 00 DA [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 32 2F 00 90 00 D5 [16:38:00]RAPDU: 90 00 [16:38:00]wFMCommunicate OK [16:38:00]wFMCommunicate request_size=255 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 6B 94 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [16:38:00]Write to MH i2c: E2 02 01 33 2F 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 6B 94 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 2C [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 33 2F 00 90 00 D6 [16:38:00]RAPDU: 90 00 [16:38:00]wFMCommunicate OK [16:38:00]wFMCommunicate request_size=33 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C6 FA 00 00 35 04 06 00 56 15 B6 92 17 03 [16:38:00]Write to MH i2c: E2 24 00 34 2F 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C6 FA 00 00 35 04 06 00 56 15 B6 92 17 03 00 00 F8 [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 34 2F 00 90 00 D7 [16:38:00]RAPDU: 90 00 [16:38:00]wFMCommunicate OK [16:38:00]wFMCommunicate request_size=4 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 0D 03 02 [16:38:00]Write to MH i2c: E2 08 00 35 2F 80 0D 03 02 00 00 00 00 DF [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 0B 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 0B 00 35 2F 00 77 50 55 36 22 C3 88 7A 90 00 19 [16:38:00]RAPDU: 77 50 55 36 22 C3 88 7A 90 00 [16:38:00]wFMCommunicate OK [16:38:00]SAM_PROTO_SignData done [16:38:00]FM_MakeSignedData done [16:38:00]CreateOFDProtocolMessage [16:38:00]wFMCommunicate request_size=4 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 11 00 00 [16:38:00]Write to MH i2c: E2 08 00 36 2F 80 11 00 00 00 00 00 00 DF [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 17 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 17 00 36 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 31 [16:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:38:00]wFMCommunicate OK [16:38:00]CreateOFDProtocolMessage done [16:38:00]OFDSenderStorePacket 64198 [16:38:00]StoreOFDPacket docnum=64198 [16:38:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 36 40 1E 01 55 00 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 6B 94 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C6 FA 00 00 35 04 06 00 56 15 B6 92 17 03 77 50 55 36 22 C3 88 7A [16:38:00]CheckFolder [16:38:00]dirname=/storage/ofd_packets [16:38:00]CheckFolder done [16:38:00]ProducePacketName [16:38:00]name=ofd_packets/00064198 [16:38:00]NVStorageSaveData ofd_packets/00064198 [16:38:00]File name is /storage/ofd_packets/00064198 [16:38:00]Write 324 bytes [16:38:00]NVStorageSaveData done [16:38:00]OFDSenderStorePacket done [16:38:00]KKMCreateOFDPacket done [16:38:00]NVStorageSaveData kkm_last_timestamp [16:38:00]File name is /storage/kkm_last_timestamp [16:38:00]Write 4 bytes [16:38:00]NVStorageSaveData done [16:38:00]ExternCall_PrintAddStr [16:38:00]wPrintStart [16:38:00]Write to MH i2c: 01 00 00 37 2F 66 [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: 01 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: 01 07 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: 01 07 00 37 2F 00 00 00 00 00 FF 0F 7B [16:38:00]RasterBufferAndPrint [16:38:00]line Счет N : (3)73726 [16:38:00]line ИНН: 02508201610067 [16:38:00]line Контрольно-Кассовый Чек [16:38:00]line ПРОДАЖА [16:38:00]line Товар: 2000036240010 [16:38:00]line Кофе Латте (GABB TRADE) [16:38:00]line 1.000 * 115.00 [16:38:00]line = 115.00 [16:38:00]line НДС 12% НСП 1% [16:38:00]line > о реализуемом товаре [16:38:00]line ИТОГО: 115.00 [16:38:00]line НСП 1% : 1.02 [16:38:00]line НДС 12% : 12.21 [16:38:00]line Наличными: 0.00 [16:38:00]line Безнал.: 115.00 [16:38:00]line Место: АЗС № 117 "Партнер Нефть" [16:38:00]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:38:00]line СНО: Общий режим [16:38:00]line Чек 118 05.06.2024 16:38 [16:38:00]line Смена: 375 ФФД: 1.0 [16:38:00]line ЗНМ: 0300000031 [16:38:00]line РНМ: 0000000000092737 [16:38:00]line Версия ККМ: 001 [16:38:00]line Платежная система: O! деньги [16:38:00]line ФМ: 0000000000875074 [16:38:00]line ФД: 64198 [16:38:00]line ФПД: 94651257329411 [16:38:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T163803&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64198&fm=94651257329411&tin=02508201610067®Number=0000000000092737&sum=11500 [16:38:01]OFD Sender: Processing packet 64198 [packets to send 14, broken 13] [16:38:01]ProducePacketName [16:38:01]name=ofd_packets/00064198 [16:38:01]OFD Sender: To server: pG, [16:38:01]CommunicateWithHost lk.salyk.kg:30040 [16:38:01]ConnectInit lk.salyk.kg [16:38:01]line 0 [16:38:01]written 0, free lines is 4095 [16:38:01]Connected sock=10 [16:38:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 36 40 1E 01 55 00 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 6B 94 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C6 FA 00 00 35 04 06 00 56 15 B6 92 17 03 77 50 55 36 22 C3 88 7A [16:38:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 36 17 47 00 1D E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C6 FA 00 00 F4 03 04 00 76 40 60 66 B6 04 01 00 00 5B 6C 32 60 74 22 BB BB [16:38:01]CommunicateWithHost err = 0 [16:38:01]CheckOFDResponse [16:38:01]1017 (14) - 77093643461234 [16:38:01]1041 (16) - 0000000000875074 [16:38:01]1040 (4) - 64198 [16:38:01]1012 (4) - 05.06.2024 10:39 [16:38:01]1206 (1) - 0 [16:38:01]OFD Sender: Remove packet 64198 [16:38:01]ProducePacketName [16:38:01]name=ofd_packets/00064198 [16:38:01]NVStorageDeleteData [16:38:01]Write to MH i2c: 01 00 00 61 2F 90 [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: 01 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: 01 07 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: 01 07 00 61 2F 00 00 00 00 00 E9 0C 8C [16:38:01]RasterBufferAndPrint [16:38:01]line [16:38:01]line [16:38:01]line [16:38:01]line [16:38:01]line [16:38:01]written 0, free lines is 3311 [16:38:01]MH_Cut [16:38:01]Write to MH i2c: D1 01 00 68 2F 01 69 [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: D1 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: D1 01 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: D1 01 00 68 2F 00 68 [16:38:01]Write to MH i2c: 01 00 00 69 2F 98 [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:02]OFD Sender: No OFD packet to send [16:38:02]*** Cut start [16:38:02]*** Partial cut [16:38:02]*** CUTSNS_PIN = 1 [16:38:02]*** CUTSNS_PIN = 0 [16:38:02]*** Brake cut motor [16:38:03]Read from MH i2c: 01 [16:38:03]MH_I2C_Read... [16:38:03]*** Stop cut motor [16:38:03]*** Cut end [16:38:03]Read from MH i2c: 01 07 00 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: 01 07 00 69 2F 00 00 00 00 00 FF 0F AD [16:38:03]process_action close_receipt done [16:38:03]requested_data is exist [16:38:03]produce_requested_data [16:38:03]requested_item fm.sn is exist - process it [16:38:03]wFMCommunicate request_size=4 [16:38:03]MH_SAM_APDU [16:38:03]CAPDU: 80 11 00 00 [16:38:03]Write to MH i2c: E2 08 00 6A 2F 80 11 00 00 00 00 00 00 13 [16:38:03]Write i2c OK [16:38:03]MH_I2C_Read... [16:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:03]Read from MH i2c: E2 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 17 00 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 17 00 6A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 65 [16:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:38:03]wFMCommunicate OK [16:38:03]requested_item fd.num is exist - process it [16:38:03]SAM_PROTO_GetFieldsCounters [16:38:03]wFMCommunicate request_size=4 [16:38:03]MH_SAM_APDU [16:38:03]CAPDU: 80 13 00 00 [16:38:03]Write to MH i2c: E2 08 00 6B 2F 80 13 00 00 00 00 00 00 16 [16:38:03]Write i2c OK [16:38:03]MH_I2C_Read... [16:38:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:03]Read from MH i2c: E2 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 62 00 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 62 00 6B 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C6 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [16:38:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C6 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:03]wFMCommunicate OK [16:38:03]SAM_PROTO_GetFieldsCounters done [16:38:03]requested_item shift.num is exist - process it [16:38:03]requested_item shift.opened is exist - process it [16:38:03]req_shift_opened [16:38:03]FM_GetShiftState [16:38:03]SAM_PROTO_GetShiftState [16:38:03]wFMCommunicate request_size=4 [16:38:03]MH_SAM_APDU [16:38:03]CAPDU: 80 13 01 00 [16:38:03]Write to MH i2c: E2 08 00 6C 2F 80 13 01 00 00 00 00 00 18 [16:38:03]Write i2c OK [16:38:03]MH_I2C_Read... [16:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:03]Read from MH i2c: E2 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 0E 00 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 0E 00 6C 2F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 59 [16:38:03]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:38:03]wFMCommunicate OK [16:38:03]SAM_PROTO_GetShiftState done [16:38:03]FM_GetShiftState done [16:38:03]req_shift_opened done [16:38:03]requested_item shift.open_date is exist - process it [16:38:03]req_shift_open_date [16:38:03]req_shift_open_date done [16:38:03]produce_requested_data done [16:38:03]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64198,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:38:03]process_action_free close_receipt [16:38:03]json_value_free [16:38:03]json_value_free done [16:38:03]process_json_proto returns [16:38:03]Send response to host [16:38:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64198,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:38:03]free response buf [16:38:03]execute_script done [16:38:03]execute_script returns [16:38:03]free content buf [16:38:03]Sock 8.Close socket [16:38:03]Sock 8.Thread stoped [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:41:02]OFD Sender: No OFD packet to send [16:41:07]OFD Sender: No OFD packet to send [16:41:12]OFD Sender: No OFD packet to send [16:41:17]OFD Sender: No OFD packet to send [16:41:22]OFD Sender: No OFD packet to send [16:41:27]OFD Sender: No OFD packet to send [16:41:29]accept exits with 9 [16:41:29]New connection [16:41:29]New thread 3067276644 created [16:41:29]Thread 3067133284 joined [16:41:29]Waiting for new connection... [16:41:29] Sock 9.Parse request [16:41:29]Sock 9.Check first char [16:41:29]Sock 9.First char is OK [16:41:29]request: POST /json_proto HTTP/1.0 [16:41:29]Method: POST [16:41:29]URL: /json_proto [16:41:29]Method is POST - this is cgi request [16:41:29]url: /json_proto [16:41:29]query_string will be loaded in cgi processing [16:41:29]execute_cgi json_proto POST (null) [16:41:29]execute_cgi path=json_proto method=POST [16:41:29]POST find Content-Length [16:41:29]Host: 172.17.60.69:8080 [16:41:29]Content-Length: 643 [16:41:29]Content-Type: application/json [16:41:29] [16:41:29]POST finish read [16:41:29]Found Content-Length = 643 [16:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73727", "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 }]} ], "payments": [ { "type": 0, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:29]execute_script... [16:41: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)73727", "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 }]} ], "payments": [ { "type": 0, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:29]POST & json_proto [16:41:29]process_json_proto [16:41:29]json parsed OK: [16:41:29]protocol is kg_v1.0 [16:41:29]action value=close_receipt [16:41:29]process_action close_receipt [16:41:29]cmd_close_receipt [16:41:29]MH_GetDate [16:41:29]Write to MH i2c: F0 00 00 6D 2F 8B [16:41:29]Write i2c OK [16:41:29]MH_I2C_Read... [16:41:29]Read from MH i2c: F0 [16:41:29]MH_I2C_Read... [16:41:29]Read from MH i2c: F0 09 00 [16:41:29]MH_I2C_Read... [16:41:29]Read from MH i2c: F0 09 00 6D 2F 00 3D 95 60 66 D2 83 5F 66 46 [16:41:29]GetLastDocTimeStamp 1717605483 [16:41:29]current date 1717605693 [16:41:29]FM_GetShiftState [16:41:29]SAM_PROTO_GetShiftState [16:41:29]wFMCommunicate request_size=4 [16:41:29]MH_SAM_APDU [16:41:29]CAPDU: 80 13 01 00 [16:41:29]Write to MH i2c: E2 08 00 6E 2F 80 13 01 00 00 00 00 00 1A [16:41:29]Write i2c OK [16:41:29]MH_I2C_Read... [16:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:29]Read from MH i2c: E2 [16:41:29]MH_I2C_Read... [16:41:29]Read from MH i2c: E2 0E 00 [16:41:29]MH_I2C_Read... [16:41:29]Read from MH i2c: E2 0E 00 6E 2F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 5B [16:41:29]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:41:29]wFMCommunicate OK [16:41:29]SAM_PROTO_GetShiftState done [16:41:29]FM_GetShiftState done [16:41:29]opened in 1717545925 [16:41:29]opened+sec_in_day 1717632325 [16:41:29]quantity*price = 34500 [16:41:29]sum+1 = 34501 [16:41:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 345.00 НСП 1% : 3.05 НДС 12% : 36.64 Наличными: 345.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 119 05.06.2024 16:41 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64199 ФПД: 276643083285245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T164133&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64199&fm=276643083285245&tin=02508201610067®Number=0000000000092737&sum=34500 0 [16:41:30]StoreToDocumentArchive [16:41:30]shift 375 fd 64199 [16:41:30]save to /storage/0375/doc_00064199 [16:41:30]save last doc name /storage/0375/doc_00064199 to /storage/kkm_last_doc_name [16:41:30]save OK [16:41:30]Clear old archive folders... [16:41:30]ProcessDocumentItem done err = 0, tmpTLVsize=280 [16:41:30]tlvbuf is 0112A920 [16:41:30]SAM_PROTO_ClearQueue [16:41:30]wFMCommunicate request_size=4 [16:41:30]MH_SAM_APDU [16:41:30]CAPDU: 80 09 00 00 [16:41:30]Write to MH i2c: E2 08 00 7B 2F 80 09 00 00 00 00 00 00 1C [16:41:30]Write i2c OK [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 [16:41:30]MH_I2C_Read... [16:41:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:30]Read from MH i2c: E2 03 00 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 03 00 7B 2F 00 90 00 1E [16:41:30]RAPDU: 90 00 [16:41:30]wFMCommunicate OK [16:41:30]SAM_PROTO_ClearQueue done [16:41:30]KKMCreateOFDPacket [16:41:30]OFDProtocolAddRootSTLVToBuf [16:41:30]FM_MakeSignedData [16:41:30]FM_MakeSignedData [16:41:30]SAM_PROTO_SignData [16:41:30]wFMCommunicate request_size=4 [16:41:30]MH_SAM_APDU [16:41:30]CAPDU: 80 0D 01 02 [16:41:30]Write to MH i2c: E2 08 00 7C 2F 80 0D 01 02 00 00 00 00 24 [16:41:30]Write i2c OK [16:41:30]MH_I2C_Read... [16:41:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:30]Read from MH i2c: E2 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 03 00 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 03 00 7C 2F 00 90 00 1F [16:41:30]RAPDU: 90 00 [16:41:30]wFMCommunicate OK [16:41:30]wFMCommunicate request_size=255 [16:41:30]MH_SAM_APDU [16:41:30]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 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 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 3D 95 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [16:41:30]Write to MH i2c: E2 02 01 7D 2F 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 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 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 3D 95 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 BD [16:41:30]Write i2c OK [16:41:30]MH_I2C_Read... [16:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:30]Read from MH i2c: E2 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 03 00 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 03 00 7D 2F 00 90 00 20 [16:41:30]RAPDU: 90 00 [16:41:30]wFMCommunicate OK [16:41:30]wFMCommunicate request_size=39 [16:41:30]MH_SAM_APDU [16:41:30]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C7 FA 00 00 35 04 06 00 FB 9A FC B5 72 FD [16:41:30]Write to MH i2c: E2 2A 00 7E 2F 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C7 FA 00 00 35 04 06 00 FB 9A FC B5 72 FD 00 00 57 [16:41:30]Write i2c OK [16:41:30]MH_I2C_Read... [16:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:30]Read from MH i2c: E2 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 03 00 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 03 00 7E 2F 00 90 00 21 [16:41:30]RAPDU: 90 00 [16:41:30]wFMCommunicate OK [16:41:30]wFMCommunicate request_size=4 [16:41:30]MH_SAM_APDU [16:41:30]CAPDU: 80 0D 03 02 [16:41:30]Write to MH i2c: E2 08 00 7F 2F 80 0D 03 02 00 00 00 00 29 [16:41:30]Write i2c OK [16:41:30]MH_I2C_Read... [16:41:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:30]Read from MH i2c: E2 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 0B 00 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 0B 00 7F 2F 00 11 23 34 87 FB A7 EA 2D 90 00 D2 [16:41:30]RAPDU: 11 23 34 87 FB A7 EA 2D 90 00 [16:41:30]wFMCommunicate OK [16:41:30]SAM_PROTO_SignData done [16:41:30]FM_MakeSignedData done [16:41:30]CreateOFDProtocolMessage [16:41:30]wFMCommunicate request_size=4 [16:41:30]MH_SAM_APDU [16:41:30]CAPDU: 80 11 00 00 [16:41:30]Write to MH i2c: E2 08 00 80 2F 80 11 00 00 00 00 00 00 29 [16:41:30]Write i2c OK [16:41:30]MH_I2C_Read... [16:41:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:30]Read from MH i2c: E2 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 17 00 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 17 00 80 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7B [16:41:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:41:30]wFMCommunicate OK [16:41:30]CreateOFDProtocolMessage done [16:41:30]OFDSenderStorePacket 64199 [16:41:30]StoreOFDPacket docnum=64199 [16:41:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 02 65 24 01 5F 90 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 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 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 3D 95 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C7 FA 00 00 35 04 06 00 FB 9A FC B5 72 FD 11 23 34 87 FB A7 EA 2D [16:41:30]CheckFolder [16:41:30]dirname=/storage/ofd_packets [16:41:30]CheckFolder done [16:41:30]ProducePacketName [16:41:30]name=ofd_packets/00064199 [16:41:30]NVStorageSaveData ofd_packets/00064199 [16:41:30]File name is /storage/ofd_packets/00064199 [16:41:30]Write 330 bytes [16:41:30]NVStorageSaveData done [16:41:30]OFDSenderStorePacket done [16:41:30]KKMCreateOFDPacket done [16:41:30]NVStorageSaveData kkm_last_timestamp [16:41:30]File name is /storage/kkm_last_timestamp [16:41:30]Write 4 bytes [16:41:30]NVStorageSaveData done [16:41:30]ExternCall_PrintAddStr [16:41:30]wPrintStart [16:41:30]Write to MH i2c: 01 00 00 81 2F B0 [16:41:30]Write i2c OK [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: 01 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: 01 07 00 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: 01 07 00 81 2F 00 00 00 00 00 FF 0F C5 [16:41:30]RasterBufferAndPrint [16:41:30]line Счет N : (3)73727 [16:41:30]line ИНН: 02508201610067 [16:41:30]line Контрольно-Кассовый Чек [16:41:30]line ПРОДАЖА [16:41:30]line Товар: 2000036210013 [16:41:30]line Кофе Капучино (GABB TRADE) [16:41:30]line 3.000 * 115.00 [16:41:30]line = 345.00 [16:41:30]line НДС 12% НСП 1% [16:41:30]line > о реализуемом товаре [16:41:30]line ИТОГО: 345.00 [16:41:30]line НСП 1% : 3.05 [16:41:30]line НДС 12% : 36.64 [16:41:30]line Наличными: 345.00 [16:41:30]line Безнал.: 0.00 [16:41:30]line Место: АЗС № 117 "Партнер Нефть" [16:41:30]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:41:30]line СНО: Общий режим [16:41:30]line Чек 119 05.06.2024 16:41 [16:41:30]line Смена: 375 ФФД: 1.0 [16:41:30]line ЗНМ: 0300000031 [16:41:30]line РНМ: 0000000000092737 [16:41:30]line Версия ККМ: 001 [16:41:30]line ФМ: 0000000000875074 [16:41:30]line ФД: 64199 [16:41:30]line ФПД: 276643083285245 [16:41:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T164133&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64199&fm=276643083285245&tin=02508201610067®Number=0000000000092737&sum=34500 [16:41:31]line 0 [16:41:31]OFD Sender: Processing packet 64199 [packets to send 14, broken 13] [16:41:31]ProducePacketName [16:41:31]name=ofd_packets/00064199 [16:41:31]OFD Sender: To server: pG, [16:41:31]CommunicateWithHost lk.salyk.kg:30040 [16:41:31]ConnectInit lk.salyk.kg [16:41:31]written 0, free lines is 4095 [16:41:31]Connected sock=10 [16:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 02 65 24 01 5F 90 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 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 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 3D 95 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C7 FA 00 00 35 04 06 00 FB 9A FC B5 72 FD 11 23 34 87 FB A7 EA 2D [16:41:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 CF 55 47 00 72 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C7 FA 00 00 F4 03 04 00 48 41 60 66 B6 04 01 00 00 07 D5 AF 11 11 F0 E6 A1 [16:41:31]CommunicateWithHost err = 0 [16:41:31]CheckOFDResponse [16:41:31]1017 (14) - 77093643461234 [16:41:31]1041 (16) - 0000000000875074 [16:41:31]1040 (4) - 64199 [16:41:31]1012 (4) - 05.06.2024 10:43 [16:41:31]1206 (1) - 0 [16:41:31]OFD Sender: Remove packet 64199 [16:41:31]ProducePacketName [16:41:31]name=ofd_packets/00064199 [16:41:31]NVStorageDeleteData [16:41:31]Write to MH i2c: 01 00 00 A9 2F D8 [16:41:31]Write i2c OK [16:41:31]MH_I2C_Read... [16:41:31]Read from MH i2c: 01 [16:41:31]MH_I2C_Read... [16:41:31]Read from MH i2c: 01 07 00 [16:41:31]MH_I2C_Read... [16:41:31]Read from MH i2c: 01 07 00 A9 2F 00 00 00 00 00 10 0D FC [16:41:31]RasterBufferAndPrint [16:41:31]line [16:41:31]line [16:41:31]line [16:41:31]line [16:41:31]line [16:41:31]written 0, free lines is 3350 [16:41:31]MH_Cut [16:41:31]Write to MH i2c: D1 01 00 B0 2F 01 B1 [16:41:31]Write i2c OK [16:41:31]MH_I2C_Read... [16:41:31]Read from MH i2c: D1 [16:41:31]MH_I2C_Read... [16:41:31]Read from MH i2c: D1 01 00 [16:41:31]MH_I2C_Read... [16:41:31]Read from MH i2c: D1 01 00 B0 2F 00 B0 [16:41:31]Write to MH i2c: 01 00 00 B1 2F E0 [16:41:31]Write i2c OK [16:41:31]MH_I2C_Read... [16:41:32]OFD Sender: No OFD packet to send [16:41:32]*** Cut start [16:41:32]*** Partial cut [16:41:32]*** CUTSNS_PIN = 1 [16:41:32]*** CUTSNS_PIN = 0 [16:41:32]*** Brake cut motor [16:41:33]Read from MH i2c: 01 [16:41:33]MH_I2C_Read... [16:41:33]*** Stop cut motor [16:41:33]*** Cut end [16:41:33]Read from MH i2c: 01 07 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: 01 07 00 B1 2F 00 00 00 00 00 FF 0F F5 [16:41:33]process_action close_receipt done [16:41:33]requested_data is exist [16:41:33]produce_requested_data [16:41:33]requested_item fm.sn is exist - process it [16:41:33]wFMCommunicate request_size=4 [16:41:33]MH_SAM_APDU [16:41:33]CAPDU: 80 11 00 00 [16:41:33]Write to MH i2c: E2 08 00 B2 2F 80 11 00 00 00 00 00 00 5B [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:33]Read from MH i2c: E2 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 17 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 17 00 B2 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AD [16:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:41:33]wFMCommunicate OK [16:41:33]requested_item fd.num is exist - process it [16:41:33]SAM_PROTO_GetFieldsCounters [16:41:33]wFMCommunicate request_size=4 [16:41:33]MH_SAM_APDU [16:41:33]CAPDU: 80 13 00 00 [16:41:33]Write to MH i2c: E2 08 00 B3 2F 80 13 00 00 00 00 00 00 5E [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:33]Read from MH i2c: E2 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 62 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 62 00 B3 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C7 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [16:41:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C7 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:33]wFMCommunicate OK [16:41:33]SAM_PROTO_GetFieldsCounters done [16:41:33]requested_item shift.num is exist - process it [16:41:33]requested_item shift.opened is exist - process it [16:41:33]req_shift_opened [16:41:33]FM_GetShiftState [16:41:33]SAM_PROTO_GetShiftState [16:41:33]wFMCommunicate request_size=4 [16:41:33]MH_SAM_APDU [16:41:33]CAPDU: 80 13 01 00 [16:41:33]Write to MH i2c: E2 08 00 B4 2F 80 13 01 00 00 00 00 00 60 [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:33]Read from MH i2c: E2 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 0E 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 0E 00 B4 2F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 A1 [16:41:33]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:41:33]wFMCommunicate OK [16:41:33]SAM_PROTO_GetShiftState done [16:41:33]FM_GetShiftState done [16:41:33]req_shift_opened done [16:41:33]requested_item shift.open_date is exist - process it [16:41:33]req_shift_open_date [16:41:33]req_shift_open_date done [16:41:33]produce_requested_data done [16:41:33]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64199,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:41:33]process_action_free close_receipt [16:41:33]json_value_free [16:41:33]json_value_free done [16:41:33]process_json_proto returns [16:41:33]Send response to host [16:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64199,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:41:33]free response buf [16:41:33]execute_script done [16:41:33]execute_script returns [16:41:33]free content buf [16:41:33]Sock 9.Close socket [16:41:33]Sock 9.Thread stoped [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:35]accept exits with 8 [16:43:35]New connection [16:43:35]New thread 3067133284 created [16:43:35]Thread 3067276644 joined [16:43:35]Waiting for new connection... [16:43:35] Sock 8.Parse request [16:43:35]Sock 8.Check first char [16:43:35]Sock 8.First char is OK [16:43:35]request: POST /json_proto HTTP/1.0 [16:43:35]Method: POST [16:43:35]URL: /json_proto [16:43:35]Method is POST - this is cgi request [16:43:35]url: /json_proto [16:43:35]query_string will be loaded in cgi processing [16:43:35]execute_cgi json_proto POST (null) [16:43:35]execute_cgi path=json_proto method=POST [16:43:35]POST find Content-Length [16:43:35]Host: 172.17.60.69:8080 [16:43:35]Content-Length: 733 [16:43:35]Content-Type: application/json [16:43:35] [16:43:35]POST finish read [16:43:35]Found Content-Length = 733 [16:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73728", "tax_sys" : 0, "items" : [ { "code": "0010420131003133", "name": "\u0423\u0433\u043E\u043B\u044C \u0434\u0440\u0435\u0432\u0435\u0441\u043D\u044B\u0439 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C 3\u043A\u0433", "price" : 395.00, "quantity" : 1.000, "sum" : 395.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:35]execute_script... [16:43:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73728", "tax_sys" : 0, "items" : [ { "code": "0010420131003133", "name": "\u0423\u0433\u043E\u043B\u044C \u0434\u0440\u0435\u0432\u0435\u0441\u043D\u044B\u0439 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C 3\u043A\u0433", "price" : 395.00, "quantity" : 1.000, "sum" : 395.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:35]POST & json_proto [16:43:35]process_json_proto [16:43:35]json parsed OK: [16:43:35]protocol is kg_v1.0 [16:43:35]action value=close_receipt [16:43:35]process_action close_receipt [16:43:35]cmd_close_receipt [16:43:35]MH_GetDate [16:43:35]Write to MH i2c: F0 00 00 B5 2F D3 [16:43:35]Write i2c OK [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: F0 [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: F0 09 00 [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: F0 09 00 B5 2F 00 BB 95 60 66 D2 83 5F 66 0C [16:43:35]GetLastDocTimeStamp 1717605693 [16:43:35]current date 1717605819 [16:43:35]FM_GetShiftState [16:43:35]SAM_PROTO_GetShiftState [16:43:35]wFMCommunicate request_size=4 [16:43:35]MH_SAM_APDU [16:43:35]CAPDU: 80 13 01 00 [16:43:35]Write to MH i2c: E2 08 00 B6 2F 80 13 01 00 00 00 00 00 62 [16:43:35]Write i2c OK [16:43:35]MH_I2C_Read... [16:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:35]Read from MH i2c: E2 [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: E2 0E 00 [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: E2 0E 00 B6 2F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 A3 [16:43:35]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:43:35]wFMCommunicate OK [16:43:35]SAM_PROTO_GetShiftState done [16:43:35]FM_GetShiftState done [16:43:35]opened in 1717545925 [16:43:35]opened+sec_in_day 1717632325 [16:43:35]quantity*price = 39500 [16:43:35]sum+1 = 39501 [16:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 395.00 НСП 1% : 3.50 НДС 12% : 41.95 Наличными: 395.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 120 05.06.2024 16:43 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64200 ФПД: 18769086412684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T164339&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64200&fm=18769086412684&tin=02508201610067®Number=0000000000092737&sum=39500 0 [16:43:36]StoreToDocumentArchive [16:43:36]shift 375 fd 64200 [16:43:36]save to /storage/0375/doc_00064200 [16:43:36]save last doc name /storage/0375/doc_00064200 to /storage/kkm_last_doc_name [16:43:36]save OK [16:43:36]Clear old archive folders... [16:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=306 [16:43:36]tlvbuf is 00FF1720 [16:43:36]SAM_PROTO_ClearQueue [16:43:36]wFMCommunicate request_size=4 [16:43:36]MH_SAM_APDU [16:43:36]CAPDU: 80 09 00 00 [16:43:36]Write to MH i2c: E2 08 00 C3 2F 80 09 00 00 00 00 00 00 64 [16:43:36]Write i2c OK [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 [16:43:36]MH_I2C_Read... [16:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:36]Read from MH i2c: E2 03 00 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 03 00 C3 2F 00 90 00 66 [16:43:36]RAPDU: 90 00 [16:43:36]wFMCommunicate OK [16:43:36]SAM_PROTO_ClearQueue done [16:43:36]KKMCreateOFDPacket [16:43:36]OFDProtocolAddRootSTLVToBuf [16:43:36]FM_MakeSignedData [16:43:36]FM_MakeSignedData [16:43:36]SAM_PROTO_SignData [16:43:36]wFMCommunicate request_size=4 [16:43:36]MH_SAM_APDU [16:43:36]CAPDU: 80 0D 01 02 [16:43:36]Write to MH i2c: E2 08 00 C4 2F 80 0D 01 02 00 00 00 00 6C [16:43:36]Write i2c OK [16:43:36]MH_I2C_Read... [16:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:36]Read from MH i2c: E2 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 03 00 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 03 00 C4 2F 00 90 00 67 [16:43:36]RAPDU: 90 00 [16:43:36]wFMCommunicate OK [16:43:36]wFMCommunicate request_size=255 [16:43:36]MH_SAM_APDU [16:43:36]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 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 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 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 BB 95 60 66 0E 04 04 00 77 01 00 00 B9 04 01 [16:43:36]Write to MH i2c: E2 02 01 C5 2F 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 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 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 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 BB 95 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 00 86 [16:43:36]Write i2c OK [16:43:36]MH_I2C_Read... [16:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:36]Read from MH i2c: E2 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 03 00 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 03 00 C5 2F 00 90 00 68 [16:43:36]RAPDU: 90 00 [16:43:36]wFMCommunicate OK [16:43:36]wFMCommunicate request_size=65 [16:43:36]MH_SAM_APDU [16:43:36]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C8 FA 00 00 35 04 06 00 11 12 04 BA 77 8C [16:43:36]Write to MH i2c: E2 44 00 C6 2F 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C8 FA 00 00 35 04 06 00 11 12 04 BA 77 8C 00 00 66 [16:43:36]Write i2c OK [16:43:36]MH_I2C_Read... [16:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:36]Read from MH i2c: E2 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 03 00 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 03 00 C6 2F 00 90 00 69 [16:43:36]RAPDU: 90 00 [16:43:36]wFMCommunicate OK [16:43:36]wFMCommunicate request_size=4 [16:43:36]MH_SAM_APDU [16:43:36]CAPDU: 80 0D 03 02 [16:43:36]Write to MH i2c: E2 08 00 C7 2F 80 0D 03 02 00 00 00 00 71 [16:43:36]Write i2c OK [16:43:36]MH_I2C_Read... [16:43:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:36]Read from MH i2c: E2 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 0B 00 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 0B 00 C7 2F 00 D6 27 1B BE 02 39 A4 6F 90 00 96 [16:43:36]RAPDU: D6 27 1B BE 02 39 A4 6F 90 00 [16:43:36]wFMCommunicate OK [16:43:36]SAM_PROTO_SignData done [16:43:36]FM_MakeSignedData done [16:43:36]CreateOFDProtocolMessage [16:43:36]wFMCommunicate request_size=4 [16:43:36]MH_SAM_APDU [16:43:36]CAPDU: 80 11 00 00 [16:43:36]Write to MH i2c: E2 08 00 C8 2F 80 11 00 00 00 00 00 00 71 [16:43:36]Write i2c OK [16:43:36]MH_I2C_Read... [16:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:36]Read from MH i2c: E2 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 17 00 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 17 00 C8 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C3 [16:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:43:36]wFMCommunicate OK [16:43:36]CreateOFDProtocolMessage done [16:43:36]OFDSenderStorePacket 64200 [16:43:36]StoreOFDPacket docnum=64200 [16:43:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 46 01 00 00 00 4A 3E 01 52 69 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 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 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 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 BB 95 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C8 FA 00 00 35 04 06 00 11 12 04 BA 77 8C D6 27 1B BE 02 39 A4 6F [16:43:36]CheckFolder [16:43:36]dirname=/storage/ofd_packets [16:43:36]CheckFolder done [16:43:36]ProducePacketName [16:43:36]name=ofd_packets/00064200 [16:43:36]NVStorageSaveData ofd_packets/00064200 [16:43:36]File name is /storage/ofd_packets/00064200 [16:43:36]Write 356 bytes [16:43:36]NVStorageSaveData done [16:43:36]OFDSenderStorePacket done [16:43:36]KKMCreateOFDPacket done [16:43:36]NVStorageSaveData kkm_last_timestamp [16:43:36]File name is /storage/kkm_last_timestamp [16:43:36]Write 4 bytes [16:43:36]NVStorageSaveData done [16:43:36]ExternCall_PrintAddStr [16:43:36]wPrintStart [16:43:36]Write to MH i2c: 01 00 00 C9 2F F8 [16:43:36]Write i2c OK [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: 01 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: 01 07 00 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: 01 07 00 C9 2F 00 00 00 00 00 FF 0F 0D [16:43:36]RasterBufferAndPrint [16:43:36]line Счет N : (3)73728 [16:43:36]line ИНН: 02508201610067 [16:43:36]line Контрольно-Кассовый Чек [16:43:36]line ПРОДАЖА [16:43:36]line Товар: 0010420131003133 [16:43:36]line Уголь древесный Партнер Нефть 3кг [16:43:36]line 1.000 * 395.00 [16:43:36]line = 395.00 [16:43:36]line НДС 12% НСП 1% [16:43:36]line > о реализуемом товаре [16:43:36]line ИТОГО: 395.00 [16:43:36]line НСП 1% : 3.50 [16:43:36]line НДС 12% : 41.95 [16:43:36]line Наличными: 395.00 [16:43:36]line Безнал.: 0.00 [16:43:36]line Место: АЗС № 117 "Партнер Нефть" [16:43:36]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:43:36]line СНО: Общий режим [16:43:36]line Чек 120 05.06.2024 16:43 [16:43:36]line Смена: 375 ФФД: 1.0 [16:43:36]line ЗНМ: 0300000031 [16:43:36]line РНМ: 0000000000092737 [16:43:36]line Версия ККМ: 001 [16:43:37]line ФМ: 0000000000875074 [16:43:37]line ФД: 64200 [16:43:37]line ФПД: 18769086412684 [16:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T164339&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64200&fm=18769086412684&tin=02508201610067®Number=0000000000092737&sum=39500 [16:43:37]line 0 [16:43:37]OFD Sender: Processing packet 64200 [packets to send 14, broken 13] [16:43:37]ProducePacketName [16:43:37]name=ofd_packets/00064200 [16:43:37]OFD Sender: To server: pG, [16:43:37]CommunicateWithHost lk.salyk.kg:30040 [16:43:37]ConnectInit lk.salyk.kg [16:43:37]written 0, free lines is 4095 [16:43:37]Connected sock=10 [16:43:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 46 01 00 00 00 4A 3E 01 52 69 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 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 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 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 BB 95 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C8 FA 00 00 35 04 06 00 11 12 04 BA 77 8C D6 27 1B BE 02 39 A4 6F [16:43:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 FC 44 47 00 9A D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C8 FA 00 00 F4 03 04 00 C6 41 60 66 B6 04 01 00 00 A9 74 96 7C 91 06 73 75 [16:43:37]CommunicateWithHost err = 0 [16:43:37]CheckOFDResponse [16:43:37]1017 (14) - 77093643461234 [16:43:37]1041 (16) - 0000000000875074 [16:43:37]1040 (4) - 64200 [16:43:37]1012 (4) - 05.06.2024 10:45 [16:43:37]1206 (1) - 0 [16:43:37]OFD Sender: Remove packet 64200 [16:43:37]ProducePacketName [16:43:37]name=ofd_packets/00064200 [16:43:37]NVStorageDeleteData [16:43:37]Write to MH i2c: 01 00 00 F2 2F 21 [16:43:37]Write i2c OK [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: 01 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: 01 07 00 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: 01 07 00 F2 2F 00 00 00 00 00 D5 0C 09 [16:43:37]RasterBufferAndPrint [16:43:37]line [16:43:37]line [16:43:37]line [16:43:37]line [16:43:37]line [16:43:37]written 0, free lines is 3294 [16:43:37]MH_Cut [16:43:37]Write to MH i2c: D1 01 00 F9 2F 01 FA [16:43:37]Write i2c OK [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: D1 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: D1 01 00 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: D1 01 00 F9 2F 00 F9 [16:43:37]Write to MH i2c: 01 00 00 FA 2F 29 [16:43:37]Write i2c OK [16:43:37]MH_I2C_Read... [16:43:38]OFD Sender: No OFD packet to send [16:43:38]*** Cut start [16:43:38]*** Partial cut [16:43:38]*** CUTSNS_PIN = 1 [16:43:38]*** CUTSNS_PIN = 0 [16:43:38]*** Brake cut motor [16:43:39]Read from MH i2c: 01 [16:43:39]MH_I2C_Read... [16:43:39]*** Stop cut motor [16:43:39]*** Cut end [16:43:39]Read from MH i2c: 01 07 00 [16:43:39]MH_I2C_Read... [16:43:39]Read from MH i2c: 01 07 00 FA 2F 00 00 00 00 00 FF 0F 3E [16:43:39]process_action close_receipt done [16:43:39]requested_data is exist [16:43:39]produce_requested_data [16:43:39]requested_item fm.sn is exist - process it [16:43:39]wFMCommunicate request_size=4 [16:43:39]MH_SAM_APDU [16:43:39]CAPDU: 80 11 00 00 [16:43:39]Write to MH i2c: E2 08 00 FB 2F 80 11 00 00 00 00 00 00 A4 [16:43:39]Write i2c OK [16:43:39]MH_I2C_Read... [16:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:39]Read from MH i2c: E2 [16:43:39]MH_I2C_Read... [16:43:39]Read from MH i2c: E2 17 00 [16:43:39]MH_I2C_Read... [16:43:39]Read from MH i2c: E2 17 00 FB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F6 [16:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:43:39]wFMCommunicate OK [16:43:39]requested_item fd.num is exist - process it [16:43:39]SAM_PROTO_GetFieldsCounters [16:43:39]wFMCommunicate request_size=4 [16:43:39]MH_SAM_APDU [16:43:39]CAPDU: 80 13 00 00 [16:43:39]Write to MH i2c: E2 08 00 FC 2F 80 13 00 00 00 00 00 00 A7 [16:43:39]Write i2c OK [16:43:39]MH_I2C_Read... [16:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:39]Read from MH i2c: E2 [16:43:39]MH_I2C_Read... [16:43:39]Read from MH i2c: E2 62 00 [16:43:39]MH_I2C_Read... [16:43:39]Read from MH i2c: E2 62 00 FC 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C8 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [16:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C8 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:39]wFMCommunicate OK [16:43:39]SAM_PROTO_GetFieldsCounters done [16:43:39]requested_item shift.num is exist - process it [16:43:39]requested_item shift.opened is exist - process it [16:43:39]req_shift_opened [16:43:39]FM_GetShiftState [16:43:39]SAM_PROTO_GetShiftState [16:43:39]wFMCommunicate request_size=4 [16:43:39]MH_SAM_APDU [16:43:39]CAPDU: 80 13 01 00 [16:43:39]Write to MH i2c: E2 08 00 FD 2F 80 13 01 00 00 00 00 00 A9 [16:43:39]Write i2c OK [16:43:39]MH_I2C_Read... [16:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:39]Read from MH i2c: E2 [16:43:39]MH_I2C_Read... [16:43:39]Read from MH i2c: E2 0E 00 [16:43:39]MH_I2C_Read... [16:43:39]Read from MH i2c: E2 0E 00 FD 2F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 EA [16:43:39]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:43:39]wFMCommunicate OK [16:43:39]SAM_PROTO_GetShiftState done [16:43:39]FM_GetShiftState done [16:43:39]req_shift_opened done [16:43:39]requested_item shift.open_date is exist - process it [16:43:39]req_shift_open_date [16:43:39]req_shift_open_date done [16:43:39]produce_requested_data done [16:43:39]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64200,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:43:39]process_action_free close_receipt [16:43:39]json_value_free [16:43:39]json_value_free done [16:43:39]process_json_proto returns [16:43:39]Send response to host [16:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64200,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:43:39]free response buf [16:43:39]execute_script done [16:43:39]execute_script returns [16:43:39]free content buf [16:43:39]Sock 8.Close socket [16:43:39]Sock 8.Thread stoped [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:14]accept exits with 9 [16:46:14]New connection [16:46:14]New thread 3067276644 created [16:46:14]Thread 3067133284 joined [16:46:14]Waiting for new connection... [16:46:14] Sock 9.Parse request [16:46:14]Sock 9.Check first char [16:46:14]Sock 9.First char is OK [16:46:14]request: POST /json_proto HTTP/1.0 [16:46:14]Method: POST [16:46:14]URL: /json_proto [16:46:14]Method is POST - this is cgi request [16:46:14]url: /json_proto [16:46:14]query_string will be loaded in cgi processing [16:46:14]execute_cgi json_proto POST (null) [16:46:14]execute_cgi path=json_proto method=POST [16:46:14]POST find Content-Length [16:46:14]Host: 172.17.60.69:8080 [16:46:14]Content-Length: 627 [16:46:14]Content-Type: application/json [16:46:14] [16:46:14]POST finish read [16:46:14]Found Content-Length = 627 [16:46:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73729", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:14]execute_script... [16:46:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73729", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:14]POST & json_proto [16:46:14]process_json_proto [16:46:14]json parsed OK: [16:46:14]protocol is kg_v1.0 [16:46:14]action value=close_receipt [16:46:14]process_action close_receipt [16:46:14]cmd_close_receipt [16:46:14]MH_GetDate [16:46:14]Write to MH i2c: F0 00 00 FE 2F 1C [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: F0 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: F0 09 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: F0 09 00 FE 2F 00 5A 96 60 66 D2 83 5F 66 F5 [16:46:14]GetLastDocTimeStamp 1717605819 [16:46:14]current date 1717605978 [16:46:14]FM_GetShiftState [16:46:14]SAM_PROTO_GetShiftState [16:46:14]wFMCommunicate request_size=4 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 13 01 00 [16:46:14]Write to MH i2c: E2 08 00 FF 2F 80 13 01 00 00 00 00 00 AB [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 0E 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 0E 00 FF 2F 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 EC [16:46:14]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:46:14]wFMCommunicate OK [16:46:14]SAM_PROTO_GetShiftState done [16:46:14]FM_GetShiftState done [16:46:14]opened in 1717545925 [16:46:14]opened+sec_in_day 1717632325 [16:46:14]quantity*price = 13000 [16:46:14]sum+1 = 13001 [16:46:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 121 05.06.2024 16:46 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64201 ФПД: 229997803916367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T164618&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64201&fm=229997803916367&tin=02508201610067®Number=0000000000092737&sum=13000 0 [16:46:15]StoreToDocumentArchive [16:46:15]shift 375 fd 64201 [16:46:15]save to /storage/0375/doc_00064201 [16:46:15]save last doc name /storage/0375/doc_00064201 to /storage/kkm_last_doc_name [16:46:15]save OK [16:46:15]Clear old archive folders... [16:46:15]ProcessDocumentItem done err = 0, tmpTLVsize=276 [16:46:15]tlvbuf is 0105D610 [16:46:15]SAM_PROTO_ClearQueue [16:46:15]wFMCommunicate request_size=4 [16:46:15]MH_SAM_APDU [16:46:15]CAPDU: 80 09 00 00 [16:46:15]Write to MH i2c: E2 08 00 0C 30 80 09 00 00 00 00 00 00 AE [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 [16:46:15]MH_I2C_Read... [16:46:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:15]Read from MH i2c: E2 03 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 03 00 0C 30 00 90 00 B0 [16:46:15]RAPDU: 90 00 [16:46:15]wFMCommunicate OK [16:46:15]SAM_PROTO_ClearQueue done [16:46:15]KKMCreateOFDPacket [16:46:15]OFDProtocolAddRootSTLVToBuf [16:46:15]FM_MakeSignedData [16:46:15]FM_MakeSignedData [16:46:15]SAM_PROTO_SignData [16:46:15]wFMCommunicate request_size=4 [16:46:15]MH_SAM_APDU [16:46:15]CAPDU: 80 0D 01 02 [16:46:15]Write to MH i2c: E2 08 00 0D 30 80 0D 01 02 00 00 00 00 B6 [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:15]Read from MH i2c: E2 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 03 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 03 00 0D 30 00 90 00 B1 [16:46:15]RAPDU: 90 00 [16:46:15]wFMCommunicate OK [16:46:15]wFMCommunicate request_size=255 [16:46:15]MH_SAM_APDU [16:46:15]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 5A 96 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [16:46:15]Write to MH i2c: E2 02 01 0E 30 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 5A 96 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 00 00 7B [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:15]Read from MH i2c: E2 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 03 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 03 00 0E 30 00 90 00 B2 [16:46:15]RAPDU: 90 00 [16:46:15]wFMCommunicate OK [16:46:15]wFMCommunicate request_size=35 [16:46:15]MH_SAM_APDU [16:46:15]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C9 FA 00 00 35 04 06 00 D1 2E 89 66 CC 4F [16:46:15]Write to MH i2c: E2 26 00 0F 30 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C9 FA 00 00 35 04 06 00 D1 2E 89 66 CC 4F 00 00 77 [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:15]Read from MH i2c: E2 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 03 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 03 00 0F 30 00 90 00 B3 [16:46:15]RAPDU: 90 00 [16:46:15]wFMCommunicate OK [16:46:15]wFMCommunicate request_size=4 [16:46:15]MH_SAM_APDU [16:46:15]CAPDU: 80 0D 03 02 [16:46:15]Write to MH i2c: E2 08 00 10 30 80 0D 03 02 00 00 00 00 BB [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:15]Read from MH i2c: E2 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 0B 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 0B 00 10 30 00 9B FC E2 4F 7C BC 97 8B 90 00 DE [16:46:15]RAPDU: 9B FC E2 4F 7C BC 97 8B 90 00 [16:46:15]wFMCommunicate OK [16:46:15]SAM_PROTO_SignData done [16:46:15]FM_MakeSignedData done [16:46:15]CreateOFDProtocolMessage [16:46:15]wFMCommunicate request_size=4 [16:46:15]MH_SAM_APDU [16:46:15]CAPDU: 80 11 00 00 [16:46:15]Write to MH i2c: E2 08 00 11 30 80 11 00 00 00 00 00 00 BB [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:15]Read from MH i2c: E2 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 17 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 17 00 11 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0D [16:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:46:15]wFMCommunicate OK [16:46:15]CreateOFDProtocolMessage done [16:46:15]OFDSenderStorePacket 64201 [16:46:15]StoreOFDPacket docnum=64201 [16:46:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 55 D7 20 01 53 6D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 5A 96 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C9 FA 00 00 35 04 06 00 D1 2E 89 66 CC 4F 9B FC E2 4F 7C BC 97 8B [16:46:15]CheckFolder [16:46:15]dirname=/storage/ofd_packets [16:46:15]CheckFolder done [16:46:15]ProducePacketName [16:46:15]name=ofd_packets/00064201 [16:46:15]NVStorageSaveData ofd_packets/00064201 [16:46:15]File name is /storage/ofd_packets/00064201 [16:46:15]Write 326 bytes [16:46:15]NVStorageSaveData done [16:46:15]OFDSenderStorePacket done [16:46:15]KKMCreateOFDPacket done [16:46:15]NVStorageSaveData kkm_last_timestamp [16:46:15]File name is /storage/kkm_last_timestamp [16:46:15]Write 4 bytes [16:46:15]NVStorageSaveData done [16:46:15]ExternCall_PrintAddStr [16:46:15]wPrintStart [16:46:15]Write to MH i2c: 01 00 00 12 30 42 [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: 01 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: 01 07 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: 01 07 00 12 30 00 00 00 00 00 FF 0F 57 [16:46:15]RasterBufferAndPrint [16:46:15]line Счет N : (3)73729 [16:46:15]line ИНН: 02508201610067 [16:46:15]line Контрольно-Кассовый Чек [16:46:15]line ПРОДАЖА [16:46:15]line Товар: 2000036230011 [16:46:15]line Кофе Латте XL(GABB TRADE) [16:46:15]line 1.000 * 130.00 [16:46:15]line = 130.00 [16:46:15]line НДС 12% НСП 1% [16:46:15]line > о реализуемом товаре [16:46:15]line ИТОГО: 130.00 [16:46:15]line НСП 1% : 1.15 [16:46:15]line НДС 12% : 13.80 [16:46:15]line Наличными: 130.00 [16:46:15]line Безнал.: 0.00 [16:46:15]line Место: АЗС № 117 "Партнер Нефть" [16:46:15]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:46:15]line СНО: Общий режим [16:46:15]line Чек 121 05.06.2024 16:46 [16:46:15]line Смена: 375 ФФД: 1.0 [16:46:15]line ЗНМ: 0300000031 [16:46:15]line РНМ: 0000000000092737 [16:46:15]line Версия ККМ: 001 [16:46:15]line ФМ: 0000000000875074 [16:46:15]line ФД: 64201 [16:46:15]line ФПД: 229997803916367 [16:46:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T164618&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64201&fm=229997803916367&tin=02508201610067®Number=0000000000092737&sum=13000 [16:46:16]line 0 [16:46:16]OFD Sender: Processing packet 64201 [packets to send 14, broken 13] [16:46:16]ProducePacketName [16:46:16]name=ofd_packets/00064201 [16:46:16]OFD Sender: To server: pG, [16:46:16]CommunicateWithHost lk.salyk.kg:30040 [16:46:16]ConnectInit lk.salyk.kg [16:46:16]written 0, free lines is 4095 [16:46:16]Connected sock=10 [16:46:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 55 D7 20 01 53 6D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 5A 96 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C9 FA 00 00 35 04 06 00 D1 2E 89 66 CC 4F 9B FC E2 4F 7C BC 97 8B [16:46:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 3E 94 47 00 F4 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C9 FA 00 00 F4 03 04 00 65 42 60 66 B6 04 01 00 00 22 20 5C B6 8D E3 00 0C [16:46:16]CommunicateWithHost err = 0 [16:46:16]CheckOFDResponse [16:46:16]1017 (14) - 77093643461234 [16:46:16]1041 (16) - 0000000000875074 [16:46:16]1040 (4) - 64201 [16:46:16]1012 (4) - 05.06.2024 10:48 [16:46:16]1206 (1) - 0 [16:46:16]OFD Sender: Remove packet 64201 [16:46:16]ProducePacketName [16:46:16]name=ofd_packets/00064201 [16:46:16]NVStorageDeleteData [16:46:16]Write to MH i2c: 01 00 00 3A 30 6A [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: 01 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: 01 07 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: 01 07 00 3A 30 00 00 00 00 00 04 0D 82 [16:46:16]RasterBufferAndPrint [16:46:16]line [16:46:16]line [16:46:16]line [16:46:16]line [16:46:16]line [16:46:16]written 0, free lines is 3337 [16:46:16]MH_Cut [16:46:16]Write to MH i2c: D1 01 00 41 30 01 43 [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: D1 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: D1 01 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: D1 01 00 41 30 00 42 [16:46:16]Write to MH i2c: 01 00 00 42 30 72 [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:17]OFD Sender: No OFD packet to send [16:46:17]*** Cut start [16:46:17]*** Partial cut [16:46:17]*** CUTSNS_PIN = 1 [16:46:17]*** CUTSNS_PIN = 0 [16:46:17]*** Brake cut motor [16:46:18]Read from MH i2c: 01 [16:46:18]MH_I2C_Read... [16:46:18]*** Stop cut motor [16:46:18]*** Cut end [16:46:18]Read from MH i2c: 01 07 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 07 00 42 30 00 00 00 00 00 FF 0F 87 [16:46:18]process_action close_receipt done [16:46:18]requested_data is exist [16:46:18]produce_requested_data [16:46:18]requested_item fm.sn is exist - process it [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 11 00 00 [16:46:18]Write to MH i2c: E2 08 00 43 30 80 11 00 00 00 00 00 00 ED [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 17 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 17 00 43 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3F [16:46:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:46:18]wFMCommunicate OK [16:46:18]requested_item fd.num is exist - process it [16:46:18]SAM_PROTO_GetFieldsCounters [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 13 00 00 [16:46:18]Write to MH i2c: E2 08 00 44 30 80 13 00 00 00 00 00 00 F0 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 62 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 62 00 44 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C9 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [16:46:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 C9 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:18]wFMCommunicate OK [16:46:18]SAM_PROTO_GetFieldsCounters done [16:46:18]requested_item shift.num is exist - process it [16:46:18]requested_item shift.opened is exist - process it [16:46:18]req_shift_opened [16:46:18]FM_GetShiftState [16:46:18]SAM_PROTO_GetShiftState [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 13 01 00 [16:46:18]Write to MH i2c: E2 08 00 45 30 80 13 01 00 00 00 00 00 F2 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0E 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0E 00 45 30 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 33 [16:46:18]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:46:18]wFMCommunicate OK [16:46:18]SAM_PROTO_GetShiftState done [16:46:18]FM_GetShiftState done [16:46:18]req_shift_opened done [16:46:18]requested_item shift.open_date is exist - process it [16:46:18]req_shift_open_date [16:46:18]req_shift_open_date done [16:46:18]produce_requested_data done [16:46:18]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64201,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:46:18]process_action_free close_receipt [16:46:18]json_value_free [16:46:18]json_value_free done [16:46:18]process_json_proto returns [16:46:18]Send response to host [16:46:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64201,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:46:18]free response buf [16:46:18]execute_script done [16:46:18]execute_script returns [16:46:18]free content buf [16:46:18]Sock 9.Close socket [16:46:18]Sock 9.Thread stoped [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]OFD Sender: No OFD packet to send [16:48:22]OFD Sender: No OFD packet to send [16:48:27]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:36]accept exits with 8 [16:49:36]New connection [16:49:36]New thread 3067133284 created [16:49:36]Thread 3067276644 joined [16:49:36]Waiting for new connection... [16:49:36] Sock 8.Parse request [16:49:36]Sock 8.Check first char [16:49:36]Sock 8.First char is OK [16:49:36]request: POST /json_proto HTTP/1.0 [16:49:36]Method: POST [16:49:36]URL: /json_proto [16:49:36]Method is POST - this is cgi request [16:49:36]url: /json_proto [16:49:36]query_string will be loaded in cgi processing [16:49:36]execute_cgi json_proto POST (null) [16:49:36]execute_cgi path=json_proto method=POST [16:49:36]POST find Content-Length [16:49:36]Host: 172.17.60.69:8080 [16:49:36]Content-Length: 620 [16:49:36]Content-Type: application/json [16:49:36] [16:49:36]POST finish read [16:49:36]Found Content-Length = 620 [16:49:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73730", "tax_sys" : 0, "items" : [ { "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:36]execute_script... [16:49: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)73730", "tax_sys" : 0, "items" : [ { "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:36]POST & json_proto [16:49:36]process_json_proto [16:49:36]json parsed OK: [16:49:36]protocol is kg_v1.0 [16:49:36]action value=close_receipt [16:49:36]process_action close_receipt [16:49:36]cmd_close_receipt [16:49:36]MH_GetDate [16:49:36]Write to MH i2c: F0 00 00 46 30 65 [16:49:36]Write i2c OK [16:49:36]MH_I2C_Read... [16:49:36]Read from MH i2c: F0 [16:49:36]MH_I2C_Read... [16:49:36]Read from MH i2c: F0 09 00 [16:49:36]MH_I2C_Read... [16:49:36]Read from MH i2c: F0 09 00 46 30 00 24 97 60 66 D2 83 5F 66 09 [16:49:36]GetLastDocTimeStamp 1717605978 [16:49:36]current date 1717606180 [16:49:36]FM_GetShiftState [16:49:36]SAM_PROTO_GetShiftState [16:49:36]wFMCommunicate request_size=4 [16:49:36]MH_SAM_APDU [16:49:36]CAPDU: 80 13 01 00 [16:49:36]Write to MH i2c: E2 08 00 47 30 80 13 01 00 00 00 00 00 F4 [16:49:36]Write i2c OK [16:49:36]MH_I2C_Read... [16:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:36]Read from MH i2c: E2 [16:49:36]MH_I2C_Read... [16:49:36]Read from MH i2c: E2 0E 00 [16:49:36]MH_I2C_Read... [16:49:36]Read from MH i2c: E2 0E 00 47 30 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 35 [16:49:36]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:49:36]wFMCommunicate OK [16:49:36]SAM_PROTO_GetShiftState done [16:49:36]FM_GetShiftState done [16:49:36]opened in 1717545925 [16:49:36]opened+sec_in_day 1717632325 [16:49:36]quantity*price = 14000 [16:49:36]sum+1 = 14001 [16:49:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 122 05.06.2024 16:49 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64202 ФПД: 124894653069201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T164940&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64202&fm=124894653069201&tin=02508201610067®Number=0000000000092737&sum=14000 0 [16:49:37]StoreToDocumentArchive [16:49:37]shift 375 fd 64202 [16:49:37]save to /storage/0375/doc_00064202 [16:49:37]save last doc name /storage/0375/doc_00064202 to /storage/kkm_last_doc_name [16:49:37]save OK [16:49:37]Clear old archive folders... [16:49:37]ProcessDocumentItem done err = 0, tmpTLVsize=273 [16:49:37]tlvbuf is B6FA4710 [16:49:37]SAM_PROTO_ClearQueue [16:49:37]wFMCommunicate request_size=4 [16:49:37]MH_SAM_APDU [16:49:37]CAPDU: 80 09 00 00 [16:49:37]Write to MH i2c: E2 08 00 54 30 80 09 00 00 00 00 00 00 F6 [16:49:37]Write i2c OK [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: E2 [16:49:37]MH_I2C_Read... [16:49:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:37]Read from MH i2c: E2 03 00 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: E2 03 00 54 30 00 90 00 F8 [16:49:37]RAPDU: 90 00 [16:49:37]wFMCommunicate OK [16:49:37]SAM_PROTO_ClearQueue done [16:49:37]KKMCreateOFDPacket [16:49:37]OFDProtocolAddRootSTLVToBuf [16:49:37]FM_MakeSignedData [16:49:37]FM_MakeSignedData [16:49:37]SAM_PROTO_SignData [16:49:37]wFMCommunicate request_size=4 [16:49:37]MH_SAM_APDU [16:49:37]CAPDU: 80 0D 01 02 [16:49:37]Write to MH i2c: E2 08 00 55 30 80 0D 01 02 00 00 00 00 FE [16:49:37]Write i2c OK [16:49:37]MH_I2C_Read... [16:49:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:37]Read from MH i2c: E2 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: E2 03 00 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: E2 03 00 55 30 00 90 00 F9 [16:49:37]RAPDU: 90 00 [16:49:37]wFMCommunicate OK [16:49:37]wFMCommunicate request_size=255 [16:49:37]MH_SAM_APDU [16:49:37]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 7A 00 00 00 F4 03 04 00 24 97 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [16:49:37]Write to MH i2c: E2 02 01 56 30 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 7A 00 00 00 F4 03 04 00 24 97 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 55 [16:49:37]Write i2c OK [16:49:37]MH_I2C_Read... [16:49:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:37]Read from MH i2c: E2 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: E2 03 00 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: E2 03 00 56 30 00 90 00 FA [16:49:37]RAPDU: 90 00 [16:49:37]wFMCommunicate OK [16:49:37]wFMCommunicate request_size=32 [16:49:37]MH_SAM_APDU [16:49:37]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 CA FA 00 00 35 04 06 00 71 97 4D 6E 37 91 [16:49:37]Write to MH i2c: E2 23 00 57 30 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 CA FA 00 00 35 04 06 00 71 97 4D 6E 37 91 00 00 AC [16:49:37]Write i2c OK [16:49:37]MH_I2C_Read... [16:49:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:37]Read from MH i2c: E2 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: E2 03 00 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: E2 03 00 57 30 00 90 00 FB [16:49:37]RAPDU: 90 00 [16:49:37]wFMCommunicate OK [16:49:37]wFMCommunicate request_size=4 [16:49:37]MH_SAM_APDU [16:49:37]CAPDU: 80 0D 03 02 [16:49:37]Write to MH i2c: E2 08 00 58 30 80 0D 03 02 00 00 00 00 03 [16:49:37]Write i2c OK [16:49:37]MH_I2C_Read... [16:49:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:37]Read from MH i2c: E2 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: E2 0B 00 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: E2 0B 00 58 30 00 80 A0 AD E6 32 58 39 38 90 00 B2 [16:49:37]RAPDU: 80 A0 AD E6 32 58 39 38 90 00 [16:49:37]wFMCommunicate OK [16:49:37]SAM_PROTO_SignData done [16:49:37]FM_MakeSignedData done [16:49:37]CreateOFDProtocolMessage [16:49:37]wFMCommunicate request_size=4 [16:49:37]MH_SAM_APDU [16:49:37]CAPDU: 80 11 00 00 [16:49:37]Write to MH i2c: E2 08 00 59 30 80 11 00 00 00 00 00 00 03 [16:49:37]Write i2c OK [16:49:37]MH_I2C_Read... [16:49:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:37]Read from MH i2c: E2 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: E2 17 00 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: E2 17 00 59 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 55 [16:49:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:49:37]wFMCommunicate OK [16:49:37]CreateOFDProtocolMessage done [16:49:37]OFDSenderStorePacket 64202 [16:49:37]StoreOFDPacket docnum=64202 [16:49:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 96 BA 1D 01 56 AB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 7A 00 00 00 F4 03 04 00 24 97 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CA FA 00 00 35 04 06 00 71 97 4D 6E 37 91 80 A0 AD E6 32 58 39 38 [16:49:37]CheckFolder [16:49:37]dirname=/storage/ofd_packets [16:49:37]CheckFolder done [16:49:37]ProducePacketName [16:49:37]name=ofd_packets/00064202 [16:49:37]NVStorageSaveData ofd_packets/00064202 [16:49:37]File name is /storage/ofd_packets/00064202 [16:49:37]Write 323 bytes [16:49:37]NVStorageSaveData done [16:49:37]OFDSenderStorePacket done [16:49:37]KKMCreateOFDPacket done [16:49:37]NVStorageSaveData kkm_last_timestamp [16:49:37]File name is /storage/kkm_last_timestamp [16:49:37]Write 4 bytes [16:49:37]NVStorageSaveData done [16:49:37]ExternCall_PrintAddStr [16:49:37]wPrintStart [16:49:37]Write to MH i2c: 01 00 00 5A 30 8A [16:49:37]Write i2c OK [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: 01 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: 01 07 00 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: 01 07 00 5A 30 00 00 00 00 00 FF 0F 9F [16:49:37]RasterBufferAndPrint [16:49:37]line Счет N : (3)73730 [16:49:37]line ИНН: 02508201610067 [16:49:37]line Контрольно-Кассовый Чек [16:49:37]line ПРОДАЖА [16:49:37]line Товар: 48747059 [16:49:37]line Сигареты Winston Legend Blue [16:49:37]line 1.000 * 140.00 [16:49:37]line = 140.00 [16:49:37]line НДС 12% НСП 1% [16:49:37]line > о реализуемом товаре [16:49:37]line ИТОГО: 140.00 [16:49:37]line НСП 1% : 1.24 [16:49:37]line НДС 12% : 14.87 [16:49:37]line Наличными: 140.00 [16:49:37]line Безнал.: 0.00 [16:49:37]line Место: АЗС № 117 "Партнер Нефть" [16:49:37]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:49:37]line СНО: Общий режим [16:49:37]line Чек 122 05.06.2024 16:49 [16:49:37]line Смена: 375 ФФД: 1.0 [16:49:37]line ЗНМ: 0300000031 [16:49:37]line РНМ: 0000000000092737 [16:49:37]line Версия ККМ: 001 [16:49:37]line ФМ: 0000000000875074 [16:49:37]line ФД: 64202 [16:49:37]line ФПД: 124894653069201 [16:49:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T164940&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64202&fm=124894653069201&tin=02508201610067®Number=0000000000092737&sum=14000 [16:49:37]OFD Sender: Processing packet 64202 [packets to send 14, broken 13] [16:49:37]ProducePacketName [16:49:38]name=ofd_packets/00064202 [16:49:38]OFD Sender: To server: pG, [16:49:38]CommunicateWithHost lk.salyk.kg:30040 [16:49:38]ConnectInit lk.salyk.kg [16:49:38]line 0 [16:49:38]written 0, free lines is 4095 [16:49:38]Connected sock=10 [16:49:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 96 BA 1D 01 56 AB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 7A 00 00 00 F4 03 04 00 24 97 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CA FA 00 00 35 04 06 00 71 97 4D 6E 37 91 80 A0 AD E6 32 58 39 38 [16:49:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 65 FA 47 00 EA 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CA FA 00 00 F4 03 04 00 2F 43 60 66 B6 04 01 00 00 A7 B1 AB 59 72 8B 00 E9 [16:49:38]CommunicateWithHost err = 0 [16:49:38]CheckOFDResponse [16:49:38]1017 (14) - 77093643461234 [16:49:38]1041 (16) - 0000000000875074 [16:49:38]1040 (4) - 64202 [16:49:38]1012 (4) - 05.06.2024 10:51 [16:49:38]1206 (1) - 0 [16:49:38]OFD Sender: Remove packet 64202 [16:49:38]ProducePacketName [16:49:38]name=ofd_packets/00064202 [16:49:38]NVStorageDeleteData [16:49:38]Write to MH i2c: 01 00 00 83 30 B3 [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 07 00 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 07 00 83 30 00 00 00 00 00 D5 0C 9B [16:49:38]RasterBufferAndPrint [16:49:38]line [16:49:38]line [16:49:38]line [16:49:38]line [16:49:38]line [16:49:38]written 0, free lines is 3294 [16:49:38]MH_Cut [16:49:38]Write to MH i2c: D1 01 00 8A 30 01 8C [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: D1 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: D1 01 00 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: D1 01 00 8A 30 00 8B [16:49:38]Write to MH i2c: 01 00 00 8B 30 BB [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:39]OFD Sender: No OFD packet to send [16:49:39]*** Cut start [16:49:39]*** Partial cut [16:49:39]*** CUTSNS_PIN = 1 [16:49:39]*** CUTSNS_PIN = 0 [16:49:39]*** Brake cut motor [16:49:40]Read from MH i2c: 01 [16:49:40]MH_I2C_Read... [16:49:40]*** Stop cut motor [16:49:40]*** Cut end [16:49:40]Read from MH i2c: 01 07 00 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: 01 07 00 8B 30 00 00 00 00 00 FF 0F D0 [16:49:40]process_action close_receipt done [16:49:40]requested_data is exist [16:49:40]produce_requested_data [16:49:40]requested_item fm.sn is exist - process it [16:49:40]wFMCommunicate request_size=4 [16:49:40]MH_SAM_APDU [16:49:40]CAPDU: 80 11 00 00 [16:49:40]Write to MH i2c: E2 08 00 8C 30 80 11 00 00 00 00 00 00 36 [16:49:40]Write i2c OK [16:49:40]MH_I2C_Read... [16:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:40]Read from MH i2c: E2 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 17 00 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 17 00 8C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 88 [16:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:49:40]wFMCommunicate OK [16:49:40]requested_item fd.num is exist - process it [16:49:40]SAM_PROTO_GetFieldsCounters [16:49:40]wFMCommunicate request_size=4 [16:49:40]MH_SAM_APDU [16:49:40]CAPDU: 80 13 00 00 [16:49:40]Write to MH i2c: E2 08 00 8D 30 80 13 00 00 00 00 00 00 39 [16:49:40]Write i2c OK [16:49:40]MH_I2C_Read... [16:49:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:40]Read from MH i2c: E2 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 62 00 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 62 00 8D 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CA FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [16:49:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CA FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:40]wFMCommunicate OK [16:49:40]SAM_PROTO_GetFieldsCounters done [16:49:40]requested_item shift.num is exist - process it [16:49:40]requested_item shift.opened is exist - process it [16:49:40]req_shift_opened [16:49:40]FM_GetShiftState [16:49:40]SAM_PROTO_GetShiftState [16:49:40]wFMCommunicate request_size=4 [16:49:40]MH_SAM_APDU [16:49:40]CAPDU: 80 13 01 00 [16:49:40]Write to MH i2c: E2 08 00 8E 30 80 13 01 00 00 00 00 00 3B [16:49:40]Write i2c OK [16:49:40]MH_I2C_Read... [16:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:40]Read from MH i2c: E2 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 0E 00 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 0E 00 8E 30 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 7C [16:49:40]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:49:40]wFMCommunicate OK [16:49:40]SAM_PROTO_GetShiftState done [16:49:40]FM_GetShiftState done [16:49:40]req_shift_opened done [16:49:40]requested_item shift.open_date is exist - process it [16:49:40]req_shift_open_date [16:49:40]req_shift_open_date done [16:49:40]produce_requested_data done [16:49:40]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64202,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:49:40]process_action_free close_receipt [16:49:40]json_value_free [16:49:40]json_value_free done [16:49:40]process_json_proto returns [16:49:40]Send response to host [16:49:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64202,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:49:40]free response buf [16:49:40]execute_script done [16:49:40]execute_script returns [16:49:40]free content buf [16:49:40]Sock 8.Close socket [16:49:40]Sock 8.Thread stoped [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:53]accept exits with 9 [16:59:53]New connection [16:59:53]New thread 3067276644 created [16:59:53]Thread 3067133284 joined [16:59:53]Waiting for new connection... [16:59:53] Sock 9.Parse request [16:59:53]Sock 9.Check first char [16:59:53]Sock 9.First char is OK [16:59:53]request: POST /json_proto HTTP/1.0 [16:59:53]Method: POST [16:59:53]URL: /json_proto [16:59:53]Method is POST - this is cgi request [16:59:53]url: /json_proto [16:59:53]query_string will be loaded in cgi processing [16:59:53]execute_cgi json_proto POST (null) [16:59:53]execute_cgi path=json_proto method=POST [16:59:53]POST find Content-Length [16:59:53]Host: 172.17.60.69:8080 [16:59:53]Content-Length: 1167 [16:59:53]Content-Type: application/json [16:59:53] [16:59:53]POST finish read [16:59:53]Found Content-Length = 1167 [16:59:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73731", "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" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "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" : 233.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:53]execute_script... [16:59:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73731", "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" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "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" : 233.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:53]POST & json_proto [16:59:53]process_json_proto [16:59:53]json parsed OK: [16:59:53]protocol is kg_v1.0 [16:59:53]action value=close_receipt [16:59:53]process_action close_receipt [16:59:53]cmd_close_receipt [16:59:53]MH_GetDate [16:59:53]Write to MH i2c: F0 00 00 8F 30 AE [16:59:53]Write i2c OK [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: F0 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: F0 09 00 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: F0 09 00 8F 30 00 8E 99 60 66 D2 83 5F 66 BE [16:59:53]GetLastDocTimeStamp 1717606180 [16:59:53]current date 1717606798 [16:59:53]FM_GetShiftState [16:59:53]SAM_PROTO_GetShiftState [16:59:53]wFMCommunicate request_size=4 [16:59:53]MH_SAM_APDU [16:59:53]CAPDU: 80 13 01 00 [16:59:53]Write to MH i2c: E2 08 00 90 30 80 13 01 00 00 00 00 00 3D [16:59:53]Write i2c OK [16:59:53]MH_I2C_Read... [16:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:53]Read from MH i2c: E2 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: E2 0E 00 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: E2 0E 00 90 30 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 7E [16:59:53]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:59:53]wFMCommunicate OK [16:59:53]SAM_PROTO_GetShiftState done [16:59:53]FM_GetShiftState done [16:59:53]opened in 1717545925 [16:59:53]opened+sec_in_day 1717632325 [16:59:53]quantity*price = 11300 [16:59:53]sum+1 = 11301 [16:59:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007401201 Семечки соленые ДЖИНН Великан 100гр 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 233.00 НСП 1% : 2.06 НДС 12% : 24.74 Наличными: 0.00 Безнал.: 233.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 123 05.06.2024 16:59 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64203 ФПД: 147400499373765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T165958&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64203&fm=147400499373765&tin=02508201610067®Number=0000000000092737&sum=23300 0 [16:59:54]StoreToDocumentArchive [16:59:54]shift 375 fd 64203 [16:59:54]save to /storage/0375/doc_00064203 [16:59:54]save last doc name /storage/0375/doc_00064203 to /storage/kkm_last_doc_name [16:59:54]save OK [16:59:54]Clear old archive folders... [16:59:54]ProcessDocumentItem done err = 0, tmpTLVsize=413 [16:59:54]tlvbuf is 00FB0090 [16:59:54]SAM_PROTO_ClearQueue [16:59:54]wFMCommunicate request_size=4 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 09 00 00 [16:59:54]Write to MH i2c: E2 08 00 9D 30 80 09 00 00 00 00 00 00 3F [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 9D 30 00 90 00 41 [16:59:54]RAPDU: 90 00 [16:59:54]wFMCommunicate OK [16:59:54]SAM_PROTO_ClearQueue done [16:59:54]KKMCreateOFDPacket [16:59:54]OFDProtocolAddRootSTLVToBuf [16:59:54]FM_MakeSignedData [16:59:54]FM_MakeSignedData [16:59:54]SAM_PROTO_SignData [16:59:54]wFMCommunicate request_size=4 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 0D 01 02 [16:59:54]Write to MH i2c: E2 08 00 9E 30 80 0D 01 02 00 00 00 00 47 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 9E 30 00 90 00 42 [16:59:54]RAPDU: 90 00 [16:59:54]wFMCommunicate OK [16:59:54]wFMCommunicate request_size=255 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 0D 02 02 FA 03 00 9D 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 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 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 [16:59:54]Write to MH i2c: E2 02 01 9F 30 80 0D 02 02 FA 00 03 00 9D 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 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 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 00 CC [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:55]Read from MH i2c: E2 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 03 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 03 00 9F 30 00 90 00 43 [16:59:55]RAPDU: 90 00 [16:59:55]wFMCommunicate OK [16:59:55]wFMCommunicate request_size=172 [16:59:55]MH_SAM_APDU [16:59:55]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 8E 99 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CB FA 00 00 35 04 06 00 86 0F 5A 67 A6 C5 [16:59:55]Write to MH i2c: E2 AF 00 A0 30 80 0D 02 02 A7 00 00 01 FC 03 06 00 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 8E 99 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CB FA 00 00 35 04 06 00 86 0F 5A 67 A6 C5 00 00 82 [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:55]Read from MH i2c: E2 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 03 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 03 00 A0 30 00 90 00 44 [16:59:55]RAPDU: 90 00 [16:59:55]wFMCommunicate OK [16:59:55]wFMCommunicate request_size=4 [16:59:55]MH_SAM_APDU [16:59:55]CAPDU: 80 0D 03 02 [16:59:55]Write to MH i2c: E2 08 00 A1 30 80 0D 03 02 00 00 00 00 4C [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:55]Read from MH i2c: E2 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 0B 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 0B 00 A1 30 00 78 FB 96 6E 62 77 8C 81 90 00 AA [16:59:55]RAPDU: 78 FB 96 6E 62 77 8C 81 90 00 [16:59:55]wFMCommunicate OK [16:59:55]SAM_PROTO_SignData done [16:59:55]FM_MakeSignedData done [16:59:55]CreateOFDProtocolMessage [16:59:55]wFMCommunicate request_size=4 [16:59:55]MH_SAM_APDU [16:59:55]CAPDU: 80 11 00 00 [16:59:55]Write to MH i2c: E2 08 00 A2 30 80 11 00 00 00 00 00 00 4C [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:55]Read from MH i2c: E2 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 17 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 17 00 A2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9E [16:59:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:59:55]wFMCommunicate OK [16:59:55]CreateOFDProtocolMessage done [16:59:55]OFDSenderStorePacket 64203 [16:59:55]StoreOFDPacket docnum=64203 [16:59:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 B1 01 00 00 7B 2E A9 01 A8 2D 5A 03 01 00 03 00 9D 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 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 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 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 8E 99 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CB FA 00 00 35 04 06 00 86 0F 5A 67 A6 C5 78 FB 96 6E 62 77 8C 81 [16:59:55]CheckFolder [16:59:55]dirname=/storage/ofd_packets [16:59:55]CheckFolder done [16:59:55]ProducePacketName [16:59:55]name=ofd_packets/00064203 [16:59:55]NVStorageSaveData ofd_packets/00064203 [16:59:55]File name is /storage/ofd_packets/00064203 [16:59:55]Write 463 bytes [16:59:55]NVStorageSaveData done [16:59:55]OFDSenderStorePacket done [16:59:55]KKMCreateOFDPacket done [16:59:55]NVStorageSaveData kkm_last_timestamp [16:59:55]File name is /storage/kkm_last_timestamp [16:59:55]Write 4 bytes [16:59:55]NVStorageSaveData done [16:59:55]ExternCall_PrintAddStr [16:59:55]wPrintStart [16:59:55]Write to MH i2c: 01 00 00 A3 30 D3 [16:59:55]OFD Sender: Processing packet 64203 [packets to send 14, broken 13] [16:59:55]ProducePacketName [16:59:55]name=ofd_packets/00064203 [16:59:55]OFD Sender: To server: pG, [16:59:55]CommunicateWithHost lk.salyk.kg:30040 [16:59:55]ConnectInit lk.salyk.kg [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: 01 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: 01 07 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: 01 07 00 A3 30 00 00 00 00 00 FF 0F E8 [16:59:55]RasterBufferAndPrint [16:59:55]line Счет N : (3)73731 [16:59:55]line ИНН: 02508201610067 [16:59:55]line Контрольно-Кассовый Чек [16:59:55]line ПРОДАЖА [16:59:55]line Товар: 5449000054227 [16:59:55]line Напиток Кока-Кола 1л [16:59:55]line 1.000 * 113.00 [16:59:55]line = 113.00 [16:59:55]line НДС 12% НСП 1% [16:59:55]line > о реализуемом товаре [16:59:55]line Товар: 4630007401201 [16:59:55]line Семечки соленые ДЖИНН Великан 100гр [16:59:55]line 1.000 * 120.00 [16:59:55]line = 120.00 [16:59:55]line НДС 12% НСП 1% [16:59:55]line > о реализуемом товаре [16:59:55]line ИТОГО: 233.00 [16:59:55]line НСП 1% : 2.06 [16:59:55]line НДС 12% : 24.74 [16:59:55]line Наличными: 0.00 [16:59:55]line Безнал.: 233.00 [16:59:55]line Место: АЗС № 117 "Партнер Нефть" [16:59:55]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:59:55]line СНО: Общий режим [16:59:55]line Чек 123 05.06.2024 16:59 [16:59:55]line Смена: 375 ФФД: 1.0 [16:59:55]line ЗНМ: 0300000031 [16:59:55]line РНМ: 0000000000092737 [16:59:55]line Версия ККМ: 001 [16:59:55]line Платежная система: O! деньги [16:59:55]line ФМ: 0000000000875074 [16:59:55]line ФД: 64203 [16:59:55]line ФПД: 147400499373765 [16:59:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T165958&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64203&fm=147400499373765&tin=02508201610067®Number=0000000000092737&sum=23300 [16:59:55]line 0 [16:59:55]written 0, free lines is 4095 [16:59:55]Connected sock=10 [16:59:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 B1 01 00 00 7B 2E A9 01 A8 2D 5A 03 01 00 03 00 9D 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 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 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 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 8E 99 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CB FA 00 00 35 04 06 00 86 0F 5A 67 A6 C5 78 FB 96 6E 62 77 8C 81 [16:59:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 60 88 47 00 1B A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CB FA 00 00 F4 03 04 00 99 45 60 66 B6 04 01 00 00 54 2D AB 52 00 42 C1 86 [16:59:55]CommunicateWithHost err = 0 [16:59:55]CheckOFDResponse [16:59:55]1017 (14) - 77093643461234 [16:59:55]1041 (16) - 0000000000875074 [16:59:55]1040 (4) - 64203 [16:59:55]1012 (4) - 05.06.2024 11:01 [16:59:55]1206 (1) - 0 [16:59:55]OFD Sender: Remove packet 64203 [16:59:55]ProducePacketName [16:59:55]name=ofd_packets/00064203 [16:59:55]NVStorageDeleteData [16:59:56]Write to MH i2c: 01 00 00 D4 30 04 [16:59:56]Write i2c OK [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: 01 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: 01 07 00 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: 01 07 00 D4 30 00 00 00 00 00 68 0C 7F [16:59:56]RasterBufferAndPrint [16:59:56]line [16:59:56]line [16:59:56]line [16:59:56]line [16:59:56]line [16:59:56]written 0, free lines is 3183 [16:59:56]MH_Cut [16:59:56]Write to MH i2c: D1 01 00 DB 30 01 DD [16:59:56]Write i2c OK [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: D1 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: D1 01 00 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: D1 01 00 DB 30 00 DC [16:59:56]Write to MH i2c: 01 00 00 DC 30 0C [16:59:56]Write i2c OK [16:59:56]MH_I2C_Read... [16:59:56]OFD Sender: No OFD packet to send [16:59:57]*** Cut start [16:59:57]*** Partial cut [16:59:57]*** CUTSNS_PIN = 1 [16:59:57]*** CUTSNS_PIN = 0 [16:59:57]*** Brake cut motor [16:59:57]Read from MH i2c: 01 [16:59:57]MH_I2C_Read... [16:59:57]*** Stop cut motor [16:59:57]*** Cut end [16:59:57]Read from MH i2c: 01 07 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: 01 07 00 DC 30 00 00 00 00 00 FF 0F 21 [16:59:57]process_action close_receipt done [16:59:57]requested_data is exist [16:59:57]produce_requested_data [16:59:57]requested_item fm.sn is exist - process it [16:59:57]wFMCommunicate request_size=4 [16:59:57]MH_SAM_APDU [16:59:57]CAPDU: 80 11 00 00 [16:59:57]Write to MH i2c: E2 08 00 DD 30 80 11 00 00 00 00 00 00 87 [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:57]Read from MH i2c: E2 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 17 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 17 00 DD 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D9 [16:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:59:57]wFMCommunicate OK [16:59:57]requested_item fd.num is exist - process it [16:59:57]SAM_PROTO_GetFieldsCounters [16:59:57]wFMCommunicate request_size=4 [16:59:57]MH_SAM_APDU [16:59:57]CAPDU: 80 13 00 00 [16:59:57]Write to MH i2c: E2 08 00 DE 30 80 13 00 00 00 00 00 00 8A [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:57]Read from MH i2c: E2 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 62 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 62 00 DE 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CB FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [16:59:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CB FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:57]wFMCommunicate OK [16:59:57]SAM_PROTO_GetFieldsCounters done [16:59:57]requested_item shift.num is exist - process it [16:59:57]requested_item shift.opened is exist - process it [16:59:57]req_shift_opened [16:59:57]FM_GetShiftState [16:59:57]SAM_PROTO_GetShiftState [16:59:57]wFMCommunicate request_size=4 [16:59:57]MH_SAM_APDU [16:59:57]CAPDU: 80 13 01 00 [16:59:57]Write to MH i2c: E2 08 00 DF 30 80 13 01 00 00 00 00 00 8C [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:57]Read from MH i2c: E2 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 0E 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 0E 00 DF 30 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 CD [16:59:57]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [16:59:57]wFMCommunicate OK [16:59:57]SAM_PROTO_GetShiftState done [16:59:57]FM_GetShiftState done [16:59:57]req_shift_opened done [16:59:57]requested_item shift.open_date is exist - process it [16:59:57]req_shift_open_date [16:59:57]req_shift_open_date done [16:59:57]produce_requested_data done [16:59:57]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64203,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [16:59:57]process_action_free close_receipt [16:59:57]json_value_free [16:59:57]json_value_free done [16:59:57]process_json_proto returns [16:59:57]Send response to host [16:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64203,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [16:59:57]free response buf [16:59:57]execute_script done [16:59:57]execute_script returns [16:59:57]free content buf [16:59:57]Sock 9.Close socket [16:59:57]Sock 9.Thread stoped [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:06]OFD Sender: No OFD packet to send [17:03:11]OFD Sender: No OFD packet to send [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:16]OFD Sender: No OFD packet to send [17:06:21]OFD Sender: No OFD packet to send [17:06:26]OFD Sender: No OFD packet to send [17:06:31]OFD Sender: No OFD packet to send [17:06:36]OFD Sender: No OFD packet to send [17:06:41]OFD Sender: No OFD packet to send [17:06:46]OFD Sender: No OFD packet to send [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11: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:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:57]OFD Sender: No OFD packet to send [17:13:02]OFD Sender: No OFD packet to send [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:13]accept exits with 8 [17:15:13]New connection [17:15:13]New thread 3067133284 created [17:15:13]Thread 3067276644 joined [17:15:13]Waiting for new connection... [17:15:13] Sock 8.Parse request [17:15:13]Sock 8.Check first char [17:15:13]Sock 8.First char is OK [17:15:13]request: POST /json_proto HTTP/1.0 [17:15:13]Method: POST [17:15:13]URL: /json_proto [17:15:13]Method is POST - this is cgi request [17:15:13]url: /json_proto [17:15:13]query_string will be loaded in cgi processing [17:15:13]execute_cgi json_proto POST (null) [17:15:13]execute_cgi path=json_proto method=POST [17:15:13]POST find Content-Length [17:15:13]Host: 172.17.60.69:8080 [17:15:13]Content-Length: 630 [17:15:13]Content-Type: application/json [17:15:13] [17:15:13]POST finish read [17:15:13]Found Content-Length = 630 [17:15:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73732", "tax_sys" : 0, "items" : [ { "code": "42124016", "name": "Eclipse \u041B\u0435\u0434\u044F\u043D\u0430\u044F \u0432\u0438\u0448\u043D\u044F", "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:15:13]execute_script... [17:15: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)73732", "tax_sys" : 0, "items" : [ { "code": "42124016", "name": "Eclipse \u041B\u0435\u0434\u044F\u043D\u0430\u044F \u0432\u0438\u0448\u043D\u044F", "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:15:13]POST & json_proto [17:15:13]process_json_proto [17:15:13]json parsed OK: [17:15:13]protocol is kg_v1.0 [17:15:13]action value=close_receipt [17:15:13]process_action close_receipt [17:15:13]cmd_close_receipt [17:15:13]MH_GetDate [17:15:13]Write to MH i2c: F0 00 00 E0 30 FF [17:15:13]Write i2c OK [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: F0 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: F0 09 00 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: F0 09 00 E0 30 00 25 9D 60 66 D2 83 5F 66 AA [17:15:13]GetLastDocTimeStamp 1717606798 [17:15:13]current date 1717607717 [17:15:13]FM_GetShiftState [17:15:13]SAM_PROTO_GetShiftState [17:15:13]wFMCommunicate request_size=4 [17:15:13]MH_SAM_APDU [17:15:13]CAPDU: 80 13 01 00 [17:15:13]Write to MH i2c: E2 08 00 E1 30 80 13 01 00 00 00 00 00 8E [17:15:13]Write i2c OK [17:15:13]MH_I2C_Read... [17:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:13]Read from MH i2c: E2 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: E2 0E 00 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: E2 0E 00 E1 30 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 CF [17:15:13]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [17:15:13]wFMCommunicate OK [17:15:13]SAM_PROTO_GetShiftState done [17:15:13]FM_GetShiftState done [17:15:13]opened in 1717545925 [17:15:13]opened+sec_in_day 1717632325 [17:15:13]quantity*price = 4500 [17:15:13]sum+1 = 4501 [17:15:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 124 05.06.2024 17:15 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64204 ФПД: 90467198668505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T171517&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64204&fm=90467198668505&tin=02508201610067®Number=0000000000092737&sum=4500 0 [17:15:14]StoreToDocumentArchive [17:15:14]shift 375 fd 64204 [17:15:14]save to /storage/0375/doc_00064204 [17:15:14]save last doc name /storage/0375/doc_00064204 to /storage/kkm_last_doc_name [17:15:14]save OK [17:15:14]Clear old archive folders... [17:15:14]ProcessDocumentItem done err = 0, tmpTLVsize=270 [17:15:14]tlvbuf is 00FB0B20 [17:15:14]SAM_PROTO_ClearQueue [17:15:14]wFMCommunicate request_size=4 [17:15:14]MH_SAM_APDU [17:15:14]CAPDU: 80 09 00 00 [17:15:14]Write to MH i2c: E2 08 00 EE 30 80 09 00 00 00 00 00 00 90 [17:15:14]Write i2c OK [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: E2 [17:15:14]MH_I2C_Read... [17:15:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:14]Read from MH i2c: E2 03 00 [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: E2 03 00 EE 30 00 90 00 92 [17:15:14]RAPDU: 90 00 [17:15:14]wFMCommunicate OK [17:15:14]SAM_PROTO_ClearQueue done [17:15:14]KKMCreateOFDPacket [17:15:14]OFDProtocolAddRootSTLVToBuf [17:15:14]FM_MakeSignedData [17:15:14]FM_MakeSignedData [17:15:14]SAM_PROTO_SignData [17:15:14]wFMCommunicate request_size=4 [17:15:14]MH_SAM_APDU [17:15:14]CAPDU: 80 0D 01 02 [17:15:14]Write to MH i2c: E2 08 00 EF 30 80 0D 01 02 00 00 00 00 98 [17:15:14]Write i2c OK [17:15:14]MH_I2C_Read... [17:15:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:14]Read from MH i2c: E2 [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: E2 03 00 [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: E2 03 00 EF 30 00 90 00 93 [17:15:14]RAPDU: 90 00 [17:15:14]wFMCommunicate OK [17:15:14]wFMCommunicate request_size=255 [17:15:14]MH_SAM_APDU [17:15:14]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 32 31 32 34 30 31 36 06 04 21 00 45 63 6C 69 70 73 65 20 D0 9B D0 B5 D0 B4 D1 8F D0 BD D0 B0 D1 8F 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 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 7C 00 00 00 F4 03 04 00 25 9D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [17:15:14]Write to MH i2c: E2 02 01 F0 30 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 32 31 32 34 30 31 36 06 04 21 00 45 63 6C 69 70 73 65 20 D0 9B D0 B5 D0 B4 D1 8F D0 BD D0 B0 D1 8F 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 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 7C 00 00 00 F4 03 04 00 25 9D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 06 [17:15:14]Write i2c OK [17:15:14]MH_I2C_Read... [17:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:14]Read from MH i2c: E2 [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: E2 03 00 [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: E2 03 00 F0 30 00 90 00 94 [17:15:14]RAPDU: 90 00 [17:15:14]wFMCommunicate OK [17:15:14]wFMCommunicate request_size=29 [17:15:14]MH_SAM_APDU [17:15:14]CAPDU: 80 0D 02 02 18 38 37 35 30 37 34 10 04 04 00 CC FA 00 00 35 04 06 00 52 47 89 3D 8E D9 [17:15:14]Write to MH i2c: E2 20 00 F1 30 80 0D 02 02 18 00 38 37 35 30 37 34 10 04 04 00 CC FA 00 00 35 04 06 00 52 47 89 3D 8E D9 00 00 ED [17:15:14]Write i2c OK [17:15:14]MH_I2C_Read... [17:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:14]Read from MH i2c: E2 [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: E2 03 00 [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: E2 03 00 F1 30 00 90 00 95 [17:15:14]RAPDU: 90 00 [17:15:14]wFMCommunicate OK [17:15:14]wFMCommunicate request_size=4 [17:15:14]MH_SAM_APDU [17:15:14]CAPDU: 80 0D 03 02 [17:15:14]Write to MH i2c: E2 08 00 F2 30 80 0D 03 02 00 00 00 00 9D [17:15:14]Write i2c OK [17:15:14]MH_I2C_Read... [17:15:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:14]Read from MH i2c: E2 [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: E2 0B 00 [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: E2 0B 00 F2 30 00 F5 90 D7 46 C4 C0 EF 81 90 00 34 [17:15:14]RAPDU: F5 90 D7 46 C4 C0 EF 81 90 00 [17:15:14]wFMCommunicate OK [17:15:14]SAM_PROTO_SignData done [17:15:14]FM_MakeSignedData done [17:15:14]CreateOFDProtocolMessage [17:15:14]wFMCommunicate request_size=4 [17:15:14]MH_SAM_APDU [17:15:14]CAPDU: 80 11 00 00 [17:15:14]Write to MH i2c: E2 08 00 F3 30 80 11 00 00 00 00 00 00 9D [17:15:14]Write i2c OK [17:15:14]MH_I2C_Read... [17:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:14]Read from MH i2c: E2 [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: E2 17 00 [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: E2 17 00 F3 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EF [17:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:15:14]wFMCommunicate OK [17:15:14]CreateOFDProtocolMessage done [17:15:14]OFDSenderStorePacket 64204 [17:15:14]StoreOFDPacket docnum=64204 [17:15:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 22 01 00 00 D3 CD 1A 01 7B B0 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 32 31 32 34 30 31 36 06 04 21 00 45 63 6C 69 70 73 65 20 D0 9B D0 B5 D0 B4 D1 8F D0 BD D0 B0 D1 8F 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 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 7C 00 00 00 F4 03 04 00 25 9D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CC FA 00 00 35 04 06 00 52 47 89 3D 8E D9 F5 90 D7 46 C4 C0 EF 81 [17:15:14]CheckFolder [17:15:14]dirname=/storage/ofd_packets [17:15:14]CheckFolder done [17:15:14]ProducePacketName [17:15:14]name=ofd_packets/00064204 [17:15:14]NVStorageSaveData ofd_packets/00064204 [17:15:14]File name is /storage/ofd_packets/00064204 [17:15:14]Write 320 bytes [17:15:14]NVStorageSaveData done [17:15:14]OFDSenderStorePacket done [17:15:14]KKMCreateOFDPacket done [17:15:14]NVStorageSaveData kkm_last_timestamp [17:15:14]File name is /storage/kkm_last_timestamp [17:15:14]Write 4 bytes [17:15:14]NVStorageSaveData done [17:15:14]ExternCall_PrintAddStr [17:15:14]wPrintStart [17:15:14]Write to MH i2c: 01 00 00 F4 30 24 [17:15:14]Write i2c OK [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: 01 [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: 01 07 00 [17:15:14]MH_I2C_Read... [17:15:14]Read from MH i2c: 01 07 00 F4 30 00 00 00 00 00 FF 0F 39 [17:15:14]RasterBufferAndPrint [17:15:14]line Счет N : (3)73732 [17:15:14]line ИНН: 02508201610067 [17:15:14]line Контрольно-Кассовый Чек [17:15:14]line ПРОДАЖА [17:15:14]line Товар: 42124016 [17:15:14]line Eclipse Ледяная вишня [17:15:14]line 1.000 * 45.00 [17:15:14]line = 45.00 [17:15:14]line НДС 12% НСП 1% [17:15:14]line > о реализуемом товаре [17:15:14]line ИТОГО: 45.00 [17:15:14]line НСП 1% : 0.40 [17:15:14]line НДС 12% : 4.78 [17:15:14]line Наличными: 45.00 [17:15:14]line Безнал.: 0.00 [17:15:14]line Место: АЗС № 117 "Партнер Нефть" [17:15:14]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:15:14]line СНО: Общий режим [17:15:14]line Чек 124 05.06.2024 17:15 [17:15:14]line Смена: 375 ФФД: 1.0 [17:15:14]line ЗНМ: 0300000031 [17:15:14]line РНМ: 0000000000092737 [17:15:14]line Версия ККМ: 001 [17:15:14]line ФМ: 0000000000875074 [17:15:14]line ФД: 64204 [17:15:14]line ФПД: 90467198668505 [17:15:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T171517&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64204&fm=90467198668505&tin=02508201610067®Number=0000000000092737&sum=4500 [17:15:15]OFD Sender: Processing packet 64204 [packets to send 14, broken 13] [17:15:15]ProducePacketName [17:15:15]name=ofd_packets/00064204 [17:15:15]OFD Sender: To server: pG, [17:15:15]CommunicateWithHost lk.salyk.kg:30040 [17:15:15]ConnectInit lk.salyk.kg [17:15:15]line 0 [17:15:15]written 0, free lines is 4095 [17:15:15]Connected sock=10 [17:15:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 22 01 00 00 D3 CD 1A 01 7B B0 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 32 31 32 34 30 31 36 06 04 21 00 45 63 6C 69 70 73 65 20 D0 9B D0 B5 D0 B4 D1 8F D0 BD D0 B0 D1 8F 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 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 7C 00 00 00 F4 03 04 00 25 9D 60 66 0E 04 04 00 77 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CC FA 00 00 35 04 06 00 52 47 89 3D 8E D9 F5 90 D7 46 C4 C0 EF 81 [17:15:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 35 24 47 00 44 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CC FA 00 00 F4 03 04 00 30 49 60 66 B6 04 01 00 00 BE 93 0B E1 4C 38 5A 91 [17:15:15]CommunicateWithHost err = 0 [17:15:15]CheckOFDResponse [17:15:15]1017 (14) - 77093643461234 [17:15:15]1041 (16) - 0000000000875074 [17:15:15]1040 (4) - 64204 [17:15:15]1012 (4) - 05.06.2024 11:17 [17:15:15]1206 (1) - 0 [17:15:15]OFD Sender: Remove packet 64204 [17:15:15]ProducePacketName [17:15:15]name=ofd_packets/00064204 [17:15:15]NVStorageDeleteData [17:15:15]Write to MH i2c: 01 00 00 1C 31 4D [17:15:15]Write i2c OK [17:15:15]MH_I2C_Read... [17:15:15]Read from MH i2c: 01 [17:15:15]MH_I2C_Read... [17:15:15]Read from MH i2c: 01 07 00 [17:15:15]MH_I2C_Read... [17:15:15]Read from MH i2c: 01 07 00 1C 31 00 00 00 00 00 02 0D 63 [17:15:15]RasterBufferAndPrint [17:15:15]line [17:15:15]line [17:15:15]line [17:15:15]line [17:15:15]line [17:15:15]written 0, free lines is 3337 [17:15:15]MH_Cut [17:15:15]Write to MH i2c: D1 01 00 23 31 01 26 [17:15:15]Write i2c OK [17:15:15]MH_I2C_Read... [17:15:15]Read from MH i2c: D1 [17:15:15]MH_I2C_Read... [17:15:15]Read from MH i2c: D1 01 00 [17:15:15]MH_I2C_Read... [17:15:15]Read from MH i2c: D1 01 00 23 31 00 25 [17:15:15]Write to MH i2c: 01 00 00 24 31 55 [17:15:15]Write i2c OK [17:15:15]MH_I2C_Read... [17:15:16]OFD Sender: No OFD packet to send [17:15:16]*** Cut start [17:15:16]*** Partial cut [17:15:16]*** CUTSNS_PIN = 1 [17:15:16]*** CUTSNS_PIN = 0 [17:15:16]*** Brake cut motor [17:15:17]Read from MH i2c: 01 [17:15:17]MH_I2C_Read... [17:15:17]*** Stop cut motor [17:15:17]*** Cut end [17:15:17]Read from MH i2c: 01 07 00 [17:15:17]MH_I2C_Read... [17:15:17]Read from MH i2c: 01 07 00 24 31 00 00 00 00 00 FF 0F 6A [17:15:17]process_action close_receipt done [17:15:17]requested_data is exist [17:15:17]produce_requested_data [17:15:17]requested_item fm.sn is exist - process it [17:15:17]wFMCommunicate request_size=4 [17:15:17]MH_SAM_APDU [17:15:17]CAPDU: 80 11 00 00 [17:15:17]Write to MH i2c: E2 08 00 25 31 80 11 00 00 00 00 00 00 D0 [17:15:17]Write i2c OK [17:15:17]MH_I2C_Read... [17:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:17]Read from MH i2c: E2 [17:15:17]MH_I2C_Read... [17:15:17]Read from MH i2c: E2 17 00 [17:15:17]MH_I2C_Read... [17:15:17]Read from MH i2c: E2 17 00 25 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 22 [17:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:15:17]wFMCommunicate OK [17:15:17]requested_item fd.num is exist - process it [17:15:17]SAM_PROTO_GetFieldsCounters [17:15:17]wFMCommunicate request_size=4 [17:15:17]MH_SAM_APDU [17:15:17]CAPDU: 80 13 00 00 [17:15:17]Write to MH i2c: E2 08 00 26 31 80 13 00 00 00 00 00 00 D3 [17:15:17]Write i2c OK [17:15:17]MH_I2C_Read... [17:15:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:17]Read from MH i2c: E2 [17:15:17]MH_I2C_Read... [17:15:17]Read from MH i2c: E2 62 00 [17:15:17]MH_I2C_Read... [17:15:17]Read from MH i2c: E2 62 00 26 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CC FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [17:15:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CC FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:17]wFMCommunicate OK [17:15:17]SAM_PROTO_GetFieldsCounters done [17:15:17]requested_item shift.num is exist - process it [17:15:17]requested_item shift.opened is exist - process it [17:15:17]req_shift_opened [17:15:17]FM_GetShiftState [17:15:17]SAM_PROTO_GetShiftState [17:15:17]wFMCommunicate request_size=4 [17:15:17]MH_SAM_APDU [17:15:17]CAPDU: 80 13 01 00 [17:15:17]Write to MH i2c: E2 08 00 27 31 80 13 01 00 00 00 00 00 D5 [17:15:17]Write i2c OK [17:15:17]MH_I2C_Read... [17:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:17]Read from MH i2c: E2 [17:15:17]MH_I2C_Read... [17:15:17]Read from MH i2c: E2 0E 00 [17:15:17]MH_I2C_Read... [17:15:17]Read from MH i2c: E2 0E 00 27 31 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 16 [17:15:17]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [17:15:17]wFMCommunicate OK [17:15:17]SAM_PROTO_GetShiftState done [17:15:17]FM_GetShiftState done [17:15:17]req_shift_opened done [17:15:17]requested_item shift.open_date is exist - process it [17:15:17]req_shift_open_date [17:15:17]req_shift_open_date done [17:15:17]produce_requested_data done [17:15:17]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64204,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [17:15:17]process_action_free close_receipt [17:15:17]json_value_free [17:15:17]json_value_free done [17:15:17]process_json_proto returns [17:15:17]Send response to host [17:15:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64204,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [17:15:17]free response buf [17:15:17]execute_script done [17:15:17]execute_script returns [17:15:17]free content buf [17:15:17]Sock 8.Close socket [17:15:17]Sock 8.Thread stoped [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:50]accept exits with 9 [17:19:50]New connection [17:19:50]New thread 3067276644 created [17:19:50]Thread 3067133284 joined [17:19:50]Waiting for new connection... [17:19:50] Sock 9.Parse request [17:19:50]Sock 9.Check first char [17:19:50]Sock 9.First char is OK [17:19:50]request: POST /json_proto HTTP/1.0 [17:19:50]Method: POST [17:19:50]URL: /json_proto [17:19:50]Method is POST - this is cgi request [17:19:50]url: /json_proto [17:19:50]query_string will be loaded in cgi processing [17:19:50]execute_cgi json_proto POST (null) [17:19:50]execute_cgi path=json_proto method=POST [17:19:50]POST find Content-Length [17:19:50]Host: 172.17.60.69:8080 [17:19:50]Content-Length: 215 [17:19:50]Content-Type: application/json [17:19:50] [17:19:50]POST finish read [17:19:50]Found Content-Length = 215 [17:19:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:50]execute_script... [17:19:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:50]POST & json_proto [17:19:50]process_json_proto [17:19:50]json parsed OK: [17:19:50]protocol is kg_v1.0 [17:19:50]action value=get_value [17:19:50]process_action get_value [17:19:50]cmd_get_value [17:19:50]process_action get_value done [17:19:50]requested_data is exist [17:19:50]produce_requested_data [17:19:50]requested_item kkm.sn is exist - process it [17:19:50]requested_item kkm.ver is exist - process it [17:19:50]requested_item fm.sn is exist - process it [17:19:50]wFMCommunicate request_size=4 [17:19:50]MH_SAM_APDU [17:19:50]CAPDU: 80 11 00 00 [17:19:50]Write to MH i2c: E2 08 00 28 31 80 11 00 00 00 00 00 00 D3 [17:19:50]Write i2c OK [17:19:50]MH_I2C_Read... [17:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:50]Read from MH i2c: E2 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 17 00 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 17 00 28 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 25 [17:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:19:50]wFMCommunicate OK [17:19:50]requested_item fd.num is exist - process it [17:19:50]SAM_PROTO_GetFieldsCounters [17:19:50]wFMCommunicate request_size=4 [17:19:50]MH_SAM_APDU [17:19:50]CAPDU: 80 13 00 00 [17:19:50]Write to MH i2c: E2 08 00 29 31 80 13 00 00 00 00 00 00 D6 [17:19:50]Write i2c OK [17:19:50]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 62 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 62 00 29 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CC FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [17:19:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CC FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:51]wFMCommunicate OK [17:19:51]SAM_PROTO_GetFieldsCounters done [17:19:51]requested_item shift.num is exist - process it [17:19:51]requested_item shift.opened is exist - process it [17:19:51]req_shift_opened [17:19:51]FM_GetShiftState [17:19:51]SAM_PROTO_GetShiftState [17:19:51]wFMCommunicate request_size=4 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 13 01 00 [17:19:51]Write to MH i2c: E2 08 00 2A 31 80 13 01 00 00 00 00 00 D8 [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 0E 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 0E 00 2A 31 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 19 [17:19:51]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [17:19:51]wFMCommunicate OK [17:19:51]SAM_PROTO_GetShiftState done [17:19:51]FM_GetShiftState done [17:19:51]req_shift_opened done [17:19:51]requested_item shift.open_date is exist - process it [17:19:51]req_shift_open_date [17:19:51]req_shift_open_date done [17:19:51]produce_requested_data done [17:19:51]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64204,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [17:19:51]process_action_free get_value [17:19:51]json_value_free [17:19:51]json_value_free done [17:19:51]process_json_proto returns [17:19:51]Send response to host [17:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64204,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [17:19:51]free response buf [17:19:51]execute_script done [17:19:51]execute_script returns [17:19:51]free content buf [17:19:51]Sock 9.Close socket [17:19:51]Sock 9.Thread stoped [17:19:51]accept exits with 8 [17:19:51]New connection [17:19:51]New thread 3067133284 created [17:19:51]Thread 3067276644 joined [17:19:51]Waiting for new connection... [17:19:51] Sock 8.Parse request [17:19:51]Sock 8.Check first char [17:19:51]Sock 8.First char is OK [17:19:51]request: POST /json_proto HTTP/1.0 [17:19:51]Method: POST [17:19:51]URL: /json_proto [17:19:51]Method is POST - this is cgi request [17:19:51]url: /json_proto [17:19:51]query_string will be loaded in cgi processing [17:19:51]execute_cgi json_proto POST (null) [17:19:51]execute_cgi path=json_proto method=POST [17:19:51]POST find Content-Length [17:19:51]Host: 172.17.60.69:8080 [17:19:51]Content-Length: 331 [17:19:51]Content-Type: application/json [17:19:51] [17:19:51]POST finish read [17:19:51]Found Content-Length = 331 [17:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:19:51]execute_script... [17:19:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:19:51]POST & json_proto [17:19:51]process_json_proto [17:19:51]json parsed OK: [17:19:51]protocol is kg_v1.0 [17:19:51]action value=get_value [17:19:51]process_action get_value [17:19:51]cmd_get_value [17:19:51]process_action get_value done [17:19:51]requested_data is exist [17:19:51]produce_requested_data [17:19:51]requested_item fm.sale.total is exist - process it [17:19:51]SAM_PROTO_GetFMData [17:19:51]wFMCommunicate request_size=4 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 13 03 00 [17:19:51]Write to MH i2c: E2 08 00 2B 31 80 13 03 00 00 00 00 00 DB [17:19:51]OFD Sender: No OFD packet to send [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 FD 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 FD 00 2B 31 00 C5 04 85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F EF 03 09 90 00 64 [17:19:51]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F EF 03 09 90 00 [17:19:51]wFMCommunicate OK [17:19:51]wFMCommunicate request_size=4 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 17 00 00 [17:19:51]Write to MH i2c: E2 08 00 2C 31 80 17 00 00 00 00 00 00 DD [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:19:52]Read from MH i2c: E2 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: E2 FD 00 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: E2 FD 00 2C 31 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 D9 [17:19:52]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:19:52]wFMCommunicate OK [17:19:52]wFMCommunicate request_size=4 [17:19:52]MH_SAM_APDU [17:19:52]CAPDU: 80 17 00 00 [17:19:52]Write to MH i2c: E2 08 00 2D 31 80 17 00 00 00 00 00 00 DE [17:19:52]Write i2c OK [17:19:52]MH_I2C_Read... [17:19:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:19:52]Read from MH i2c: E2 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: E2 FD 00 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: E2 FD 00 2D 31 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 F0 [17:19:52]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:19:52]wFMCommunicate OK [17:19:52]wFMCommunicate request_size=4 [17:19:52]MH_SAM_APDU [17:19:52]CAPDU: 80 17 00 00 [17:19:52]Write to MH i2c: E2 08 00 2E 31 80 17 00 00 00 00 00 00 DF [17:19:52]Write i2c OK [17:19:52]MH_I2C_Read... [17:19:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:19:52]Read from MH i2c: E2 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: E2 FD 00 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: E2 FD 00 2E 31 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 6B [17:19:52]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:19:52]wFMCommunicate OK [17:19:52]wFMCommunicate request_size=4 [17:19:52]MH_SAM_APDU [17:19:52]CAPDU: 80 17 00 00 [17:19:52]Write to MH i2c: E2 08 00 2F 31 80 17 00 00 00 00 00 00 E0 [17:19:52]Write i2c OK [17:19:52]MH_I2C_Read... [17:19:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:19:52]Read from MH i2c: E2 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: E2 E2 00 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: E2 E2 00 2F 31 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BE [17:19:52]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:19:52]wFMCommunicate OK [17:19:52]SAM_PROTO_GetFMData done [17:19:52]requested_item fm.sale_refund.total is exist - process it [17:19:52]requested_item fm.buy.total is exist - process it [17:19:52]requested_item shift.sale.total is exist - process it [17:19:52]SAM_PROTO_GetShiftData [17:19:52]wFMCommunicate request_size=4 [17:19:52]MH_SAM_APDU [17:19:52]CAPDU: 80 13 02 00 [17:19:52]Write to MH i2c: E2 08 00 30 31 80 13 02 00 00 00 00 00 DF [17:19:52]Write i2c OK [17:19:52]MH_I2C_Read... [17:19:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:19:53]Read from MH i2c: E2 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 FD 00 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 FD 00 30 31 00 B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 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 BA 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 0E [17:19:53]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 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 BA 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [17:19:53]wFMCommunicate OK [17:19:53]wFMCommunicate request_size=4 [17:19:53]MH_SAM_APDU [17:19:53]CAPDU: 80 17 00 00 [17:19:53]Write to MH i2c: E2 08 00 31 31 80 17 00 00 00 00 00 00 E2 [17:19:53]Write i2c OK [17:19:53]MH_I2C_Read... [17:19:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:19:53]Read from MH i2c: E2 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 FD 00 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 FD 00 31 31 00 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 65 [17:19:53]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [17:19:53]wFMCommunicate OK [17:19:53]wFMCommunicate request_size=4 [17:19:53]MH_SAM_APDU [17:19:53]CAPDU: 80 17 00 00 [17:19:53]Write to MH i2c: E2 08 00 32 31 80 17 00 00 00 00 00 00 E3 [17:19:53]Write i2c OK [17:19:53]MH_I2C_Read... [17:19:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:19:53]Read from MH i2c: E2 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 FD 00 [17:19:53]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 FD 00 32 31 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 85 [17:19:54]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [17:19:54]wFMCommunicate OK [17:19:54]wFMCommunicate request_size=4 [17:19:54]MH_SAM_APDU [17:19:54]CAPDU: 80 17 00 00 [17:19:54]Write to MH i2c: E2 08 00 33 31 80 17 00 00 00 00 00 00 E4 [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:19:54]Read from MH i2c: E2 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 FD 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 FD 00 33 31 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 6D [17:19:54]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [17:19:54]wFMCommunicate OK [17:19:54]wFMCommunicate request_size=4 [17:19:54]MH_SAM_APDU [17:19:54]CAPDU: 80 17 00 00 [17:19:54]Write to MH i2c: E2 08 00 34 31 80 17 00 00 00 00 00 00 E5 [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [17:19:54]Read from MH i2c: E2 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 D5 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 D5 00 34 31 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C6 [17:19:54]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:19:54]wFMCommunicate OK [17:19:54]SAM_PROTO_GetShiftData done [17:19:54]requested_item shift.sale.total_cash is exist - process it [17:19:54]requested_item shift.sale_refund.total is exist - process it [17:19:54]requested_item shift.sale_refund.total_cash is exist - process it [17:19:54]requested_item shift.buy.total is exist - process it [17:19:54]requested_item shift.buy.total_cash is exist - process it [17:19:54]produce_requested_data done [17:19:54]produce_requested_data return {"fm.sale.total":20005948.61,"fm.sale_refund.total":589938.00,"fm.buy.total":0.00,"shift.sale.total":28856.00,"shift.sale.total_cash":23416.00,"shift.sale_refund.total":1533.00,"shift.sale_refund.total_cash":1533.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:19:54]process_action_free get_value [17:19:54]json_value_free [17:19:54]json_value_free done [17:19:54]process_json_proto returns [17:19:54]Send response to host [17:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20005948.61,"fm.sale_refund.total":589938.00,"fm.buy.total":0.00,"shift.sale.total":28856.00,"shift.sale.total_cash":23416.00,"shift.sale_refund.total":1533.00,"shift.sale_refund.total_cash":1533.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:19:54]free response buf [17:19:54]execute_script done [17:19:54]execute_script returns [17:19:54]free content buf [17:19:54]Sock 8.Close socket [17:19:54]Sock 8.Thread stoped [17:19:54]accept exits with 9 [17:19:54]New connection [17:19:54]New thread 3067276644 created [17:19:54]Thread 3067133284 joined [17:19:54]Waiting for new connection... [17:19:54] Sock 9.Parse request [17:19:54]Sock 9.Check first char [17:19:54]Sock 9.First char is OK [17:19:54]request: POST /json_proto HTTP/1.0 [17:19:54]Method: POST [17:19:54]URL: /json_proto [17:19:54]Method is POST - this is cgi request [17:19:54]url: /json_proto [17:19:54]query_string will be loaded in cgi processing [17:19:54]execute_cgi json_proto POST (null) [17:19:54]execute_cgi path=json_proto method=POST [17:19:54]POST find Content-Length [17:19:54]Host: 172.17.60.69:8080 [17:19:54]Content-Length: 331 [17:19:54]Content-Type: application/json [17:19:54] [17:19:54]POST finish read [17:19:54]Found Content-Length = 331 [17:19:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:19:54]execute_script... [17:19:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:19:54]POST & json_proto [17:19:54]process_json_proto [17:19:54]json parsed OK: [17:19:54]protocol is kg_v1.0 [17:19:54]action value=get_value [17:19:54]process_action get_value [17:19:54]cmd_get_value [17:19:54]process_action get_value done [17:19:54]requested_data is exist [17:19:54]produce_requested_data [17:19:54]requested_item fm.sale.total is exist - process it [17:19:54]SAM_PROTO_GetFMData [17:19:54]wFMCommunicate request_size=4 [17:19:54]MH_SAM_APDU [17:19:54]CAPDU: 80 13 03 00 [17:19:54]Write to MH i2c: E2 08 00 35 31 80 13 03 00 00 00 00 00 E5 [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:19:55]Read from MH i2c: E2 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: E2 FD 00 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: E2 FD 00 35 31 00 C5 04 85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F EF 03 09 90 00 6E [17:19:55]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F EF 03 09 90 00 [17:19:55]wFMCommunicate OK [17:19:55]wFMCommunicate request_size=4 [17:19:55]MH_SAM_APDU [17:19:55]CAPDU: 80 17 00 00 [17:19:55]Write to MH i2c: E2 08 00 36 31 80 17 00 00 00 00 00 00 E7 [17:19:55]Write i2c OK [17:19:55]MH_I2C_Read... [17:19:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:19:55]Read from MH i2c: E2 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: E2 FD 00 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: E2 FD 00 36 31 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 E3 [17:19:55]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:19:55]wFMCommunicate OK [17:19:55]wFMCommunicate request_size=4 [17:19:55]MH_SAM_APDU [17:19:55]CAPDU: 80 17 00 00 [17:19:55]Write to MH i2c: E2 08 00 37 31 80 17 00 00 00 00 00 00 E8 [17:19:55]Write i2c OK [17:19:55]MH_I2C_Read... [17:19:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:19:55]Read from MH i2c: E2 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: E2 FD 00 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: E2 FD 00 37 31 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 FA [17:19:55]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:19:55]wFMCommunicate OK [17:19:55]wFMCommunicate request_size=4 [17:19:55]MH_SAM_APDU [17:19:55]CAPDU: 80 17 00 00 [17:19:55]Write to MH i2c: E2 08 00 38 31 80 17 00 00 00 00 00 00 E9 [17:19:55]Write i2c OK [17:19:55]MH_I2C_Read... [17:19:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:19:56]Read from MH i2c: E2 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 FD 00 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 FD 00 38 31 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 75 [17:19:56]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:19:56]wFMCommunicate OK [17:19:56]wFMCommunicate request_size=4 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 80 17 00 00 [17:19:56]Write to MH i2c: E2 08 00 39 31 80 17 00 00 00 00 00 00 EA [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:19:56]Read from MH i2c: E2 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 E2 00 [17:19:56]MH_I2C_Read... [17:19:56]OFD Sender: No OFD packet to send [17:19:56]Read from MH i2c: E2 E2 00 39 31 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 [17:19:56]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:19:56]wFMCommunicate OK [17:19:56]SAM_PROTO_GetFMData done [17:19:56]requested_item fm.sale_refund.total is exist - process it [17:19:56]requested_item fm.buy.total is exist - process it [17:19:56]requested_item shift.sale.total is exist - process it [17:19:56]SAM_PROTO_GetShiftData [17:19:56]wFMCommunicate request_size=4 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 80 13 02 00 [17:19:56]Write to MH i2c: E2 08 00 3A 31 80 13 02 00 00 00 00 00 E9 [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:19:57]Read from MH i2c: E2 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 FD 00 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 FD 00 3A 31 00 B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 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 BA 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 18 [17:19:57]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 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 BA 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [17:19:57]wFMCommunicate OK [17:19:57]wFMCommunicate request_size=4 [17:19:57]MH_SAM_APDU [17:19:57]CAPDU: 80 17 00 00 [17:19:57]Write to MH i2c: E2 08 00 3B 31 80 17 00 00 00 00 00 00 EC [17:19:57]Write i2c OK [17:19:57]MH_I2C_Read... [17:19:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:19:57]Read from MH i2c: E2 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 FD 00 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 FD 00 3B 31 00 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 6F [17:19:57]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [17:19:57]wFMCommunicate OK [17:19:57]wFMCommunicate request_size=4 [17:19:57]MH_SAM_APDU [17:19:57]CAPDU: 80 17 00 00 [17:19:57]Write to MH i2c: E2 08 00 3C 31 80 17 00 00 00 00 00 00 ED [17:19:57]Write i2c OK [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 [17:19:57]MH_I2C_Read... [17:19:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:19:57]Read from MH i2c: E2 FD 00 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 FD 00 3C 31 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 8F [17:19:58]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [17:19:58]wFMCommunicate OK [17:19:58]wFMCommunicate request_size=4 [17:19:58]MH_SAM_APDU [17:19:58]CAPDU: 80 17 00 00 [17:19:58]Write to MH i2c: E2 08 00 3D 31 80 17 00 00 00 00 00 00 EE [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:19:58]Read from MH i2c: E2 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: E2 FD 00 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: E2 FD 00 3D 31 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 77 [17:19:58]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [17:19:58]wFMCommunicate OK [17:19:58]wFMCommunicate request_size=4 [17:19:58]MH_SAM_APDU [17:19:58]CAPDU: 80 17 00 00 [17:19:58]Write to MH i2c: E2 08 00 3E 31 80 17 00 00 00 00 00 00 EF [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [17:19:58]Read from MH i2c: E2 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: E2 D5 00 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: E2 D5 00 3E 31 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D0 [17:19:58]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:19:58]wFMCommunicate OK [17:19:58]SAM_PROTO_GetShiftData done [17:19:58]requested_item shift.sale.total_cash is exist - process it [17:19:58]requested_item shift.sale_refund.total is exist - process it [17:19:58]requested_item shift.sale_refund.total_cash is exist - process it [17:19:58]requested_item shift.buy.total is exist - process it [17:19:58]requested_item shift.buy.total_cash is exist - process it [17:19:58]produce_requested_data done [17:19:58]produce_requested_data return {"fm.sale.total":20005948.61,"fm.sale_refund.total":589938.00,"fm.buy.total":0.00,"shift.sale.total":28856.00,"shift.sale.total_cash":23416.00,"shift.sale_refund.total":1533.00,"shift.sale_refund.total_cash":1533.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:19:58]process_action_free get_value [17:19:58]json_value_free [17:19:58]json_value_free done [17:19:58]process_json_proto returns [17:19:58]Send response to host [17:19:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20005948.61,"fm.sale_refund.total":589938.00,"fm.buy.total":0.00,"shift.sale.total":28856.00,"shift.sale.total_cash":23416.00,"shift.sale_refund.total":1533.00,"shift.sale_refund.total_cash":1533.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:19:58]free response buf [17:19:58]execute_script done [17:19:58]execute_script returns [17:19:58]free content buf [17:19:58]Sock 9.Close socket [17:19:58]Sock 9.Thread stoped [17:19:58]accept exits with 8 [17:19:58]New connection [17:19:58]New thread 3067133284 created [17:19:58]Thread 3067276644 joined [17:19:58]Waiting for new connection... [17:19:58] Sock 8.Parse request [17:19:58]Sock 8.Check first char [17:19:58]Sock 8.First char is OK [17:19:58]request: POST /json_proto HTTP/1.0 [17:19:58]Method: POST [17:19:58]URL: /json_proto [17:19:58]Method is POST - this is cgi request [17:19:58]url: /json_proto [17:19:58]query_string will be loaded in cgi processing [17:19:58]execute_cgi json_proto POST (null) [17:19:58]execute_cgi path=json_proto method=POST [17:19:58]POST find Content-Length [17:19:58]Host: 172.17.60.69:8080 [17:19:58]Content-Length: 280 [17:19:58]Content-Type: application/json [17:19:58] [17:19:58]POST finish read [17:19:58]Found Content-Length = 280 [17:19:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:58]execute_script... [17:19:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:58]POST & json_proto [17:19:58]process_json_proto [17:19:58]json parsed OK: [17:19:58]protocol is kg_v1.0 [17:19:58]action value=x_report [17:19:58]process_action x_report [17:19:58]cmd_x_report [17:19:58]MH_GetDate [17:19:58]Write to MH i2c: F0 00 00 3F 31 5F [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: F0 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: F0 09 00 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: F0 09 00 3F 31 00 43 9E 60 66 D2 83 5F 66 29 [17:19:58]GetLastDocTimeStamp 1717607717 [17:19:58]current date 1717608003 [17:19:58]FM_GetShiftState [17:19:58]SAM_PROTO_GetShiftState [17:19:58]wFMCommunicate request_size=4 [17:19:58]MH_SAM_APDU [17:19:58]CAPDU: 80 13 01 00 [17:19:58]Write to MH i2c: E2 08 00 40 31 80 13 01 00 00 00 00 00 EE [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 0E 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 0E 00 40 31 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 2F [17:19:59]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [17:19:59]wFMCommunicate OK [17:19:59]SAM_PROTO_GetShiftState done [17:19:59]FM_GetShiftState done [17:19:59]KKMCreateXReportDocument [17:19:59]Load OK [17:19:59]Malloc new data [17:19:59]MH_GetDate [17:19:59]Write to MH i2c: F0 00 00 41 31 61 [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: F0 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: F0 09 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: F0 09 00 41 31 00 43 9E 60 66 D2 83 5F 66 2B [17:19:59]Malloc new data [17:19:59]Malloc new data [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 11 00 00 [17:19:59]Write to MH i2c: E2 08 00 42 31 80 11 00 00 00 00 00 00 ED [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 17 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 17 00 42 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3F [17:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:19:59]wFMCommunicate OK [17:19:59]SAM_PROTO_GetFieldsCounters [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 13 00 00 [17:19:59]Write to MH i2c: E2 08 00 43 31 80 13 00 00 00 00 00 00 F0 [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 62 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 62 00 43 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CC FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [17:19:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CC FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:59]wFMCommunicate OK [17:19:59]SAM_PROTO_GetFieldsCounters done [17:19:59]Malloc new data [17:19:59]Malloc new data [17:19:59]Malloc new data [17:19:59]KKMCreateXReportDocument OK [17:19:59]KKMSetXReportData OK [17:19:59]KKMPrepareXReportFMData [17:19:59]SAM_PROTO_GetShiftData [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 13 02 00 [17:19:59]Write to MH i2c: E2 08 00 44 31 80 13 02 00 00 00 00 00 F3 [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 FD 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 FD 00 44 31 00 B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 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 BA 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 22 [17:19:59]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 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 BA 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [17:19:59]wFMCommunicate OK [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 17 00 00 [17:19:59]Write to MH i2c: E2 08 00 45 31 80 17 00 00 00 00 00 00 F6 [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:20:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:00]Read from MH i2c: E2 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 FD 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 FD 00 45 31 00 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 79 [17:20:00]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [17:20:00]wFMCommunicate OK [17:20:00]wFMCommunicate request_size=4 [17:20:00]MH_SAM_APDU [17:20:00]CAPDU: 80 17 00 00 [17:20:00]Write to MH i2c: E2 08 00 46 31 80 17 00 00 00 00 00 00 F7 [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:00]Read from MH i2c: E2 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 FD 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 FD 00 46 31 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 99 [17:20:00]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [17:20:00]wFMCommunicate OK [17:20:00]wFMCommunicate request_size=4 [17:20:00]MH_SAM_APDU [17:20:00]CAPDU: 80 17 00 00 [17:20:00]Write to MH i2c: E2 08 00 47 31 80 17 00 00 00 00 00 00 F8 [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:01]Read from MH i2c: E2 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 FD 00 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 FD 00 47 31 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 81 [17:20:01]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [17:20:01]wFMCommunicate OK [17:20:01]wFMCommunicate request_size=4 [17:20:01]MH_SAM_APDU [17:20:01]CAPDU: 80 17 00 00 [17:20:01]Write to MH i2c: E2 08 00 48 31 80 17 00 00 00 00 00 00 F9 [17:20:01]Write i2c OK [17:20:01]MH_I2C_Read... [17:20:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [17:20:01]Read from MH i2c: E2 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 D5 00 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 D5 00 48 31 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:20:01]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 OFD Sender: No OFD packet to send [17:20:01]00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:20:01]wFMCommunicate OK [17:20:01]SAM_PROTO_GetShiftData done [17:20:01]1194 (1204) - счетчики итогов смены [17:20:01] 1134 (4) - 124 - количество чеков со всеми признаками расчетов [17:20:01] 1129 (155) - счетчики операций «приход» [17:20:01] 1135 (4) - 121 - количество чеков по признаку расчетов [17:20:01] 1201 (3) - 28856.00 - общая итоговая сумма в чеках [17:20:01] 1136 (3) - 23416.00 - итоговая сумма в чеках наличными [17:20:01] 1138 (3) - 5440.00 - итоговая сумма в чеках безналичными [17:20:01] 1024 (122) - суммы налогов [17:20:01] 1006 (9) - суммы НДС [17:20:01] 1010 (1) - 0% - код ставки НДС [17:20:01] 1011 (0) - 0.00 - сумма НДС по ставке [17:20:01] 1006 (12) - суммы НДС [17:20:01] 1010 (1) - 12% - код ставки НДС [17:20:01] 1011 (3) - 3064.58 - сумма НДС по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 0% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (11) - суммы НСП [17:20:01] 1014 (1) - 1% - код ставки НСП [17:20:01] 1015 (2) - 255.30 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 2% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 3% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 5% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 0,50% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 1,50% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1130 (151) - счетчики операций «возврат прихода» [17:20:01] 1135 (4) - 3 - количество чеков по признаку расчетов [17:20:01] 1201 (3) - 1533.00 - общая итоговая сумма в чеках [17:20:01] 1136 (3) - 1533.00 - итоговая сумма в чеках наличными [17:20:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:20:01] 1024 (121) - суммы налогов [17:20:01] 1006 (9) - суммы НДС [17:20:01] 1010 (1) - 0% - код ставки НДС [17:20:01] 1011 (0) - 0.00 - сумма НДС по ставке [17:20:01] 1006 (11) - суммы НДС [17:20:01] 1010 (1) - 12% - код ставки НДС [17:20:01] 1011 (2) - 162.89 - сумма НДС по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 0% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (11) - суммы НСП [17:20:01] 1014 (1) - 1% - код ставки НСП [17:20:01] 1015 (2) - 13.57 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 2% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 3% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 5% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 0,50% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 1,50% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1131 (141) - счетчики операций «расход» [17:20:01] 1135 (4) - 0 - количество чеков по признаку расчетов [17:20:01] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:20:01] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:20:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:20:01] 1024 (117) - суммы налогов [17:20:01] 1006 (9) - суммы НДС [17:20:01] 1010 (1) - 0% - код ставки НДС [17:20:01] 1011 (0) - 0.00 - сумма НДС по ставке [17:20:01] 1006 (9) - суммы НДС [17:20:01] 1010 (1) - 12% - код ставки НДС [17:20:01] 1011 (0) - 0.00 - сумма НДС по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 0% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 1% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 2% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 3% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 5% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 0,50% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 1,50% - код ставки НСП [17:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:01] 1132 (141) - счетчики операций «возврат расхода» [17:20:01] 1135 (4) - 0 - количество чеков по признаку расчетов [17:20:01] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:20:01] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:20:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:20:01] 1024 (117) - суммы налогов [17:20:01] 1006 (9) - суммы НДС [17:20:01] 1010 (1) - 0% - код ставки НДС [17:20:01] 1011 (0) - 0.00 - сумма НДС по ставке [17:20:01] 1006 (9) - суммы НДС [17:20:01] 1010 (1) - 12% - код ставки НДС [17:20:01] 1011 (0) - 0.00 - сумма НДС по ставке [17:20:01] 1007 (9) - суммы НСП [17:20:01] 1014 (1) - 0% - код ставки НСП [17:20:02] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:02] 1007 (9) - суммы НСП [17:20:02] 1014 (1) - 1% - код ставки НСП [17:20:02] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:02] 1007 (9) - суммы НСП [17:20:02] 1014 (1) - 2% - код ставки НСП [17:20:02] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:02] 1007 (9) - суммы НСП [17:20:02] 1014 (1) - 3% - код ставки НСП [17:20:02] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:02] 1007 (9) - суммы НСП [17:20:02] 1014 (1) - 5% - код ставки НСП [17:20:02] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:02] 1007 (9) - суммы НСП [17:20:02] 1014 (1) - 0,50% - код ставки НСП [17:20:02] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:02] 1007 (9) - суммы НСП [17:20:02] 1014 (1) - 1,50% - код ставки НСП [17:20:02] 1015 (0) - 0.00 - сумма НСП по ставке [17:20:02] 1133 (588) - - счетчики коррекции - не используются [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1194 (04AA) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1134 (046E) [17:20:02]Malloc new data [17:20:02]Processing tag 1129 (0469) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1135 (046F) [17:20:02]Malloc new data [17:20:02]Processing tag 1201 (04B1) [17:20:02]Malloc new data [17:20:02]Processing tag 1136 (0470) [17:20:02]Malloc new data [17:20:02]Processing tag 1138 (0472) [17:20:02]Malloc new data [17:20:02]Processing tag 1024 (0400) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1006 (03EE) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1010 (03F2) [17:20:02]Malloc new data [17:20:02]Processing tag 1011 (03F3) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1006 (03EE) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1010 (03F2) [17:20:02]Malloc new data [17:20:02]Processing tag 1011 (03F3) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]SetTLVBufToDocument err=0 [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1130 (046A) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1135 (046F) [17:20:02]Malloc new data [17:20:02]Processing tag 1201 (04B1) [17:20:02]Malloc new data [17:20:02]Processing tag 1136 (0470) [17:20:02]Malloc new data [17:20:02]Processing tag 1138 (0472) [17:20:02]Malloc new data [17:20:02]Processing tag 1024 (0400) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1006 (03EE) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1010 (03F2) [17:20:02]Malloc new data [17:20:02]Processing tag 1011 (03F3) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1006 (03EE) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1010 (03F2) [17:20:02]Malloc new data [17:20:02]Processing tag 1011 (03F3) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]SetTLVBufToDocument err=0 [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1131 (046B) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1135 (046F) [17:20:02]Malloc new data [17:20:02]Processing tag 1201 (04B1) [17:20:02]Malloc new data [17:20:02]Processing tag 1136 (0470) [17:20:02]Malloc new data [17:20:02]Processing tag 1138 (0472) [17:20:02]Malloc new data [17:20:02]Processing tag 1024 (0400) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1006 (03EE) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1010 (03F2) [17:20:02]Malloc new data [17:20:02]Processing tag 1011 (03F3) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1006 (03EE) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1010 (03F2) [17:20:02]Malloc new data [17:20:02]Processing tag 1011 (03F3) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]SetTLVBufToDocument err=0 [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1132 (046C) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1135 (046F) [17:20:02]Malloc new data [17:20:02]Processing tag 1201 (04B1) [17:20:02]Malloc new data [17:20:02]Processing tag 1136 (0470) [17:20:02]Malloc new data [17:20:02]Processing tag 1138 (0472) [17:20:02]Malloc new data [17:20:02]Processing tag 1024 (0400) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1006 (03EE) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1010 (03F2) [17:20:02]Malloc new data [17:20:02]Processing tag 1011 (03F3) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1006 (03EE) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1010 (03F2) [17:20:02]Malloc new data [17:20:02]Processing tag 1011 (03F3) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1007 (03EF) [17:20:02]Load OK [17:20:02]SetTLVBufToDocument [17:20:02]Processing tag 1014 (03F6) [17:20:02]Malloc new data [17:20:02]Processing tag 1015 (03F7) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]SetTLVBufToDocument err=0 [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Processing tag 1133 (046D) [17:20:02]Malloc new data [17:20:02]SetTLVBufToDocument err=0 [17:20:02]SetTLVBufToDocument err=0 [17:20:02]Malloc new data [17:20:02]SAM_PROTO_GetFMData [17:20:02]wFMCommunicate request_size=4 [17:20:02]MH_SAM_APDU [17:20:02]CAPDU: 80 13 03 00 [17:20:02]Write to MH i2c: E2 08 00 49 31 80 13 03 00 00 00 00 00 F9 [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 FD 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 FD 00 49 31 00 C5 04 85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F EF 03 09 90 00 82 [17:20:03]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F EF 03 09 90 00 [17:20:03]wFMCommunicate OK [17:20:03]wFMCommunicate request_size=4 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 17 00 00 [17:20:03]Write to MH i2c: E2 08 00 4A 31 80 17 00 00 00 00 00 00 FB [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 FD 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 FD 00 4A 31 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 F7 [17:20:04]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:20:04]wFMCommunicate OK [17:20:04]wFMCommunicate request_size=4 [17:20:04]MH_SAM_APDU [17:20:04]CAPDU: 80 17 00 00 [17:20:04]Write to MH i2c: E2 08 00 4B 31 80 17 00 00 00 00 00 00 FC [17:20:04]Write i2c OK [17:20:04]MH_I2C_Read... [17:20:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:04]Read from MH i2c: E2 [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: E2 FD 00 [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: E2 FD 00 4B 31 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 0E [17:20:04]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:20:04]wFMCommunicate OK [17:20:04]wFMCommunicate request_size=4 [17:20:04]MH_SAM_APDU [17:20:04]CAPDU: 80 17 00 00 [17:20:04]Write to MH i2c: E2 08 00 4C 31 80 17 00 00 00 00 00 00 FD [17:20:04]Write i2c OK [17:20:04]MH_I2C_Read... [17:20:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:04]Read from MH i2c: E2 [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: E2 FD 00 [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: E2 FD 00 4C 31 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 89 [17:20:05]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:20:05]wFMCommunicate OK [17:20:05]wFMCommunicate request_size=4 [17:20:05]MH_SAM_APDU [17:20:05]CAPDU: 80 17 00 00 [17:20:05]Write to MH i2c: E2 08 00 4D 31 80 17 00 00 00 00 00 00 FE [17:20:05]Write i2c OK [17:20:05]MH_I2C_Read... [17:20:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:20:05]Read from MH i2c: E2 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 E2 00 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 E2 00 4D 31 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DC [17:20:05]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:20:05]wFMCommunicate OK [17:20:05]SAM_PROTO_GetFMData done [17:20:05]FM_GetFMData:85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F 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 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [17:20:06]oper:6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 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 [17:20:06]total:AD A7 3E 77 [17:20:06]Malloc new data [17:20:06]oper:6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F 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 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [17:20:06]total:88 2C 84 03 [17:20:06]Malloc new data [17:20:06]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 [17:20:06]total: [17:20:06]Malloc new data [17:20:06]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 [17:20:06]total: [17:20:06]Malloc new data [17:20:06]KKMPrepareXReportFMData err=0 [17:20:06]Х отчет ИНН: 02508201610067 Кассир: Койгельдиева Р. 05.06.2024 17:20 Смена: 266 РНМ: 0000000000092737 ЗНМ: 0300000031 СНО: Общий режим Всего чеков: 124 ИТОГИ ПРИХОД Чеков: 121 Общий итог: 28856.00 Итого наличными: 23416.00 Итого безнал.: 5440.00 НДС 0% : 0.00 НДС 12% : 3064.58 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 255.30 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 1533.00 Итого наличными: 1533.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 162.89 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 13.57 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 21883.00 НС Приход: 20005948.61 НС Возвр.Прихода: 589938.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875074 [17:20:06]StoreToDocumentArchive [17:20:06]MH_GetDate [17:20:06]Write to MH i2c: F0 00 00 4E 31 6E [17:20:06]Write i2c OK [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: F0 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: F0 09 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: F0 09 00 4E 31 00 4B 9E 60 66 D2 83 5F 66 40 [17:20:06]shift 266 fd 1717608011 [17:20:06]Create dir for shift 0266 [17:20:06]save to /storage/0266/doc_1717608011 [17:20:06]save last doc name /storage/0266/doc_1717608011 to /storage/kkm_last_doc_name [17:20:06]save OK [17:20:06]Clear old archive folders... [17:20:06]NVStorageSaveData kkm_last_timestamp [17:20:06]File name is /storage/kkm_last_timestamp [17:20:06]Write 4 bytes [17:20:06]NVStorageSaveData done [17:20:06]ExternCall_PrintAddStr [17:20:06]wPrintStart [17:20:06]Write to MH i2c: 01 00 00 4F 31 80 [17:20:06]Write i2c OK [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: 01 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: 01 07 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: 01 07 00 4F 31 00 00 00 00 00 FF 0F 95 [17:20:06]RasterBufferAndPrint [17:20:06]line Х отчет [17:20:06]line ИНН: 02508201610067 [17:20:06]line Кассир: Койгельдиева Р. [17:20:06]line 05.06.2024 17:20 [17:20:06]line Смена: 266 [17:20:06]line РНМ: 0000000000092737 [17:20:06]line ЗНМ: 0300000031 [17:20:06]line СНО: Общий режим [17:20:06]line Всего чеков: 124 [17:20:06]line ИТОГИ ПРИХОД [17:20:06]line Чеков: 121 [17:20:06]line Общий итог: 28856.00 [17:20:06]line Итого наличными: 23416.00 [17:20:06]line Итого безнал.: 5440.00 [17:20:06]line НДС 0% : 0.00 [17:20:06]line НДС 12% : 3064.58 [17:20:06]line НСП 0% : 0.00 [17:20:06]line НСП 1,50% : 0.00 [17:20:06]line НСП 0,50% : 0.00 [17:20:06]line НСП 5% : 0.00 [17:20:06]line НСП 3% : 0.00 [17:20:06]line НСП 2% : 0.00 [17:20:06]line НСП 1% : 255.30 [17:20:06]line ИТОГИ ВОЗВРАТ ПРИХОДА [17:20:06]line Чеков: 3 [17:20:06]line Общий итог: 1533.00 [17:20:06]line Итого наличными: 1533.00 [17:20:06]line Итого безнал.: 0.00 [17:20:06]line НДС 0% : 0.00 [17:20:06]line НДС 12% : 162.89 [17:20:06]line НСП 0% : 0.00 [17:20:06]line НСП 1,50% : 0.00 [17:20:06]line НСП 0,50% : 0.00 [17:20:06]line НСП 5% : 0.00 [17:20:06]line НСП 3% : 0.00 [17:20:06]line НСП 2% : 0.00 [17:20:06]line НСП 1% : 13.57 [17:20:06]line ИТОГИ РАСХОД [17:20:06]line Чеков: 0 [17:20:06]line Общий итог: 0.00 [17:20:06]line Итого наличными: 0.00 [17:20:06]line Итого безнал.: 0.00 [17:20:06]line НДС 0% : 0.00 [17:20:06]line НДС 12% : 0.00 [17:20:06]line НСП 0% : 0.00 [17:20:06]line НСП 1,50% : 0.00 [17:20:06]line НСП 0,50% : 0.00 [17:20:06]OFD Sender: No OFD packet to send [17:20:06]line НСП 5% : 0.00 [17:20:06]line НСП 3% : 0.00 [17:20:06]line НСП 2% : 0.00 [17:20:06]line НСП 1% : 0.00 [17:20:06]line ИТОГИ ВОЗВРАТ РАСХОДА [17:20:06]line Чеков: 0 [17:20:06]line Общий итог: 0.00 [17:20:06]line Итого наличными: 0.00 [17:20:06]line Итого безнал.: 0.00 [17:20:06]line НДС 0% : 0.00 [17:20:06]line НДС 12% : 0.00 [17:20:06]line НСП 0% : 0.00 [17:20:06]line НСП 1,50% : 0.00 [17:20:06]line НСП 0,50% : 0.00 [17:20:06]line НСП 5% : 0.00 [17:20:06]line НСП 3% : 0.00 [17:20:06]line НСП 2% : 0.00 [17:20:06]line НСП 1% : 0.00 [17:20:06]line Сумма внесений: 0.00 [17:20:06]line Сумма выплат: 0.00 [17:20:06]line Нал. в кассе: 21883.00 [17:20:06]line НС Приход: 20005948.61 [17:20:06]line НС Возвр.Прихода: 589938.00 [17:20:06]line НС Расход: 0.00 [17:20:06]line НС Возвр.Расхода: 0.00 [17:20:06]line ФМ: 0000000000875074 [17:20:06]written 0, free lines is 4095 [17:20:07]Write to MH i2c: 01 00 00 9A 31 CB [17:20:07]Write i2c OK [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: 01 [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: 01 07 00 [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: 01 07 00 9A 31 00 00 00 00 00 A5 0A 81 [17:20:07]RasterBufferAndPrint [17:20:07]line [17:20:07]line [17:20:07]line [17:20:07]line [17:20:07]line [17:20:07]written 0, free lines is 2759 [17:20:07]MH_Cut [17:20:07]Write to MH i2c: D1 01 00 A1 31 01 A4 [17:20:07]Write i2c OK [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: D1 [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: D1 01 00 [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: D1 01 00 A1 31 00 A3 [17:20:07]Write to MH i2c: 01 00 00 A2 31 D3 [17:20:07]Write i2c OK [17:20:07]MH_I2C_Read... [17:20:08]*** Cut start [17:20:08]*** Partial cut [17:20:08]*** CUTSNS_PIN = 1 [17:20:08]*** CUTSNS_PIN = 0 [17:20:08]*** Brake cut motor [17:20:09]Read from MH i2c: 01 [17:20:09]MH_I2C_Read... [17:20:09]*** Stop cut motor [17:20:09]*** Cut end [17:20:09]Read from MH i2c: 01 07 00 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: 01 07 00 A2 31 00 00 00 00 00 FF 0F E8 [17:20:09]process_action x_report done [17:20:09]requested_data is exist [17:20:09]produce_requested_data [17:20:09]requested_item fd.num is exist - process it [17:20:09]SAM_PROTO_GetFieldsCounters [17:20:09]wFMCommunicate request_size=4 [17:20:09]MH_SAM_APDU [17:20:09]CAPDU: 80 13 00 00 [17:20:09]Write to MH i2c: E2 08 00 A3 31 80 13 00 00 00 00 00 00 50 [17:20:09]Write i2c OK [17:20:09]MH_I2C_Read... [17:20:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:09]Read from MH i2c: E2 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 62 00 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 62 00 A3 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CC FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [17:20:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CC FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:09]wFMCommunicate OK [17:20:09]SAM_PROTO_GetFieldsCounters done [17:20:09]requested_item shift.num is exist - process it [17:20:09]requested_item shift.opened is exist - process it [17:20:09]req_shift_opened [17:20:09]FM_GetShiftState [17:20:09]SAM_PROTO_GetShiftState [17:20:09]wFMCommunicate request_size=4 [17:20:09]MH_SAM_APDU [17:20:09]CAPDU: 80 13 01 00 [17:20:09]Write to MH i2c: E2 08 00 A4 31 80 13 01 00 00 00 00 00 52 [17:20:09]Write i2c OK [17:20:09]MH_I2C_Read... [17:20:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:09]Read from MH i2c: E2 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 0E 00 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 0E 00 A4 31 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 93 [17:20:09]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [17:20:09]wFMCommunicate OK [17:20:09]SAM_PROTO_GetShiftState done [17:20:09]FM_GetShiftState done [17:20:09]req_shift_opened done [17:20:09]requested_item shift.open_date is exist - process it [17:20:09]req_shift_open_date [17:20:09]req_shift_open_date done [17:20:09]produce_requested_data done [17:20:09]produce_requested_data return {"fd.num":64204,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [17:20:09]process_action_free x_report [17:20:09]json_value_free [17:20:09]json_value_free done [17:20:09]process_json_proto returns [17:20:09]Send response to host [17:20:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":64204,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [17:20:09]free response buf [17:20:09]execute_script done [17:20:09]execute_script returns [17:20:09]free content buf [17:20:09]Sock 8.Close socket [17:20:09]Sock 8.Thread stoped [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:02]accept exits with 9 [17:21:02]New connection [17:21:02]New thread 3067276644 created [17:21:02]Thread 3067133284 joined [17:21:02]Waiting for new connection... [17:21:02] Sock 9.Parse request [17:21:02]Sock 9.Check first char [17:21:02]Sock 9.First char is OK [17:21:02]request: POST /json_proto HTTP/1.0 [17:21:02]Method: POST [17:21:02]URL: /json_proto [17:21:02]Method is POST - this is cgi request [17:21:02]url: /json_proto [17:21:02]query_string will be loaded in cgi processing [17:21:02]execute_cgi json_proto POST (null) [17:21:02]execute_cgi path=json_proto method=POST [17:21:02]POST find Content-Length [17:21:02]Host: 172.17.60.69:8080 [17:21:02]Content-Length: 215 [17:21:02]Content-Type: application/json [17:21:02] [17:21:02]POST finish read [17:21:02]Found Content-Length = 215 [17:21:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:02]execute_script... [17:21:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:02]POST & json_proto [17:21:02]process_json_proto [17:21:02]json parsed OK: [17:21:02]protocol is kg_v1.0 [17:21:02]action value=get_value [17:21:02]process_action get_value [17:21:02]cmd_get_value [17:21:02]process_action get_value done [17:21:02]requested_data is exist [17:21:02]produce_requested_data [17:21:02]requested_item kkm.sn is exist - process it [17:21:02]requested_item kkm.ver is exist - process it [17:21:02]requested_item fm.sn is exist - process it [17:21:02]wFMCommunicate request_size=4 [17:21:02]MH_SAM_APDU [17:21:02]CAPDU: 80 11 00 00 [17:21:02]Write to MH i2c: E2 08 00 A5 31 80 11 00 00 00 00 00 00 50 [17:21:02]Write i2c OK [17:21:02]MH_I2C_Read... [17:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:02]Read from MH i2c: E2 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 17 00 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 17 00 A5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A2 [17:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:21:02]wFMCommunicate OK [17:21:02]requested_item fd.num is exist - process it [17:21:02]SAM_PROTO_GetFieldsCounters [17:21:02]wFMCommunicate request_size=4 [17:21:02]MH_SAM_APDU [17:21:02]CAPDU: 80 13 00 00 [17:21:02]Write to MH i2c: E2 08 00 A6 31 80 13 00 00 00 00 00 00 53 [17:21:02]Write i2c OK [17:21:02]MH_I2C_Read... [17:21:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:02]Read from MH i2c: E2 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 62 00 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 62 00 A6 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CC FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [17:21:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CC FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:02]wFMCommunicate OK [17:21:02]SAM_PROTO_GetFieldsCounters done [17:21:02]requested_item shift.num is exist - process it [17:21:02]requested_item shift.opened is exist - process it [17:21:02]req_shift_opened [17:21:02]FM_GetShiftState [17:21:02]SAM_PROTO_GetShiftState [17:21:02]wFMCommunicate request_size=4 [17:21:02]MH_SAM_APDU [17:21:02]CAPDU: 80 13 01 00 [17:21:02]Write to MH i2c: E2 08 00 A7 31 80 13 01 00 00 00 00 00 55 [17:21:02]Write i2c OK [17:21:02]MH_I2C_Read... [17:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:02]Read from MH i2c: E2 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 0E 00 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 0E 00 A7 31 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 96 [17:21:02]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [17:21:02]wFMCommunicate OK [17:21:02]SAM_PROTO_GetShiftState done [17:21:02]FM_GetShiftState done [17:21:02]req_shift_opened done [17:21:02]requested_item shift.open_date is exist - process it [17:21:02]req_shift_open_date [17:21:02]req_shift_open_date done [17:21:02]produce_requested_data done [17:21:02]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64204,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [17:21:02]process_action_free get_value [17:21:02]json_value_free [17:21:02]json_value_free done [17:21:02]process_json_proto returns [17:21:02]Send response to host [17:21:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64204,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [17:21:02]free response buf [17:21:02]execute_script done [17:21:02]execute_script returns [17:21:02]free content buf [17:21:02]Sock 9.Close socket [17:21:02]Sock 9.Thread stoped [17:21:02]accept exits with 10 [17:21:02]New connection [17:21:02]New thread 3067133284 created [17:21:02]Thread 3067276644 joined [17:21:02]Waiting for new connection... [17:21:02] Sock 10.Parse request [17:21:02]Sock 10.Check first char [17:21:02]Sock 10.First char is OK [17:21:02]request: POST /json_proto HTTP/1.0 [17:21:02]Method: POST [17:21:02]URL: /json_proto [17:21:02]Method is POST - this is cgi request [17:21:02]url: /json_proto [17:21:02]query_string will be loaded in cgi processing [17:21:02]execute_cgi json_proto POST (null) [17:21:02]execute_cgi path=json_proto method=POST [17:21:02]POST find Content-Length [17:21:02]Host: 172.17.60.69:8080 [17:21:02]Content-Length: 331 [17:21:02]Content-Type: application/json [17:21:02] [17:21:02]POST finish read [17:21:02]Found Content-Length = 331 [17:21:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:21:02]execute_script... [17:21:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:21:02]POST & json_proto [17:21:02]process_json_proto [17:21:02]json parsed OK: [17:21:02]protocol is kg_v1.0 [17:21:02]action value=get_value [17:21:02]process_action get_value [17:21:02]cmd_get_value [17:21:02]process_action get_value done [17:21:02]requested_data is exist [17:21:02]produce_requested_data [17:21:02]requested_item fm.sale.total is exist - process it [17:21:02]SAM_PROTO_GetFMData [17:21:02]wFMCommunicate request_size=4 [17:21:02]MH_SAM_APDU [17:21:02]CAPDU: 80 13 03 00 [17:21:02]Write to MH i2c: E2 08 00 A8 31 80 13 03 00 00 00 00 00 58 [17:21:02]Write i2c OK [17:21:02]MH_I2C_Read... [17:21:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:21:03]Read from MH i2c: E2 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 FD 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 FD 00 A8 31 00 C5 04 85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F EF 03 09 90 00 E1 [17:21:03]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F EF 03 09 90 00 [17:21:03]wFMCommunicate OK [17:21:03]wFMCommunicate request_size=4 [17:21:03]MH_SAM_APDU [17:21:03]CAPDU: 80 17 00 00 [17:21:03]Write to MH i2c: E2 08 00 A9 31 80 17 00 00 00 00 00 00 5A [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:03]Read from MH i2c: E2 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 FD 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 FD 00 A9 31 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 56 [17:21:03]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:21:03]wFMCommunicate OK [17:21:03]wFMCommunicate request_size=4 [17:21:03]MH_SAM_APDU [17:21:03]CAPDU: 80 17 00 00 [17:21:03]Write to MH i2c: E2 08 00 AA 31 80 17 00 00 00 00 00 00 5B [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:03]Read from MH i2c: E2 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 FD 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 FD 00 AA 31 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 6D [17:21:03]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:21:03]wFMCommunicate OK [17:21:03]wFMCommunicate request_size=4 [17:21:03]MH_SAM_APDU [17:21:03]CAPDU: 80 17 00 00 [17:21:03]Write to MH i2c: E2 08 00 AB 31 80 17 00 00 00 00 00 00 5C [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:04]Read from MH i2c: E2 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 FD 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 FD 00 AB 31 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 E8 [17:21:04]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:21:04]wFMCommunicate OK [17:21:04]wFMCommunicate request_size=4 [17:21:04]MH_SAM_APDU [17:21:04]CAPDU: 80 17 00 00 [17:21:04]Write to MH i2c: E2 08 00 AC 31 80 17 00 00 00 00 00 00 5D [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:21:04]Read from MH i2c: E2 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 E2 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 E2 00 AC 31 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:21:04]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:21:04]wFMCommunicate OK [17:21:04]SAM_PROTO_GetFMData done [17:21:04]requested_item fm.sale_refund.total is exist - process it [17:21:04]requested_item fm.buy.total is exist - process it [17:21:04]requested_item shift.sale.total is exist - process it [17:21:04]SAM_PROTO_GetShiftData [17:21:04]wFMCommunicate request_size=4 [17:21:04]MH_SAM_APDU [17:21:04]CAPDU: 80 13 02 00 [17:21:04]Write to MH i2c: E2 08 00 AD 31 80 13 02 00 00 00 00 00 5C [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:21:04]Read from MH i2c: E2 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 FD 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 FD 00 AD 31 00 B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 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 BA 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 8B [17:21:04]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 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 BA 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [17:21:04]wFMCommunicate OK [17:21:04]wFMCommunicate request_size=4 [17:21:04]MH_SAM_APDU [17:21:04]CAPDU: 80 17 00 00 [17:21:04]Write to MH i2c: E2 08 00 AE 31 80 17 00 00 00 00 00 00 5F [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:05]Read from MH i2c: E2 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 FD 00 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 FD 00 AE 31 00 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 E2 [17:21:05]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [17:21:05]wFMCommunicate OK [17:21:05]wFMCommunicate request_size=4 [17:21:05]MH_SAM_APDU [17:21:05]CAPDU: 80 17 00 00 [17:21:05]Write to MH i2c: E2 08 00 AF 31 80 17 00 00 00 00 00 00 60 [17:21:05]Write i2c OK [17:21:05]MH_I2C_Read... [17:21:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:05]Read from MH i2c: E2 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 FD 00 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 FD 00 AF 31 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 02 [17:21:05]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [17:21:05]wFMCommunicate OK [17:21:05]wFMCommunicate request_size=4 [17:21:05]MH_SAM_APDU [17:21:05]CAPDU: 80 17 00 00 [17:21:05]Write to MH i2c: E2 08 00 B0 31 80 17 00 00 00 00 00 00 61 [17:21:05]Write i2c OK [17:21:05]MH_I2C_Read... [17:21:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:05]Read from MH i2c: E2 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 FD 00 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 FD 00 B0 31 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 EA [17:21:05]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [17:21:05]wFMCommunicate OK [17:21:05]wFMCommunicate request_size=4 [17:21:05]MH_SAM_APDU [17:21:05]CAPDU: 80 17 00 00 [17:21:05]Write to MH i2c: E2 08 00 B1 31 80 17 00 00 00 00 00 00 62 [17:21:05]Write i2c OK [17:21:05]MH_I2C_Read... [17:21:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [17:21:06]Read from MH i2c: E2 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 D5 00 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 D5 00 B1 31 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 43 [17:21:06]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:21:06]wFMCommunicate OK [17:21:06]SAM_PROTO_GetShiftData done [17:21:06]requested_item shift.sale.total_cash is exist - process it [17:21:06]requested_item shift.sale_refund.total is exist - process it [17:21:06]requested_item shift.sale_refund.total_cash is exist - process it [17:21:06]requested_item shift.buy.total is exist - process it [17:21:06]requested_item shift.buy.total_cash is exist - process it [17:21:06]produce_requested_data done [17:21:06]produce_requested_data return {"fm.sale.total":20005948.61,"fm.sale_refund.total":589938.00,"fm.buy.total":0.00,"shift.sale.total":28856.00,"shift.sale.total_cash":23416.00,"shift.sale_refund.total":1533.00,"shift.sale_refund.total_cash":1533.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:21:06]process_action_free get_value [17:21:06]json_value_free [17:21:06]json_value_free done [17:21:06]process_json_proto returns [17:21:06]Send response to host [17:21:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20005948.61,"fm.sale_refund.total":589938.00,"fm.buy.total":0.00,"shift.sale.total":28856.00,"shift.sale.total_cash":23416.00,"shift.sale_refund.total":1533.00,"shift.sale_refund.total_cash":1533.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:21:06]free response buf [17:21:06]execute_script done [17:21:06]execute_script returns [17:21:06]free content buf [17:21:06]Sock 10.Close socket [17:21:06]Sock 10.Thread stoped [17:21:06]accept exits with 8 [17:21:06]New connection [17:21:06]New thread 3067276644 created [17:21:06]Thread 3067133284 joined [17:21:06]Waiting for new connection... [17:21:06] Sock 8.Parse request [17:21:06]Sock 8.Check first char [17:21:06]Sock 8.First char is OK [17:21:06]request: POST /json_proto HTTP/1.0 [17:21:06]Method: POST [17:21:06]URL: /json_proto [17:21:06]Method is POST - this is cgi request [17:21:06]url: /json_proto [17:21:06]query_string will be loaded in cgi processing [17:21:06]execute_cgi json_proto POST (null) [17:21:06]execute_cgi path=json_proto method=POST [17:21:06]POST find Content-Length [17:21:06]Host: 172.17.60.69:8080 [17:21:06]Content-Length: 331 [17:21:06]Content-Type: application/json [17:21:06] [17:21:06]POST finish read [17:21:06]Found Content-Length = 331 [17:21: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" ] } } [17:21:06]execute_script... [17:21: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" ] } } [17:21:06]POST & json_proto [17:21:06]process_json_proto [17:21:06]json parsed OK: [17:21:06]protocol is kg_v1.0 [17:21:06]action value=get_value [17:21:06]process_action get_value [17:21:06]cmd_get_value [17:21:06]process_action get_value done [17:21:06]requested_data is exist [17:21:06]produce_requested_data [17:21:06]requested_item fm.sale.total is exist - process it [17:21:06]SAM_PROTO_GetFMData [17:21:06]wFMCommunicate request_size=4 [17:21:06]MH_SAM_APDU [17:21:06]CAPDU: 80 13 03 00 [17:21:06]Write to MH i2c: E2 08 00 B2 31 80 13 03 00 00 00 00 00 62 [17:21:06]Write i2c OK [17:21:06]MH_I2C_Read... [17:21:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:21:06]Read from MH i2c: E2 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 FD 00 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 FD 00 B2 31 00 C5 04 85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F EF 03 09 90 00 EB [17:21:06]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F EF 03 09 90 00 [17:21:06]wFMCommunicate OK [17:21:06]wFMCommunicate request_size=4 [17:21:06]MH_SAM_APDU [17:21:06]CAPDU: 80 17 00 00 [17:21:06]Write to MH i2c: E2 08 00 B3 31 80 17 00 00 00 00 00 00 64 [17:21:06]Write i2c OK [17:21:06]MH_I2C_Read... [17:21:06]OFD Sender: No OFD packet to send [17:21:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:07]Read from MH i2c: E2 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: E2 FD 00 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: E2 FD 00 B3 31 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 60 [17:21:07]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:21:07]wFMCommunicate OK [17:21:07]wFMCommunicate request_size=4 [17:21:07]MH_SAM_APDU [17:21:07]CAPDU: 80 17 00 00 [17:21:07]Write to MH i2c: E2 08 00 B4 31 80 17 00 00 00 00 00 00 65 [17:21:07]Write i2c OK [17:21:07]MH_I2C_Read... [17:21:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:07]Read from MH i2c: E2 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: E2 FD 00 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: E2 FD 00 B4 31 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 77 [17:21:07]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:21:07]wFMCommunicate OK [17:21:07]wFMCommunicate request_size=4 [17:21:07]MH_SAM_APDU [17:21:07]CAPDU: 80 17 00 00 [17:21:07]Write to MH i2c: E2 08 00 B5 31 80 17 00 00 00 00 00 00 66 [17:21:07]Write i2c OK [17:21:07]MH_I2C_Read... [17:21:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:07]Read from MH i2c: E2 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: E2 FD 00 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: E2 FD 00 B5 31 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F2 [17:21:07]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:21:07]wFMCommunicate OK [17:21:07]wFMCommunicate request_size=4 [17:21:07]MH_SAM_APDU [17:21:07]CAPDU: 80 17 00 00 [17:21:07]Write to MH i2c: E2 08 00 B6 31 80 17 00 00 00 00 00 00 67 [17:21:08]Write i2c OK [17:21:08]MH_I2C_Read... [17:21:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:21:08]Read from MH i2c: E2 [17:21:08]MH_I2C_Read... [17:21:08]Read from MH i2c: E2 E2 00 [17:21:08]MH_I2C_Read... [17:21:08]Read from MH i2c: E2 E2 00 B6 31 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 45 [17:21:08]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:21:08]wFMCommunicate OK [17:21:08]SAM_PROTO_GetFMData done [17:21:08]requested_item fm.sale_refund.total is exist - process it [17:21:08]requested_item fm.buy.total is exist - process it [17:21:08]requested_item shift.sale.total is exist - process it [17:21:08]SAM_PROTO_GetShiftData [17:21:08]wFMCommunicate request_size=4 [17:21:08]MH_SAM_APDU [17:21:08]CAPDU: 80 13 02 00 [17:21:08]Write to MH i2c: E2 08 00 B7 31 80 13 02 00 00 00 00 00 66 [17:21:08]Write i2c OK [17:21:08]MH_I2C_Read... [17:21:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:21:08]Read from MH i2c: E2 [17:21:08]MH_I2C_Read... [17:21:08]Read from MH i2c: E2 FD 00 [17:21:08]MH_I2C_Read... [17:21:08]Read from MH i2c: E2 FD 00 B7 31 00 B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 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 BA 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 95 [17:21:08]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 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 BA 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [17:21:08]wFMCommunicate OK [17:21:08]wFMCommunicate request_size=4 [17:21:08]MH_SAM_APDU [17:21:08]CAPDU: 80 17 00 00 [17:21:08]Write to MH i2c: E2 08 00 B8 31 80 17 00 00 00 00 00 00 69 [17:21:08]Write i2c OK [17:21:08]MH_I2C_Read... [17:21:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:09]Read from MH i2c: E2 [17:21:09]MH_I2C_Read... [17:21:09]Read from MH i2c: E2 FD 00 [17:21:09]MH_I2C_Read... [17:21:09]Read from MH i2c: E2 FD 00 B8 31 00 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 EC [17:21:09]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [17:21:09]wFMCommunicate OK [17:21:09]wFMCommunicate request_size=4 [17:21:09]MH_SAM_APDU [17:21:09]CAPDU: 80 17 00 00 [17:21:09]Write to MH i2c: E2 08 00 B9 31 80 17 00 00 00 00 00 00 6A [17:21:09]Write i2c OK [17:21:09]MH_I2C_Read... [17:21:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:09]Read from MH i2c: E2 [17:21:09]MH_I2C_Read... [17:21:09]Read from MH i2c: E2 FD 00 [17:21:09]MH_I2C_Read... [17:21:09]Read from MH i2c: E2 FD 00 B9 31 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 0C [17:21:09]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [17:21:09]wFMCommunicate OK [17:21:09]wFMCommunicate request_size=4 [17:21:09]MH_SAM_APDU [17:21:09]CAPDU: 80 17 00 00 [17:21:09]Write to MH i2c: E2 08 00 BA 31 80 17 00 00 00 00 00 00 6B [17:21:09]Write i2c OK [17:21:09]MH_I2C_Read... [17:21:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:10]Read from MH i2c: E2 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: E2 FD 00 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: E2 FD 00 BA 31 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 F4 [17:21:10]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [17:21:10]wFMCommunicate OK [17:21:10]wFMCommunicate request_size=4 [17:21:10]MH_SAM_APDU [17:21:10]CAPDU: 80 17 00 00 [17:21:10]Write to MH i2c: E2 08 00 BB 31 80 17 00 00 00 00 00 00 6C [17:21:10]Write i2c OK [17:21:10]MH_I2C_Read... [17:21:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [17:21:10]Read from MH i2c: E2 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: E2 D5 00 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: E2 D5 00 BB 31 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4D [17:21:10]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:21:10]wFMCommunicate OK [17:21:10]SAM_PROTO_GetShiftData done [17:21:10]requested_item shift.sale.total_cash is exist - process it [17:21:10]requested_item shift.sale_refund.total is exist - process it [17:21:10]requested_item shift.sale_refund.total_cash is exist - process it [17:21:10]requested_item shift.buy.total is exist - process it [17:21:10]requested_item shift.buy.total_cash is exist - process it [17:21:10]produce_requested_data done [17:21:10]produce_requested_data return {"fm.sale.total":20005948.61,"fm.sale_refund.total":589938.00,"fm.buy.total":0.00,"shift.sale.total":28856.00,"shift.sale.total_cash":23416.00,"shift.sale_refund.total":1533.00,"shift.sale_refund.total_cash":1533.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:21:10]process_action_free get_value [17:21:10]json_value_free [17:21:10]json_value_free done [17:21:10]process_json_proto returns [17:21:10]Send response to host [17:21:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20005948.61,"fm.sale_refund.total":589938.00,"fm.buy.total":0.00,"shift.sale.total":28856.00,"shift.sale.total_cash":23416.00,"shift.sale_refund.total":1533.00,"shift.sale_refund.total_cash":1533.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:21:10]free response buf [17:21:10]execute_script done [17:21:10]execute_script returns [17:21:10]free content buf [17:21:10]Sock 8.Close socket [17:21:10]Sock 8.Thread stoped [17:21:10]accept exits with 9 [17:21:10]New connection [17:21:10]New thread 3067133284 created [17:21:10]Thread 3067276644 joined [17:21:10]Waiting for new connection... [17:21:10] Sock 9.Parse request [17:21:10]Sock 9.Check first char [17:21:10]Sock 9.First char is OK [17:21:10]request: POST /json_proto HTTP/1.0 [17:21:10]Method: POST [17:21:10]URL: /json_proto [17:21:10]Method is POST - this is cgi request [17:21:10]url: /json_proto [17:21:10]query_string will be loaded in cgi processing [17:21:10]execute_cgi json_proto POST (null) [17:21:10]execute_cgi path=json_proto method=POST [17:21:10]POST find Content-Length [17:21:10]Host: 172.17.60.69:8080 [17:21:10]Content-Length: 283 [17:21:10]Content-Type: application/json [17:21:10] [17:21:10]POST finish read [17:21:10]Found Content-Length = 283 [17:21:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:10]execute_script... [17:21:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:10]POST & json_proto [17:21:10]process_json_proto [17:21:10]json parsed OK: [17:21:10]protocol is kg_v1.0 [17:21:10]action value=close_shift [17:21:10]process_action close_shift [17:21:10]cmd_close_shift [17:21:10]MH_GetDate [17:21:10]Write to MH i2c: F0 00 00 BC 31 DC [17:21:10]Write i2c OK [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: F0 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: F0 09 00 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: F0 09 00 BC 31 00 8B 9E 60 66 D2 83 5F 66 EE [17:21:10]GetLastDocTimeStamp 1717608003 [17:21:10]current date 1717608075 [17:21:10]FM_GetShiftState [17:21:10]SAM_PROTO_GetShiftState [17:21:10]wFMCommunicate request_size=4 [17:21:10]MH_SAM_APDU [17:21:10]CAPDU: 80 13 01 00 [17:21:10]Write to MH i2c: E2 08 00 BD 31 80 13 01 00 00 00 00 00 6B [17:21:10]Write i2c OK [17:21:10]MH_I2C_Read... [17:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:10]Read from MH i2c: E2 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: E2 0E 00 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: E2 0E 00 BD 31 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 AC [17:21:10]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [17:21:10]wFMCommunicate OK [17:21:10]SAM_PROTO_GetShiftState done [17:21:10]FM_GetShiftState done [17:21:10]KKMCreateCloseShiftDocument [17:21:10]Load OK [17:21:10]Malloc new data [17:21:10]MH_GetDate [17:21:10]Write to MH i2c: F0 00 00 BE 31 DE [17:21:10]Write i2c OK [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: F0 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: F0 09 00 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: F0 09 00 BE 31 00 8B 9E 60 66 D2 83 5F 66 F0 [17:21:10]Malloc new data [17:21:10]Malloc new data [17:21:10]Malloc new data [17:21:10]Malloc new data [17:21:10]KKMCreateCloseShiftDocument OK [17:21:10]KKMSetCloseShiftData OK [17:21:10]ProcessDocumentItem done err = 0, tmpTLVsize=78 [17:21:10]tlvbuf is 01133220 [17:21:10]KKMLoadAndSignCloseShiftData [17:21:10]SAM_PROTO_ProcessDocument [17:21:10]wFMCommunicate request_size=9 [17:21:10]MH_SAM_APDU [17:21:10]CAPDU: 80 15 01 00 04 05 00 4E 00 [17:21:10]Write to MH i2c: E2 0C 00 BF 31 80 15 01 00 04 00 05 00 4E 00 00 00 CA [17:21:10]Write i2c OK [17:21:10]MH_I2C_Read... [17:21:10]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [17:21:10]Read from MH i2c: E2 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: E2 03 00 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: E2 03 00 BF 31 00 90 00 64 [17:21:10]RAPDU: 90 00 [17:21:10]wFMCommunicate OK [17:21:10]wFMCommunicate request_size=23 [17:21:10]MH_SAM_APDU [17:21:10]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [17:21:10]Write to MH i2c: E2 1A 00 C0 31 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 66 [17:21:10]Write i2c OK [17:21:10]MH_I2C_Read... [17:21:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:21:10]Read from MH i2c: E2 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: E2 03 00 [17:21:10]MH_I2C_Read... [17:21:10]Read from MH i2c: E2 03 00 C0 31 00 90 00 65 [17:21:10]RAPDU: 90 00 [17:21:10]wFMCommunicate OK [17:21:10]wFMCommunicate request_size=37 [17:21:10]MH_SAM_APDU [17:21:11]CAPDU: 80 15 02 00 20 FD 03 1C 00 D0 9A D0 BE D0 B9 D0 B3 D0 B5 D0 BB D1 8C D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 A0 2E [17:21:11]Write to MH i2c: E2 28 00 C1 31 80 15 02 00 20 00 FD 03 1C 00 D0 9A D0 BE D0 B9 D0 B3 D0 B5 D0 BB D1 8C D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 A0 2E 00 00 90 [17:21:11]Write i2c OK [17:21:11]MH_I2C_Read... [17:21:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:21:11]Read from MH i2c: E2 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: E2 03 00 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: E2 03 00 C1 31 00 90 00 66 [17:21:11]RAPDU: 90 00 [17:21:11]wFMCommunicate OK [17:21:11]wFMCommunicate request_size=13 [17:21:11]MH_SAM_APDU [17:21:11]CAPDU: 80 15 02 00 08 F4 03 04 00 8B 9E 60 66 [17:21:11]Write to MH i2c: E2 10 00 C2 31 80 15 02 00 08 00 F4 03 04 00 8B 9E 60 66 00 00 6D [17:21:11]Write i2c OK [17:21:11]MH_I2C_Read... [17:21:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:21:11]Read from MH i2c: E2 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: E2 03 00 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: E2 03 00 C2 31 00 90 00 67 [17:21:11]RAPDU: 90 00 [17:21:11]wFMCommunicate OK [17:21:11]wFMCommunicate request_size=25 [17:21:11]MH_SAM_APDU [17:21:11]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 [17:21:11]Write to MH i2c: E2 1C 00 C3 31 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 00 00 D9 [17:21:11]Write i2c OK [17:21:11]MH_I2C_Read... [17:21:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:21:11]Read from MH i2c: E2 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: E2 03 00 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: E2 03 00 C3 31 00 90 00 68 [17:21:11]RAPDU: 90 00 [17:21:11]wFMCommunicate OK [17:21:11]wFMCommunicate request_size=4 [17:21:11]MH_SAM_APDU [17:21:11]CAPDU: 80 15 03 00 [17:21:11]Write to MH i2c: E2 08 00 C4 31 80 15 03 00 00 00 00 00 76 [17:21:11]Write i2c OK [17:21:11]MH_I2C_Read... [17:21:11]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [17:21:11]Read from MH i2c: E2 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: E2 FD 00 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: E2 FD 00 C4 31 00 FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CD FA 00 00 0E 04 04 00 77 01 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7E 00 00 00 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 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 BA 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 90 00 5C [17:21:11]RAPDU: FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CD FA 00 00 0E 04 04 00 77 01 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7E 00 00 00 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 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 BA 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 90 00 [17:21:12]wFMCommunicate OK [17:21:12]SAM_PROTO_ProcessDocument answer len = 1275 [17:21:12]SAM_PROTO_ProcessDocument remain to read = 1027 [17:21:12]wFMCommunicate request_size=4 [17:21:12]MH_SAM_APDU [17:21:12]CAPDU: 80 17 00 00 [17:21:12]Write to MH i2c: E2 08 00 C5 31 80 17 00 00 00 00 00 00 76 [17:21:12]OFD Sender: No OFD packet to send [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:12]Read from MH i2c: E2 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 FD 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 FD 00 C5 31 00 04 03 00 D4 56 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F 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 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 42 [17:21:12]RAPDU: 04 03 00 D4 56 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F 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 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [17:21:12]wFMCommunicate OK [17:21:12]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:21:12]SAM_PROTO_ProcessDocument remain to read = 777 [17:21:12]wFMCommunicate request_size=4 [17:21:12]MH_SAM_APDU [17:21:12]CAPDU: 80 17 00 00 [17:21:12]Write to MH i2c: E2 08 00 C6 31 80 17 00 00 00 00 00 00 77 [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:12]Read from MH i2c: E2 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 FD 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: E2 FD 00 C6 31 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 90 00 D9 [17:21:12]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 90 00 [17:21:13]wFMCommunicate OK [17:21:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:21:13]SAM_PROTO_ProcessDocument remain to read = 527 [17:21:13]wFMCommunicate request_size=4 [17:21:13]MH_SAM_APDU [17:21:13]CAPDU: 80 17 00 00 [17:21:13]Write to MH i2c: E2 08 00 C7 31 80 17 00 00 00 00 00 00 78 [17:21:13]Write i2c OK [17:21:13]MH_I2C_Read... [17:21:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:13]Read from MH i2c: E2 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: E2 FD 00 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: E2 FD 00 C7 31 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 8B [17:21:13]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [17:21:13]wFMCommunicate OK [17:21:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:21:13]SAM_PROTO_ProcessDocument remain to read = 277 [17:21:13]wFMCommunicate request_size=4 [17:21:13]MH_SAM_APDU [17:21:13]CAPDU: 80 17 00 00 [17:21:13]Write to MH i2c: E2 08 00 C8 31 80 17 00 00 00 00 00 00 79 [17:21:13]Write i2c OK [17:21:13]MH_I2C_Read... [17:21:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:13]Read from MH i2c: E2 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: E2 FD 00 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: E2 FD 00 C8 31 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 B8 [17:21:13]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [17:21:13]wFMCommunicate OK [17:21:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:21:13]SAM_PROTO_ProcessDocument remain to read = 27 [17:21:13]wFMCommunicate request_size=4 [17:21:13]MH_SAM_APDU [17:21:13]CAPDU: 80 17 00 00 [17:21:13]Write to MH i2c: E2 08 00 C9 31 80 17 00 00 00 00 00 00 7A [17:21:13]Write i2c OK [17:21:13]MH_I2C_Read... [17:21:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 27! [17:21:14]Read from MH i2c: E2 [17:21:14]MH_I2C_Read... [17:21:14]Read from MH i2c: E2 1E 00 [17:21:14]MH_I2C_Read... [17:21:14]Read from MH i2c: E2 1E 00 C9 31 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 19 3D 3D 58 B4 63 90 00 B9 [17:21:14]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 19 3D 3D 58 B4 63 90 00 [17:21:14]wFMCommunicate OK [17:21:14]SAM_PROTO_ProcessDocument received (without SW) 27 bytes [17:21:14]SAM_PROTO_ProcessDocument done [17:21:14]1209 (1) - 1.0 - номер версии ФФД [17:21:14]1041 (16) - 0000000000875074 - номер ФМ [17:21:14]1040 (4) - 64205 - номер ФД [17:21:14]1038 (4) - 375 - номер смены [17:21:14]1118 (4) - 124 - количество кассовых чеков за смену [17:21:14]1111 (4) - 126 - общее количество ФД за смену [17:21:14]1194 (1204) - счетчики итогов смены [17:21:14] 1134 (4) - 124 - количество чеков со всеми признаками расчетов [17:21:14] 1129 (155) - счетчики операций «приход» [17:21:14] 1135 (4) - 121 - количество чеков по признаку расчетов [17:21:14] 1201 (3) - 28856.00 - общая итоговая сумма в чеках [17:21:14] 1136 (3) - 23416.00 - итоговая сумма в чеках наличными [17:21:14] 1138 (3) - 5440.00 - итоговая сумма в чеках безналичными [17:21:14] 1024 (122) - суммы налогов [17:21:14] 1006 (9) - суммы НДС [17:21:14] 1010 (1) - 0% - код ставки НДС [17:21:14] 1011 (0) - 0.00 - сумма НДС по ставке [17:21:14] 1006 (12) - суммы НДС [17:21:14] 1010 (1) - 12% - код ставки НДС [17:21:14] 1011 (3) - 3064.58 - сумма НДС по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 0% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (11) - суммы НСП [17:21:14] 1014 (1) - 1% - код ставки НСП [17:21:14] 1015 (2) - 255.30 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 2% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 3% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 5% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 0,50% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 1,50% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1130 (151) - счетчики операций «возврат прихода» [17:21:14] 1135 (4) - 3 - количество чеков по признаку расчетов [17:21:14] 1201 (3) - 1533.00 - общая итоговая сумма в чеках [17:21:14] 1136 (3) - 1533.00 - итоговая сумма в чеках наличными [17:21:14] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:21:14] 1024 (121) - суммы налогов [17:21:14] 1006 (9) - суммы НДС [17:21:14] 1010 (1) - 0% - код ставки НДС [17:21:14] 1011 (0) - 0.00 - сумма НДС по ставке [17:21:14] 1006 (11) - суммы НДС [17:21:14] 1010 (1) - 12% - код ставки НДС [17:21:14] 1011 (2) - 162.89 - сумма НДС по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 0% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (11) - суммы НСП [17:21:14] 1014 (1) - 1% - код ставки НСП [17:21:14] 1015 (2) - 13.57 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 2% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 3% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 5% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 0,50% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 1,50% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1131 (141) - счетчики операций «расход» [17:21:14] 1135 (4) - 0 - количество чеков по признаку расчетов [17:21:14] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:21:14] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:21:14] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:21:14] 1024 (117) - суммы налогов [17:21:14] 1006 (9) - суммы НДС [17:21:14] 1010 (1) - 0% - код ставки НДС [17:21:14] 1011 (0) - 0.00 - сумма НДС по ставке [17:21:14] 1006 (9) - суммы НДС [17:21:14] 1010 (1) - 12% - код ставки НДС [17:21:14] 1011 (0) - 0.00 - сумма НДС по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 0% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 1% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 2% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 3% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 5% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 0,50% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 1,50% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1132 (141) - счетчики операций «возврат расхода» [17:21:14] 1135 (4) - 0 - количество чеков по признаку расчетов [17:21:14] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:21:14] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:21:14] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:21:14] 1024 (117) - суммы налогов [17:21:14] 1006 (9) - суммы НДС [17:21:14] 1010 (1) - 0% - код ставки НДС [17:21:14] 1011 (0) - 0.00 - сумма НДС по ставке [17:21:14] 1006 (9) - суммы НДС [17:21:14] 1010 (1) - 12% - код ставки НДС [17:21:14] 1011 (0) - 0.00 - сумма НДС по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 0% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 1% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 2% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 3% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 5% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 0,50% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1007 (9) - суммы НСП [17:21:14] 1014 (1) - 1,50% - код ставки НСП [17:21:14] 1015 (0) - 0.00 - сумма НСП по ставке [17:21:14] 1133 (588) - - счетчики коррекции - не используются [17:21:14]1077 (6) - 27750812922979 - ФПД [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1209 (04B9) [17:21:14]Malloc new data [17:21:14]Processing tag 1041 (0411) [17:21:14]Processing tag 1040 (0410) [17:21:14]Malloc new data [17:21:14]Processing tag 1038 (040E) [17:21:14]Malloc new data [17:21:14]Processing tag 1118 (045E) [17:21:14]Malloc new data [17:21:14]Processing tag 1111 (0457) [17:21:14]Malloc new data [17:21:14]Processing tag 1194 (04AA) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1134 (046E) [17:21:14]Malloc new data [17:21:14]Processing tag 1129 (0469) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1135 (046F) [17:21:14]Malloc new data [17:21:14]Processing tag 1201 (04B1) [17:21:14]Malloc new data [17:21:14]Processing tag 1136 (0470) [17:21:14]Malloc new data [17:21:14]Processing tag 1138 (0472) [17:21:14]Malloc new data [17:21:14]Processing tag 1024 (0400) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1006 (03EE) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1010 (03F2) [17:21:14]Malloc new data [17:21:14]Processing tag 1011 (03F3) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1006 (03EE) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1010 (03F2) [17:21:14]Malloc new data [17:21:14]Processing tag 1011 (03F3) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]SetTLVBufToDocument err=0 [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1130 (046A) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1135 (046F) [17:21:14]Malloc new data [17:21:14]Processing tag 1201 (04B1) [17:21:14]Malloc new data [17:21:14]Processing tag 1136 (0470) [17:21:14]Malloc new data [17:21:14]Processing tag 1138 (0472) [17:21:14]Malloc new data [17:21:14]Processing tag 1024 (0400) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1006 (03EE) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1010 (03F2) [17:21:14]Malloc new data [17:21:14]Processing tag 1011 (03F3) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1006 (03EE) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1010 (03F2) [17:21:14]Malloc new data [17:21:14]Processing tag 1011 (03F3) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]SetTLVBufToDocument err=0 [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1131 (046B) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1135 (046F) [17:21:14]Malloc new data [17:21:14]Processing tag 1201 (04B1) [17:21:14]Malloc new data [17:21:14]Processing tag 1136 (0470) [17:21:14]Malloc new data [17:21:14]Processing tag 1138 (0472) [17:21:14]Malloc new data [17:21:14]Processing tag 1024 (0400) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1006 (03EE) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1010 (03F2) [17:21:14]Malloc new data [17:21:14]Processing tag 1011 (03F3) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1006 (03EE) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1010 (03F2) [17:21:14]Malloc new data [17:21:14]Processing tag 1011 (03F3) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:14]Malloc new data [17:21:14]SetTLVBufToDocument err=0 [17:21:14]Processing tag 1007 (03EF) [17:21:14]Load OK [17:21:14]SetTLVBufToDocument [17:21:14]Processing tag 1014 (03F6) [17:21:14]Malloc new data [17:21:14]Processing tag 1015 (03F7) [17:21:15]Malloc new data [17:21:15]SetTLVBufToDocument err=0 [17:21:15]SetTLVBufToDocument err=0 [17:21:15]SetTLVBufToDocument err=0 [17:21:15]Processing tag 1132 (046C) [17:21:15]Load OK [17:21:15]SetTLVBufToDocument [17:21:15]Processing tag 1135 (046F) [17:21:15]Malloc new data [17:21:15]Processing tag 1201 (04B1) [17:21:15]Malloc new data [17:21:15]Processing tag 1136 (0470) [17:21:15]Malloc new data [17:21:15]Processing tag 1138 (0472) [17:21:15]Malloc new data [17:21:15]Processing tag 1024 (0400) [17:21:15]Load OK [17:21:15]SetTLVBufToDocument [17:21:15]Processing tag 1006 (03EE) [17:21:15]Load OK [17:21:15]SetTLVBufToDocument [17:21:15]Processing tag 1010 (03F2) [17:21:15]Malloc new data [17:21:15]Processing tag 1011 (03F3) [17:21:15]Malloc new data [17:21:15]SetTLVBufToDocument err=0 [17:21:15]Processing tag 1006 (03EE) [17:21:15]Load OK [17:21:15]SetTLVBufToDocument [17:21:15]Processing tag 1010 (03F2) [17:21:15]Malloc new data [17:21:15]Processing tag 1011 (03F3) [17:21:15]Malloc new data [17:21:15]SetTLVBufToDocument err=0 [17:21:15]Processing tag 1007 (03EF) [17:21:15]Load OK [17:21:15]SetTLVBufToDocument [17:21:15]Processing tag 1014 (03F6) [17:21:15]Malloc new data [17:21:15]Processing tag 1015 (03F7) [17:21:15]Malloc new data [17:21:15]SetTLVBufToDocument err=0 [17:21:15]Processing tag 1007 (03EF) [17:21:15]Load OK [17:21:15]SetTLVBufToDocument [17:21:15]Processing tag 1014 (03F6) [17:21:15]Malloc new data [17:21:15]Processing tag 1015 (03F7) [17:21:15]Malloc new data [17:21:15]SetTLVBufToDocument err=0 [17:21:15]Processing tag 1007 (03EF) [17:21:15]Load OK [17:21:15]SetTLVBufToDocument [17:21:15]Processing tag 1014 (03F6) [17:21:15]Malloc new data [17:21:15]Processing tag 1015 (03F7) [17:21:15]Malloc new data [17:21:15]SetTLVBufToDocument err=0 [17:21:15]Processing tag 1007 (03EF) [17:21:15]Load OK [17:21:15]SetTLVBufToDocument [17:21:15]Processing tag 1014 (03F6) [17:21:15]Malloc new data [17:21:15]Processing tag 1015 (03F7) [17:21:15]Malloc new data [17:21:15]SetTLVBufToDocument err=0 [17:21:15]Processing tag 1007 (03EF) [17:21:15]Load OK [17:21:15]SetTLVBufToDocument [17:21:15]Processing tag 1014 (03F6) [17:21:15]Malloc new data [17:21:15]Processing tag 1015 (03F7) [17:21:15]Malloc new data [17:21:15]SetTLVBufToDocument err=0 [17:21:15]Processing tag 1007 (03EF) [17:21:15]Load OK [17:21:15]SetTLVBufToDocument [17:21:15]Processing tag 1014 (03F6) [17:21:15]Malloc new data [17:21:15]Processing tag 1015 (03F7) [17:21:15]Malloc new data [17:21:15]SetTLVBufToDocument err=0 [17:21:15]Processing tag 1007 (03EF) [17:21:15]Load OK [17:21:15]SetTLVBufToDocument [17:21:15]Processing tag 1014 (03F6) [17:21:15]Malloc new data [17:21:15]Processing tag 1015 (03F7) [17:21:15]Malloc new data [17:21:15]SetTLVBufToDocument err=0 [17:21:15]SetTLVBufToDocument err=0 [17:21:15]SetTLVBufToDocument err=0 [17:21:15]Processing tag 1133 (046D) [17:21:15]Malloc new data [17:21:15]SetTLVBufToDocument err=0 [17:21:15]Processing tag 1077 (0435) [17:21:15]Malloc new data [17:21:15]SetTLVBufToDocument err=0 [17:21:15]Malloc new data [17:21:15]SAM_PROTO_GetFMData [17:21:15]wFMCommunicate request_size=4 [17:21:15]MH_SAM_APDU [17:21:15]CAPDU: 80 13 03 00 [17:21:15]Write to MH i2c: E2 08 00 CA 31 80 13 03 00 00 00 00 00 7A [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:21:15]Read from MH i2c: E2 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 FD 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 FD 00 CA 31 00 C5 04 85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F EF 03 09 90 00 03 [17:21:15]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F EF 03 09 90 00 [17:21:15]wFMCommunicate OK [17:21:15]wFMCommunicate request_size=4 [17:21:15]MH_SAM_APDU [17:21:15]CAPDU: 80 17 00 00 [17:21:15]Write to MH i2c: E2 08 00 CB 31 80 17 00 00 00 00 00 00 7C [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:16]Read from MH i2c: E2 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 FD 00 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 FD 00 CB 31 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 78 [17:21:16]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:21:16]wFMCommunicate OK [17:21:16]wFMCommunicate request_size=4 [17:21:16]MH_SAM_APDU [17:21:16]CAPDU: 80 17 00 00 [17:21:16]Write to MH i2c: E2 08 00 CC 31 80 17 00 00 00 00 00 00 7D [17:21:16]Write i2c OK [17:21:16]MH_I2C_Read... [17:21:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:16]Read from MH i2c: E2 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 FD 00 [17:21:16]MH_I2C_Read... [17:21:16]Read from MH i2c: E2 FD 00 CC 31 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 8F [17:21:16]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:21:17]wFMCommunicate OK [17:21:17]wFMCommunicate request_size=4 [17:21:17]MH_SAM_APDU [17:21:17]CAPDU: 80 17 00 00 [17:21:17]Write to MH i2c: E2 08 00 CD 31 80 17 00 00 00 00 00 00 7E [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]OFD Sender: No OFD packet to send [17:21:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:21:17]Read from MH i2c: E2 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 FD 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 FD 00 CD 31 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 0A [17:21:17]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:21:17]wFMCommunicate OK [17:21:17]wFMCommunicate request_size=4 [17:21:17]MH_SAM_APDU [17:21:17]CAPDU: 80 17 00 00 [17:21:17]Write to MH i2c: E2 08 00 CE 31 80 17 00 00 00 00 00 00 7F [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:21:17]Read from MH i2c: E2 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 E2 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 E2 00 CE 31 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5D [17:21:18]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:21:18]wFMCommunicate OK [17:21:18]SAM_PROTO_GetFMData done [17:21:18]Malloc new data [17:21:18]Malloc new data [17:21:18]Malloc new data [17:21:18]Malloc new data [17:21:18]KKMLoadAndSignCloseShiftData err=0 [17:21:18]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Койгельдиева Р. 05.06.2024 17:21 Смена: 375 РНМ: 0000000000092737 ЗНМ: 0300000031 СНО: Общий режим Чеков за смену: 124 ФД за смену: 126 Всего чеков: 124 ИТОГИ ПРИХОД Чеков: 121 Общий итог: 28856.00 Итого наличными: 23416.00 Итого безнал.: 5440.00 НДС 0% : 0.00 НДС 12% : 3064.58 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 255.30 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 1533.00 Итого наличными: 1533.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 162.89 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 13.57 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 21883.00 НС Приход: 20005948.61 НС Возвр.Прихода: 589938.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 64205 ФМ: 0000000000875074 ФПД: 27750812922979 [17:21:18]StoreToDocumentArchive [17:21:18]shift 375 fd 64205 [17:21:18]save to /storage/0375/doc_00064205 [17:21:18]save last doc name /storage/0375/doc_00064205 to /storage/kkm_last_doc_name [17:21:18]save OK [17:21:18]Clear old archive folders... [17:21:18]Remove dir /storage/0266 [17:21:18]opendir ok [17:21:18]file . [17:21:18]file .. [17:21:18]file doc_1717608011 [17:21:18]remove file /storage/0266/doc_1717608011 [17:21:18]remove dir /storage/0266 [17:21:18]NVStorageSaveData kkm_registers [17:21:18]File name is /storage/kkm_registers [17:21:18]Write 24 bytes [17:21:18]NVStorageSaveData done [17:21:18]NVStorageSaveData kkm_registers [17:21:18]File name is /storage/kkm_registers [17:21:18]Write 24 bytes [17:21:18]NVStorageSaveData done [17:21:18]ProcessDocumentItem done err = 0, tmpTLVsize=1392 [17:21:18]tlvbuf is 01046C30 [17:21:18]SAM_PROTO_ClearQueue [17:21:18]wFMCommunicate request_size=4 [17:21:18]MH_SAM_APDU [17:21:18]CAPDU: 80 09 00 00 [17:21:18]Write to MH i2c: E2 08 00 CF 31 80 09 00 00 00 00 00 00 72 [17:21:18]Write i2c OK [17:21:18]MH_I2C_Read... [17:21:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:18]Read from MH i2c: E2 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 03 00 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 03 00 CF 31 00 90 00 74 [17:21:18]RAPDU: 90 00 [17:21:18]wFMCommunicate OK [17:21:18]SAM_PROTO_ClearQueue done [17:21:18]KKMCreateOFDPacket [17:21:18]OFDProtocolAddRootSTLVToBuf [17:21:18]FM_MakeSignedData [17:21:18]FM_MakeSignedData [17:21:18]SAM_PROTO_SignData [17:21:18]wFMCommunicate request_size=4 [17:21:18]MH_SAM_APDU [17:21:18]CAPDU: 80 0D 01 02 [17:21:18]Write to MH i2c: E2 08 00 D0 31 80 0D 01 02 00 00 00 00 7A [17:21:18]Write i2c OK [17:21:18]MH_I2C_Read... [17:21:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:18]Read from MH i2c: E2 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 03 00 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 03 00 D0 31 00 90 00 75 [17:21:18]RAPDU: 90 00 [17:21:18]wFMCommunicate OK [17:21:18]wFMCommunicate request_size=255 [17:21:18]MH_SAM_APDU [17:21:18]CAPDU: 80 0D 02 02 FA 05 00 70 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 1C 00 D0 9A D0 BE D0 B9 D0 B3 D0 B5 D0 BB D1 8C D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 A0 2E F4 03 04 00 8B 9E 60 66 0E 04 04 00 77 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 5E 04 04 00 7C 00 00 00 57 04 04 00 7E 00 00 00 AA 04 DB 04 6E 04 04 00 7C 00 00 00 69 04 A2 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 [17:21:18]Write to MH i2c: E2 02 01 D1 31 80 0D 02 02 FA 00 05 00 70 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 1C 00 D0 9A D0 BE D0 B9 D0 B3 D0 B5 D0 BB D1 8C D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 A0 2E F4 03 04 00 8B 9E 60 66 0E 04 04 00 77 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 5E 04 04 00 7C 00 00 00 57 04 04 00 7E 00 00 00 AA 04 DB 04 6E 04 04 00 7C 00 00 00 69 04 A2 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 00 00 0C [17:21:18]Write i2c OK [17:21:18]MH_I2C_Read... [17:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:18]Read from MH i2c: E2 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 03 00 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 03 00 D1 31 00 90 00 76 [17:21:18]RAPDU: 90 00 [17:21:18]wFMCommunicate OK [17:21:18]wFMCommunicate request_size=255 [17:21:18]MH_SAM_APDU [17:21:18]CAPDU: 80 0D 02 02 FA F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BA 63 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 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 [17:21:18]Write to MH i2c: E2 02 01 D2 31 80 0D 02 02 FA 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BA 63 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 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 00 B0 [17:21:19]Write i2c OK [17:21:19]MH_I2C_Read... [17:21:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:19]Read from MH i2c: E2 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 03 00 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 03 00 D2 31 00 90 00 77 [17:21:19]RAPDU: 90 00 [17:21:19]wFMCommunicate OK [17:21:19]wFMCommunicate request_size=255 [17:21:19]MH_SAM_APDU [17:21:19]CAPDU: 80 0D 02 02 FA 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 [17:21:19]Write to MH i2c: E2 02 01 D3 31 80 0D 02 02 FA 00 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 3C [17:21:19]Write i2c OK [17:21:19]MH_I2C_Read... [17:21:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:19]Read from MH i2c: E2 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 03 00 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 03 00 D3 31 00 90 00 78 [17:21:19]RAPDU: 90 00 [17:21:19]wFMCommunicate OK [17:21:20]wFMCommunicate request_size=255 [17:21:20]MH_SAM_APDU [17:21:20]CAPDU: 80 0D 02 02 FA 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 [17:21:20]Write to MH i2c: E2 02 01 D4 31 80 0D 02 02 FA 00 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 00 00 42 [17:21:20]Write i2c OK [17:21:20]MH_I2C_Read... [17:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:20]Read from MH i2c: E2 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 03 00 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 03 00 D4 31 00 90 00 79 [17:21:20]RAPDU: 90 00 [17:21:20]wFMCommunicate OK [17:21:20]wFMCommunicate request_size=255 [17:21:20]MH_SAM_APDU [17:21:20]CAPDU: 80 0D 02 02 FA 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:21:20]Write to MH i2c: E2 02 01 D5 31 80 0D 02 02 FA 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 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 00 00 1D [17:21:20]Write i2c OK [17:21:20]MH_I2C_Read... [17:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:21]Read from MH i2c: E2 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: E2 03 00 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: E2 03 00 D5 31 00 90 00 7A [17:21:21]RAPDU: 90 00 [17:21:21]wFMCommunicate OK [17:21:21]wFMCommunicate request_size=151 [17:21:21]MH_SAM_APDU [17:21:21]CAPDU: 80 0D 02 02 92 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CD FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 35 04 06 00 19 3D 3D 58 B4 63 [17:21:21]Write to MH i2c: E2 9A 00 D6 31 80 0D 02 02 92 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CD FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 35 04 06 00 19 3D 3D 58 B4 63 00 00 84 [17:21:21]Write i2c OK [17:21:21]MH_I2C_Read... [17:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:21]Read from MH i2c: E2 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: E2 03 00 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: E2 03 00 D6 31 00 90 00 7B [17:21:21]RAPDU: 90 00 [17:21:21]wFMCommunicate OK [17:21:21]wFMCommunicate request_size=4 [17:21:21]MH_SAM_APDU [17:21:21]CAPDU: 80 0D 03 02 [17:21:21]Write to MH i2c: E2 08 00 D7 31 80 0D 03 02 00 00 00 00 83 [17:21:21]Write i2c OK [17:21:21]MH_I2C_Read... [17:21:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:21]Read from MH i2c: E2 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: E2 0B 00 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: E2 0B 00 D7 31 00 E2 AF 43 3A D8 2E 08 09 90 00 A9 [17:21:21]RAPDU: E2 AF 43 3A D8 2E 08 09 90 00 [17:21:21]wFMCommunicate OK [17:21:21]SAM_PROTO_SignData done [17:21:21]FM_MakeSignedData done [17:21:21]CreateOFDProtocolMessage [17:21:21]wFMCommunicate request_size=4 [17:21:21]MH_SAM_APDU [17:21:21]CAPDU: 80 11 00 00 [17:21:21]Write to MH i2c: E2 08 00 D8 31 80 11 00 00 00 00 00 00 83 [17:21:21]Write i2c OK [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: E2 [17:21:21]MH_I2C_Read... [17:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:21]Read from MH i2c: E2 17 00 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: E2 17 00 D8 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D5 [17:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:21:21]wFMCommunicate OK [17:21:21]CreateOFDProtocolMessage done [17:21:21]OFDSenderStorePacket 64205 [17:21:21]StoreOFDPacket docnum=64205 [17:21:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 84 05 00 00 A4 B4 7C 05 F3 9F 5A 05 01 00 05 00 70 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 1C 00 D0 9A D0 BE D0 B9 D0 B3 D0 B5 D0 BB D1 8C D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 A0 2E F4 03 04 00 8B 9E 60 66 0E 04 04 00 77 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 5E 04 04 00 7C 00 00 00 57 04 04 00 7E 00 00 00 AA 04 DB 04 6E 04 04 00 7C 00 00 00 69 04 A2 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BA 63 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 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 CD FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 35 04 06 00 19 3D 3D 58 B4 63 E2 AF 43 3A D8 2E 08 09 [17:21:22]CheckFolder [17:21:22]dirname=/storage/ofd_packets [17:21:22]CheckFolder done [17:21:22]ProducePacketName [17:21:22]name=ofd_packets/00064205 [17:21:22]NVStorageSaveData ofd_packets/00064205 [17:21:22]File name is /storage/ofd_packets/00064205 [17:21:22]Write 1442 bytes [17:21:22]NVStorageSaveData done [17:21:22]OFDSenderStorePacket done [17:21:22]KKMCreateOFDPacket done [17:21:22]NVStorageSaveData kkm_last_timestamp [17:21:22]File name is /storage/kkm_last_timestamp [17:21:22]Write 4 bytes [17:21:22]NVStorageSaveData done [17:21:22]ExternCall_PrintAddStr [17:21:22]wPrintStart [17:21:22]Write to MH i2c: 01 00 00 D9 31 0A [17:21:22]Write i2c OK [17:21:22]MH_I2C_Read... [17:21:22]Read from MH i2c: 01 [17:21:22]MH_I2C_Read... [17:21:22]Read from MH i2c: 01 07 00 [17:21:22]MH_I2C_Read... [17:21:22]Read from MH i2c: 01 07 00 D9 31 00 00 00 00 00 FF 0F 1F [17:21:22]RasterBufferAndPrint [17:21:22]line Отчет о закрытии смены [17:21:22]line ФФД: 1.0 [17:21:22]line ИНН: 02508201610067 [17:21:22]line Кассир: Койгельдиева Р. [17:21:22]line 05.06.2024 17:21 [17:21:22]line Смена: 375 [17:21:22]line РНМ: 0000000000092737 [17:21:22]line ЗНМ: 0300000031 [17:21:22]line СНО: Общий режим [17:21:22]line Чеков за смену: 124 [17:21:22]line ФД за смену: 126 [17:21:22]line Всего чеков: 124 [17:21:22]line ИТОГИ ПРИХОД [17:21:22]line Чеков: 121 [17:21:22]line Общий итог: 28856.00 [17:21:22]line Итого наличными: 23416.00 [17:21:22]line Итого безнал.: 5440.00 [17:21:22]line НДС 0% : 0.00 [17:21:22]line НДС 12% : 3064.58 [17:21:22]line НСП 0% : 0.00 [17:21:22]line НСП 1,50% : 0.00 [17:21:22]line НСП 0,50% : 0.00 [17:21:22]line НСП 5% : 0.00 [17:21:22]line НСП 3% : 0.00 [17:21:22]line НСП 2% : 0.00 [17:21:22]line НСП 1% : 255.30 [17:21:22]line ИТОГИ ВОЗВРАТ ПРИХОДА [17:21:22]line Чеков: 3 [17:21:22]line Общий итог: 1533.00 [17:21:22]line Итого наличными: 1533.00 [17:21:22]OFD Sender: Processing packet 64205 [packets to send 14, broken 13] [17:21:22]ProducePacketName [17:21:22]name=ofd_packets/00064205 [17:21:22]OFD Sender: To server: pG, [17:21:22]CommunicateWithHost lk.salyk.kg:30040 [17:21:22]ConnectInit lk.salyk.kg [17:21:22]line Итого безнал.: 0.00 [17:21:22]line НДС 0% : 0.00 [17:21:22]line НДС 12% : 162.89 [17:21:22]line НСП 0% : 0.00 [17:21:22]line НСП 1,50% : 0.00 [17:21:22]line НСП 0,50% : 0.00 [17:21:22]line НСП 5% : 0.00 [17:21:22]line НСП 3% : 0.00 [17:21:22]line НСП 2% : 0.00 [17:21:22]line НСП 1% : 13.57 [17:21:22]line ИТОГИ РАСХОД [17:21:22]line Чеков: 0 [17:21:22]line Общий итог: 0.00 [17:21:22]line Итого наличными: 0.00 [17:21:22]line Итого безнал.: 0.00 [17:21:22]line НДС 0% : 0.00 [17:21:22]line НДС 12% : 0.00 [17:21:22]line НСП 0% : 0.00 [17:21:22]line НСП 1,50% : 0.00 [17:21:22]line НСП 0,50% : 0.00 [17:21:22]line НСП 5% : 0.00 [17:21:22]line НСП 3% : 0.00 [17:21:22]line НСП 2% : 0.00 [17:21:22]line НСП 1% : 0.00 [17:21:22]line ИТОГИ ВОЗВРАТ РАСХОДА [17:21:22]line Чеков: 0 [17:21:22]line Общий итог: 0.00 [17:21:22]line Итого наличными: 0.00 [17:21:22]line Итого безнал.: 0.00 [17:21:22]line НДС 0% : 0.00 [17:21:22]line НДС 12% : 0.00 [17:21:22]line НСП 0% : 0.00 [17:21:22]line НСП 1,50% : 0.00 [17:21:22]line НСП 0,50% : 0.00 [17:21:22]line НСП 5% : 0.00 [17:21:22]line НСП 3% : 0.00 [17:21:22]line НСП 2% : 0.00 [17:21:22]line НСП 1% : 0.00 [17:21:22]line Сумма внесений: 0.00 [17:21:22]line Сумма выплат: 0.00 [17:21:22]line Нал. в кассе: 21883.00 [17:21:22]line НС Приход: 20005948.61 [17:21:22]line НС Возвр.Прихода: 589938.00 [17:21:22]line НС Расход: 0.00 [17:21:22]line НС Возвр.Расхода: 0.00 [17:21:22]line ФД: 64205 [17:21:22]line ФМ: 0000000000875074 [17:21:22]line ФПД: 27750812922979 [17:21:22]written 0, free lines is 4095 [17:21:22]Connected sock=10 [17:21:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 84 05 00 00 A4 B4 7C 05 F3 9F 5A 05 01 00 05 00 70 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 1C 00 D0 9A D0 BE D0 B9 D0 B3 D0 B5 D0 BB D1 8C D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 A0 2E F4 03 04 00 8B 9E 60 66 0E 04 04 00 77 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 5E 04 04 00 7C 00 00 00 57 04 04 00 7E 00 00 00 AA 04 DB 04 6E 04 04 00 7C 00 00 00 69 04 A2 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BA 63 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 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 Write to MH i2c: 03 01 09 00 00 00 F6 29 03 32 01 5B 00 [17:21:23]05 Write i2c OK [17:21:23]F7 MH_I2C_Read... [17:21:23]03 Read from MH i2c: 00 01 00 [17:21:23]EF MH_I2C_Read... [17:21:23]03 Read from MH i2c: 09 01 00 07 F6 00 03 [17:21:23]01 MH_I2C_Read... [17:21:23]00 Read from MH i2c: 06 01 F7 07 03 00 00 00 29 D1 32 04 00 8D 00 00 00 6F 00 04 00 04 0C 0E 7C [17:21:23]RasterBufferAndPrint [17:21:23]line [17:21:23]line [17:21:23]line [17:21:23]line [17:21:23]line [17:21:23]written 0, free lines is 3707 [17:21:23]00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 MH_Cut [17:21:23]01 Write to MH i2c: 00 D1 01 01 F7 00 03 30 00 32 00 01 EF 34 03 [17:21:23]09 00 Write i2c OK [17:21:23]F6 MH_I2C_Read... [17:21:23]03 Read from MH i2c: 01 D1 00 [17:21:23]02 MH_I2C_Read... [17:21:23]F7 Read from MH i2c: 03 D1 00 01 00 00 EF [17:21:23]03 MH_I2C_Read... [17:21:23]09 Read from MH i2c: 00 D1 F6 01 03 00 01 30 00 32 03 00 F7 33 03 [17:21:23]Write to MH i2c: 01 00 00 31 32 63 [17:21:23]Write i2c OK [17:21:23]MH_I2C_Read... [17:21:23]00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CD FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 35 04 06 00 19 3D 3D 58 B4 63 E2 AF 43 3A D8 2E 08 09 [17:21:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 52 FB 47 00 A9 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 *** Cut start [17:21:24]37 *** Partial cut [17:21:24]35 *** CUTSNS_PIN = 1 [17:21:24]30 37 34 10 04 04 00 CD FA 00 00 F4 03 04 00 A1 4A 60 66 B6 04 01 00 00 E7 02 03 2C CF 75 53 C5 [17:21:24]CommunicateWithHost err = 0 [17:21:24]CheckOFDResponse [17:21:24]1017 (14) - 77093643461234 [17:21:24]1041 (16) - 0000000000875074 [17:21:24]1040 (4) - 64205 [17:21:24]1012 (4) - 05.06.2024 11:23 [17:21:24]1206 (1) - 0 [17:21:24]OFD Sender: Remove packet 64205 [17:21:24]ProducePacketName [17:21:24]name=ofd_packets/00064205 [17:21:24]NVStorageDeleteData [17:21:24]*** CUTSNS_PIN = 0 [17:21:24]*** Brake cut motor [17:21:24]OFD Sender: No OFD packet to send [17:21:24]Read from MH i2c: *** Stop cut motor [17:21:24]01 *** Cut end [17:21:24] [17:21:24]MH_I2C_Read... [17:21:24]Read from MH i2c: 01 07 00 [17:21:24]MH_I2C_Read... [17:21:24]Read from MH i2c: 01 07 00 31 32 00 00 00 00 00 FF 0F 78 [17:21:24]process_action close_shift done [17:21:24]requested_data is exist [17:21:24]produce_requested_data [17:21:24]requested_item fd.num is exist - process it [17:21:24]SAM_PROTO_GetFieldsCounters [17:21:24]wFMCommunicate request_size=4 [17:21:24]MH_SAM_APDU [17:21:24]CAPDU: 80 13 00 00 [17:21:24]Write to MH i2c: E2 08 00 32 32 80 13 00 00 00 00 00 00 E0 [17:21:24]Write i2c OK [17:21:24]MH_I2C_Read... [17:21:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:24]Read from MH i2c: E2 [17:21:24]MH_I2C_Read... [17:21:24]Read from MH i2c: E2 62 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 62 00 32 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CD FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [17:21:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CD FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:25]wFMCommunicate OK [17:21:25]SAM_PROTO_GetFieldsCounters done [17:21:25]requested_item shift.num is exist - process it [17:21:25]requested_item shift.opened is exist - process it [17:21:25]req_shift_opened [17:21:25]FM_GetShiftState [17:21:25]SAM_PROTO_GetShiftState [17:21:25]wFMCommunicate request_size=4 [17:21:25]MH_SAM_APDU [17:21:25]CAPDU: 80 13 01 00 [17:21:25]Write to MH i2c: E2 08 00 33 32 80 13 01 00 00 00 00 00 E2 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 0E 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 0E 00 33 32 00 09 00 00 00 00 00 00 00 00 00 00 90 00 ED [17:21:25]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:21:25]wFMCommunicate OK [17:21:25]SAM_PROTO_GetShiftState done [17:21:25]FM_GetShiftState done [17:21:25]req_shift_opened done [17:21:25]requested_item shift.open_date is exist - process it [17:21:25]req_shift_open_date [17:21:25]FM_GetShiftState [17:21:25]SAM_PROTO_GetShiftState [17:21:25]wFMCommunicate request_size=4 [17:21:25]MH_SAM_APDU [17:21:25]CAPDU: 80 13 01 00 [17:21:25]Write to MH i2c: E2 08 00 34 32 80 13 01 00 00 00 00 00 E3 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 0E 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 0E 00 34 32 00 09 00 00 00 00 00 00 00 00 00 00 90 00 EE [17:21:25]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:21:25]wFMCommunicate OK [17:21:25]SAM_PROTO_GetShiftState done [17:21:25]FM_GetShiftState done [17:21:25]req_shift_open_date done [17:21:25]produce_requested_data done [17:21:25]produce_requested_data return {"fd.num":64205,"shift.num":375,"shift.opened":0,"shift.open_date":0} [17:21:25]process_action_free close_shift [17:21:25]json_value_free [17:21:25]json_value_free done [17:21:25]process_json_proto returns [17:21:25]Send response to host [17:21:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":64205,"shift.num":375,"shift.opened":0,"shift.open_date":0}}} [17:21:25]free response buf [17:21:25]execute_script done [17:21:25]execute_script returns [17:21:25]free content buf [17:21:25]Sock 9.Close socket [17:21:25]Sock 9.Thread stoped [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:23]accept exits with 8 [17:24:23]New connection [17:24:23]New thread 3067276644 created [17:24:23]Thread 3067133284 joined [17:24:23]Waiting for new connection... [17:24:23] Sock 8.Parse request [17:24:23]Sock 8.Check first char [17:24:23]Sock 8.First char is OK [17:24:23]request: POST /json_proto HTTP/1.0 [17:24:23]Method: POST [17:24:23]URL: /json_proto [17:24:23]Method is POST - this is cgi request [17:24:23]url: /json_proto [17:24:23]query_string will be loaded in cgi processing [17:24:23]execute_cgi json_proto POST (null) [17:24:23]execute_cgi path=json_proto method=POST [17:24:23]POST find Content-Length [17:24:23]Host: 172.17.60.69:8080 [17:24:23]Content-Length: 215 [17:24:23]Content-Type: application/json [17:24:23] [17:24:23]POST finish read [17:24:23]Found Content-Length = 215 [17:24:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:23]execute_script... [17:24:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:23]POST & json_proto [17:24:23]process_json_proto [17:24:23]json parsed OK: [17:24:23]protocol is kg_v1.0 [17:24:23]action value=get_value [17:24:23]process_action get_value [17:24:23]cmd_get_value [17:24:23]process_action get_value done [17:24:23]requested_data is exist [17:24:23]produce_requested_data [17:24:23]requested_item kkm.sn is exist - process it [17:24:23]requested_item kkm.ver is exist - process it [17:24:23]requested_item fm.sn is exist - process it [17:24:23]wFMCommunicate request_size=4 [17:24:23]MH_SAM_APDU [17:24:23]CAPDU: 80 11 00 00 [17:24:23]Write to MH i2c: E2 08 00 35 32 80 11 00 00 00 00 00 00 E1 [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:23]Read from MH i2c: E2 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: E2 17 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: E2 17 00 35 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 33 [17:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:24:23]wFMCommunicate OK [17:24:23]requested_item fd.num is exist - process it [17:24:23]SAM_PROTO_GetFieldsCounters [17:24:23]wFMCommunicate request_size=4 [17:24:23]MH_SAM_APDU [17:24:23]CAPDU: 80 13 00 00 [17:24:23]Write to MH i2c: E2 08 00 36 32 80 13 00 00 00 00 00 00 E4 [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:23]Read from MH i2c: E2 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: E2 62 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: E2 62 00 36 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CD FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [17:24:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CD FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:23]wFMCommunicate OK [17:24:23]SAM_PROTO_GetFieldsCounters done [17:24:23]requested_item shift.num is exist - process it [17:24:23]requested_item shift.opened is exist - process it [17:24:23]req_shift_opened [17:24:23]FM_GetShiftState [17:24:23]SAM_PROTO_GetShiftState [17:24:23]wFMCommunicate request_size=4 [17:24:23]MH_SAM_APDU [17:24:23]CAPDU: 80 13 01 00 [17:24:23]Write to MH i2c: E2 08 00 37 32 80 13 01 00 00 00 00 00 E6 [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:23]Read from MH i2c: E2 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: E2 0E 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: E2 0E 00 37 32 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F1 [17:24:23]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:24:23]wFMCommunicate OK [17:24:23]SAM_PROTO_GetShiftState done [17:24:23]FM_GetShiftState done [17:24:23]req_shift_opened done [17:24:23]requested_item shift.open_date is exist - process it [17:24:23]req_shift_open_date [17:24:23]FM_GetShiftState [17:24:23]SAM_PROTO_GetShiftState [17:24:23]wFMCommunicate request_size=4 [17:24:23]MH_SAM_APDU [17:24:23]CAPDU: 80 13 01 00 [17:24:23]Write to MH i2c: E2 08 00 38 32 80 13 01 00 00 00 00 00 E7 [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:23]Read from MH i2c: E2 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: E2 0E 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: E2 0E 00 38 32 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F2 [17:24:23]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:24:23]wFMCommunicate OK [17:24:23]SAM_PROTO_GetShiftState done [17:24:23]FM_GetShiftState done [17:24:23]req_shift_open_date done [17:24:23]produce_requested_data done [17:24:23]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64205,"shift.num":375,"shift.opened":0,"shift.open_date":0} [17:24:23]process_action_free get_value [17:24:23]json_value_free [17:24:23]json_value_free done [17:24:23]process_json_proto returns [17:24:23]Send response to host [17:24:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64205,"shift.num":375,"shift.opened":0,"shift.open_date":0}}} [17:24:23]free response buf [17:24:23]execute_script done [17:24:23]execute_script returns [17:24:23]free content buf [17:24:23]Sock 8.Close socket [17:24:23]Sock 8.Thread stoped [17:24:24]OFD Sender: No OFD packet to send [17:24:26]accept exits with 9 [17:24:26]New connection [17:24:26]New thread 3067133284 created [17:24:26]Thread 3067276644 joined [17:24:26]Waiting for new connection... [17:24:26] Sock 9.Parse request [17:24:26]Sock 9.Check first char [17:24:26]Sock 9.First char is OK [17:24:26]request: POST /json_proto HTTP/1.0 [17:24:26]Method: POST [17:24:26]URL: /json_proto [17:24:26]Method is POST - this is cgi request [17:24:26]url: /json_proto [17:24:26]query_string will be loaded in cgi processing [17:24:26]execute_cgi json_proto POST (null) [17:24:26]execute_cgi path=json_proto method=POST [17:24:26]POST find Content-Length [17:24:26]Host: 172.17.60.69:8080 [17:24:26]Content-Length: 331 [17:24:26]Content-Type: application/json [17:24:26] [17:24:26]POST finish read [17:24:26]Found Content-Length = 331 [17:24:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:24:26]execute_script... [17:24:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:24:26]POST & json_proto [17:24:26]process_json_proto [17:24:26]json parsed OK: [17:24:26]protocol is kg_v1.0 [17:24:26]action value=get_value [17:24:26]process_action get_value [17:24:26]cmd_get_value [17:24:26]process_action get_value done [17:24:26]requested_data is exist [17:24:26]produce_requested_data [17:24:26]requested_item fm.sale.total is exist - process it [17:24:26]SAM_PROTO_GetFMData [17:24:26]wFMCommunicate request_size=4 [17:24:26]MH_SAM_APDU [17:24:26]CAPDU: 80 13 03 00 [17:24:26]Write to MH i2c: E2 08 00 39 32 80 13 03 00 00 00 00 00 EA [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 FD 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 FD 00 39 32 00 C5 04 85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F EF 03 09 90 00 73 [17:24:27]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 DE F7 00 00 69 04 A1 00 6F 04 04 00 77 F5 00 00 B1 04 04 00 AD A7 3E 77 70 04 04 00 22 7D 68 66 72 04 04 00 8B 2A D6 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 30 AA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 ED 1A 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 67 02 00 00 B1 04 04 00 88 2C 84 03 70 04 04 00 E8 AB 68 03 72 04 03 00 A0 80 1B 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 2D 9A 5F EF 03 09 90 00 [17:24:27]wFMCommunicate OK [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 17 00 00 [17:24:27]Write to MH i2c: E2 08 00 3A 32 80 17 00 00 00 00 00 00 EC [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 FD 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 FD 00 3A 32 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 E8 [17:24:27]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 48 F7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:24:27]wFMCommunicate OK [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 17 00 00 [17:24:27]Write to MH i2c: E2 08 00 3B 32 80 17 00 00 00 00 00 00 ED [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 FD 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 FD 00 3B 32 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 FF [17:24:27]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:24:27]wFMCommunicate OK [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 17 00 00 [17:24:27]Write to MH i2c: E2 08 00 3C 32 80 17 00 00 00 00 00 00 EE [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 FD 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 FD 00 3C 32 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 7A [17:24:28]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:24:28]wFMCommunicate OK [17:24:28]wFMCommunicate request_size=4 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 17 00 00 [17:24:28]Write to MH i2c: E2 08 00 3D 32 80 17 00 00 00 00 00 00 EF [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 E2 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 E2 00 3D 32 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CD [17:24:28]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:24:28]wFMCommunicate OK [17:24:28]SAM_PROTO_GetFMData done [17:24:28]requested_item fm.sale_refund.total is exist - process it [17:24:28]requested_item fm.buy.total is exist - process it [17:24:28]requested_item shift.sale.total is exist - process it [17:24:28]SAM_PROTO_GetShiftData [17:24:28]wFMCommunicate request_size=4 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 13 02 00 [17:24:28]Write to MH i2c: E2 08 00 3E 32 80 13 02 00 00 00 00 00 EE [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 FD 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 FD 00 3E 32 00 B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 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 BA 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 1D [17:24:28]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 E0 07 2C 70 04 03 00 E0 BA 23 72 04 03 00 00 4D 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A AD 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 BA 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 D4 56 02 70 04 03 00 D4 56 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A1 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [17:24:28]wFMCommunicate OK [17:24:28]wFMCommunicate request_size=4 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 17 00 00 [17:24:28]Write to MH i2c: E2 08 00 3F 32 80 17 00 00 00 00 00 00 F1 [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:24:29]Read from MH i2c: E2 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: E2 FD 00 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: E2 FD 00 3F 32 00 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 74 [17:24:29]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [17:24:29]wFMCommunicate OK [17:24:29]wFMCommunicate request_size=4 [17:24:29]MH_SAM_APDU [17:24:29]CAPDU: 80 17 00 00 [17:24:29]Write to MH i2c: E2 08 00 40 32 80 17 00 00 00 00 00 00 F2 [17:24:29]Write i2c OK [17:24:29]MH_I2C_Read... [17:24:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:24:29]Read from MH i2c: E2 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: E2 FD 00 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: E2 FD 00 40 32 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 94 [17:24:29]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [17:24:29]wFMCommunicate OK [17:24:29]wFMCommunicate request_size=4 [17:24:29]MH_SAM_APDU [17:24:29]CAPDU: 80 17 00 00 [17:24:29]Write to MH i2c: E2 08 00 41 32 80 17 00 00 00 00 00 00 F3 [17:24:29]Write i2c OK [17:24:29]MH_I2C_Read... [17:24:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:24:29]Read from MH i2c: E2 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: E2 FD 00 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: E2 FD 00 41 32 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 7C [17:24:29]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [17:24:29]wFMCommunicate OK [17:24:29]wFMCommunicate request_size=4 [17:24:29]MH_SAM_APDU [17:24:29]CAPDU: 80 17 00 00 [17:24:29]Write to MH i2c: E2 08 00 42 32 80 17 00 00 00 00 00 00 F4 [17:24:29]Write i2c OK [17:24:29]MH_I2C_Read... [17:24:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [17:24:29]Read from MH i2c: E2 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: E2 D5 00 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: E2 D5 00 42 32 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D5 [17:24:29]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:24:29]wFMCommunicate OK [17:24:29]SAM_PROTO_GetShiftData done [17:24:29]requested_item shift.sale.total_cash is exist - process it [17:24:29]requested_item shift.sale_refund.total is exist - process it [17:24:29]requested_item shift.sale_refund.total_cash is exist - process it [17:24:29]requested_item shift.buy.total is exist - process it [17:24:29]requested_item shift.buy.total_cash is exist - process it [17:24:29]produce_requested_data done [17:24:29]produce_requested_data return {"fm.sale.total":20005948.61,"fm.sale_refund.total":589938.00,"fm.buy.total":0.00,"shift.sale.total":28856.00,"shift.sale.total_cash":23416.00,"shift.sale_refund.total":1533.00,"shift.sale_refund.total_cash":1533.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:24:29]process_action_free get_value [17:24:29]json_value_free [17:24:29]json_value_free done [17:24:29]process_json_proto returns [17:24:29]Send response to host [17:24:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20005948.61,"fm.sale_refund.total":589938.00,"fm.buy.total":0.00,"shift.sale.total":28856.00,"shift.sale.total_cash":23416.00,"shift.sale_refund.total":1533.00,"shift.sale_refund.total_cash":1533.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:24:29]free response buf [17:24:29]execute_script done [17:24:29]execute_script returns [17:24:29]free content buf [17:24:29]Sock 9.Close socket [17:24:29]Sock 9.Thread stoped [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send